Fantasy-Map-Generator/modules
Ilia Pushkin ccb75570da
Graph of temperature changes for the year in the burg (#733)
* Option for exporting grid cell (#731)

* Added Save Option for Api-like json export.
Will be updated and set to a scheme

* Save Option for Api-like added

* Moved UI of json export to export dialog.
Moved json export to another file named export-json.js

* Added Seperated json export selections
- all JSON : exports all json data.
- minimal JSON : exports json data without cells data.
- cells JSON : exports json data only with pack.cells data.

* More Stable Cell Export...

* Grid cells export option.

* Graph of temperature changes for the year in the burg

I'm bad at writing in English. Please excuse me for this.
It seems illogical to me the parameter of the average temperature for the year in the burg.
Therefore, I found a database of meteorological measurements at https://ru.climate-data.org/
And I analyzed it. With the help of a neural network. I approximately established the dependence of Dy[X] and Dd[X], Md[X] = f(t,p,l).
Dy[X] - how much the temperature in winter differs from the temperature in summer
Md[X] - how much the temperature during the day differs from the temperature at night, on average per year
Dd[X] - how much the temperature difference between day and night is not constant in winter and summer
t - average temperature for the year
p - average rainfall for the year
l - latitude
Now, for each city, you can plot the temperature change. Based on t,p and l.

ATTENTION!!!
The characteristics of the planet and its orbit coincide with those of the earth!

Further, I will use the Russian language, if you want to know my reasoning, please use the Google Translate capabilities.

Я изменил свою первоначальную идею и доработал её. Что касается качества и используемых функций - жду критики. JavaScript - не знакомый мне язык и я не уверен, что выполнил всё верно.
Что касается самой идеи - её реализация пока далека от совершенства. Я понял, что если установить в настройках мира температуру на экваторе ниже, чем на Земле, то графики получаются слишком далекими от реальности. Эта ошибка связана с тем, что Dy[X] зависит от широты, а не среднегодовой температуры. К сожалению добиться хорошей сходимости удалось только расширением нейросети - ещё больше магических чисел.
Теперь, на основе прошлой выборки из 899 городов, попущенных через нейросеть миллион раз среднеквадратичная ошибка стала 3%.
Входными данными для сети являются широта и влажность, а средняя температура иcпользуется только как ориентир при построении графиков.

* Add legnd in graph

* Editing Coefficients

The coefficients have been changed so that the sign of the latitude does not affect the result

Co-authored-by: Efruz Yıldırır <30903352+yldrefruz@users.noreply.github.com>
2022-02-03 10:21:50 +03:00
..
ui Graph of temperature changes for the year in the burg (#733) 2022-02-03 10:21:50 +03:00
burgs-and-states.js allow more states via number input 2022-01-16 19:37:16 +03:00
cloud.js show console.log in debug mode only 2021-09-09 10:00:53 +03:00
coa-generator.js 17 new charges 2021-11-25 23:13:58 +03:00
coa-renderer.js 17 new charges 2021-11-25 23:13:58 +03:00
cultures-generator.js minmax util function 2021-10-10 17:59:27 +03:00
export-json.js Graph of temperature changes for the year in the burg (#733) 2022-02-03 10:21:50 +03:00
export.js add details to rivers json export 2021-12-29 23:23:27 +03:00
fonts.js Fonts refactoring and Add Font dialog (#660) 2021-09-09 00:12:45 +03:00
heightmap-generator.js hightmap edit - fix mod function 2021-08-31 23:52:08 +03:00
heightmap-templates.js fix atoll heightmap template 2021-08-07 18:37:44 +03:00
lakes.js replace old iife by a simpler ones 2021-08-04 23:49:02 +03:00
load.js normalize prec, flux and river width 2021-12-30 18:49:36 +03:00
markers-generator.js ensure marker id is unique 2021-12-29 22:11:45 +03:00
military-generator.js military - fix rural fleet 2021-11-10 23:57:27 +03:00
names-generator.js fix Basque base 2021-11-22 10:09:15 +03:00
ocean-layers.js replace old iife by a simpler ones 2021-08-04 23:49:02 +03:00
relief-icons.js minmax util function 2021-10-10 17:59:27 +03:00
religions-generator.js fix syntax 2022-01-10 16:54:26 +03:00
river-generator.js normalize prec, flux and river width 2021-12-30 18:49:36 +03:00
routes-generator.js replace old iife by a simpler ones 2021-08-04 23:49:02 +03:00
save.js Api-Like map save option (#730) 2022-01-26 17:16:54 +03:00
voronoi.js Fix: flux calculation from area-propotional value instead of normal value. (#654) 2021-08-15 12:43:20 +03:00