Commit graph

70 commits

Author SHA1 Message Date
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
Schizoid Nightmares
bfba711d8b
Reducing the size of the culture center circle (#855)
* Reducing the size of the culture center circle

This makes it easier to place the center more precisely and to see what cell it is in.

* Increasing the size of the cultural centers
2022-08-17 00:15:18 -07:00
Azgaar
3064961c59 fix(#845): emblem shield - remove incorrect data 2022-07-01 21:00:00 +03:00
Azgaar
a617dda3ad fix: cultures upload 2022-06-28 22:11:32 +03:00
Azgaar
1ad0b9dd51 fix: charts dialog to be stable 2022-06-24 17:47:35 +03:00
Azgaar
6cd2419f10 feat(charts): remove on dialog close 2022-06-24 15:51:10 +03:00
Azgaar
c1ee0b3094 Merge branch 'master' of https://github.com/Azgaar/Fantasy-Map-Generator into charts-overview 2022-06-23 23:29:43 +03:00
Azgaar
03b556ae86 feat(charts): pump version to 1.87.00 2022-06-23 23:11:57 +03:00
Azgaar
eaa0a41f36 feat(charts): remove shape additional dependency 2022-06-23 23:02:40 +03:00
Azgaar
5992cea360 feat(charts): add tooltips 2022-06-23 22:21:42 +03:00
Azgaar
76d3b7ebcb feat(charts): normalized stacked bars 2022-06-23 02:17:59 +03:00
Azgaar
bc6ef813e9 feat(charts): legend 2022-06-21 00:22:55 +03:00
Azgaar
4a50d89b41 feat(charts): control buttons and legend base 2022-06-20 02:10:49 +03:00
Azgaar
9a9c8e700c feat(charts): add quantization types 2022-06-19 19:13:19 +03:00
Azgaar
90b1a14bba feat(charts): add province and biome entities 2022-06-19 16:02:44 +03:00
Azgaar
60a43330a1 feat(charts): correct sorting 2022-06-19 15:20:29 +03:00
Azgaar
0bf1a2bda7 maintenance: update supporters 2022-06-19 13:52:37 +03:00
Azgaar
a7bf05b215 fix: hierarchy tree to update node context, not to add new - update hash 2022-06-19 13:50:55 +03:00
Azgaar
2aa2fab54d fix: hierarchy tree to update node context, not to add new 2022-06-19 13:45:08 +03:00
Azgaar
b00b9db3b5 feat(charts): stack bar chart UI 2022-06-19 13:30:25 +03:00
Azgaar
d30171b054 feat(charts): stack bar chart basic 2022-06-17 01:03:48 +03:00
Thomas Robert
8c96a9754d
UI improvement for hierarchy tree (#834)
* style(hierarchy tree): improve responsivness

Fix details on the bottom of the dialog
Make the tree view take the rest of the available space of the dialog

* style(hierarchy tree): distinguish buttons

Distinguish between action buttons and remove origins tags-like button

* typo(hierarchy tree): change button label and tips

* fix(hierarchy tree): disable top node interactions

* chore: update version/hash to v1.86.07

* chore: update version/hash to v1.86.08

* fix: bad hash versions

* fix: update index.html to correct versions
2022-06-16 08:15:07 -07:00
Azgaar
be5589daeb feat(charts): add basic data collection and rendering 2022-06-15 02:47:32 +03:00
Azgaar
a7cb464b55 fix(hierarchy tree): unselect node on exit 2022-06-12 23:04:51 +03:00
Azgaar
434907fa9e feat(hierarchy tree): animate on update 2022-06-12 22:21:34 +03:00
Azgaar
e3ea5cd479 feat(hierarchy tree): sort by descendants 2022-06-12 17:14:51 +03:00
Azgaar
6e5e570c90 feature(hierarchy tree): dynamically load, control dialog 2022-06-12 00:22:39 +03:00
Azgaar
b9a578e0be style(hierarchy tree): buttons style 2022-06-09 23:47:39 +03:00
Azgaar
127eafb656 feat(hierarchy tree): UI buttons to remove origin, zoom 2022-06-09 00:21:02 +03:00
Azgaar
182c6d558d fix: religions and cultures are not highlightable from editor 2022-06-08 21:12:31 +03:00
Azgaar
9215a01548 fix: religion editor toggles culture layer on 2022-06-08 11:53:30 +03:00
Azgaar
2c592a062d refactor: religion editor 2022-06-06 22:32:34 +03:00
Azgaar
221079321f refactor: load religions editor dynamically 2022-06-06 02:09:38 +03:00
Azgaar
b416551fb5 fix: add origin to religion and cultures csv download 2022-06-05 23:00:57 +03:00
Azgaar
ff1d3566c4 feat: multi-parental tree for religions 2022-06-05 18:26:28 +03:00
Azgaar
23ff50bd76 feat: multi-parental tree controls 2022-06-05 14:40:10 +03:00
Azgaar
f4ef859af8 feat: multi-parental tree 2022-06-05 01:27:58 +03:00
Azgaar
1142be65c6 fix(#781): add vertices data to full json export 2022-06-04 23:12:31 +03:00
Azgaar
6737501c5d chore: supporters update 2022-06-01 23:08:56 +03:00
Azgaar
bc5a981ad1 hotfix: loaded map are not editable 2022-06-01 02:08:47 +03:00
Azgaar
a392223ef6 version info and hash update 2022-05-30 00:36:43 +03:00
Azgaar
662163176b heightmap selection - refactor, make generation immutable to get predictable result 2022-05-29 22:11:32 +03:00
Azgaar
4f372c7a46 height generation - ability to pass cells number 2022-05-29 14:33:07 +03:00
Azgaar
ab160e609c heightmap selection - fix style on mobile 2022-05-29 13:36:05 +03:00
Azgaar
c9fd598c9c heightmapSelect - make default select element non-clickable 2022-05-29 02:05:42 +03:00
Azgaar
5a6b5b4c95 central store for heightmap configs 2022-05-29 01:03:21 +03:00
Azgaar
c2640bcada tooltip - get shortcut from its own attribute 2022-05-28 22:27:29 +03:00
Azgaar
f3a755976a heightmap select - open edit tools 2022-05-28 21:22:28 +03:00
Azgaar
8a9a29a9d3 refactor dialogs to be mobile-friendly 2022-05-28 01:47:25 +03:00
Azgaar
8b1778cb93 reduce gap 2022-05-27 19:33:04 +03:00