Fantasy-Map-Generator/modules
Ilia Pushkin 536f9d7470 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-11-27 13:17:57 -05:00
..
dynamic Graph of temperature changes for the year in the burg (#733) 2022-11-27 13:17:57 -05:00
io fix(#845): emblem shield - remove incorrect data 2022-07-01 21:00:00 +03:00
ui Graph of temperature changes for the year in the burg (#733) 2022-11-27 13:17:57 -05:00
burgs-and-states.js markers - generate campaigns if missing 2022-11-27 12:46:58 -05:00
cloud.js Cloud support / Dropbox OAuth reference client (#659) 2022-11-27 12:20:32 -05:00
coa-generator.js dissalow local run 2022-02-06 01:04:11 +03:00
coa-renderer.js fix(#845): emblem shield - remove incorrect data 2022-07-01 21:00:00 +03:00
cultures-generator.js feat: pump version to 1.87.14, new cultures correction 2022-10-10 22:48:52 +03:00
export.js burgs overview - intert lock state 2022-11-27 13:01:26 -05:00
fonts.js add Tapestry font, update cached files 2022-05-11 10:43:21 +03:00
heightmap-generator.js heightmap-generation: redefine cells effect, more land on higher values 2022-05-29 23:16:08 +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 2022-11-27 13:02:57 -05:00
markers-generator.js supporters update 2022-11-27 13:02:38 -05:00
military-generator.js Dev submaps (#770) 2022-04-15 12:45:02 +03:00
names-generator.js feat: pump version to 1.87.14, new cultures correction 2022-10-10 22:48:52 +03:00
ocean-layers.js feat: optimizeSpeed rendering (1.87.15) 2022-10-13 00:52:49 +03:00
production-generator.js prepare from trade generation 2022-11-27 12:12:33 -05:00
relief-icons.js minmax util function 2021-10-10 17:59:27 +03:00
religions-generator.js Supporters update 2022-11-27 13:14:10 -05:00
resources-generator.js culture type bonuses for production 2022-11-27 12:10:55 -05:00
river-generator.js normalize prec, flux and river width 2022-11-27 13:02:57 -05:00
routes-generator.js routes - don't break if feature is not found 2022-04-09 21:52:37 +05:00
save.js markers - export as geoJSON 2022-11-27 12:45:17 -05:00
submap.js Detect heightmap based on pack data, convert to warning. (#827) 2022-06-04 09:49:51 -07:00
trade-generator.js Merge economics with current 2022-11-23 22:08:41 -05:00
voronoi.js Fix: flux calculation from area-propotional value instead of normal value. (#654) 2021-08-15 12:43:20 +03:00