Commit graph

1395 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
Azgaar
7c09d7376e Supporters update 2022-11-27 13:14:10 -05:00
Ángel Montero Lamas
a51d2e6403 religions-generator.js (#724)
Sorted the lists, arrays and weighted arrays of items in alphabetical order. Some remain in the order assigned by weighted random.
I think this helps people spot missing items on the list if they check by name.
The number of items is the same, they just got reordered.
2022-11-27 13:12:43 -05:00
Ángel Montero Lamas
0f1e86fab6 Update main.js (#722) 2022-11-27 13:06:24 -05:00
Azgaar
3306ff2265 lock all burgs - optimization 2022-11-27 13:06:01 -05:00
Ángel Montero Lamas
142351c6ef Added lock/unlock all (#713)
* Added lock/unlock all

Lock All , Unlock All as separate buttons. Additionally to InvertLock.

* Update burgs-overview.js

Updated the syntax to the one suggested by Azgaar.

* Lock/unlock in one button

Unlock all burgs and lock all burgs in just one button.
Additionally to invert lock.

* lock unlock in burgs-overview.js

Added a way to check if burgs are locked or unlocked with the lock all button, so it works in any situations about locking.

* burgs-overview.js lock all

Changed burgsonoff to setLockBurgs, also put setLockIcon.

* index.html burgsonoff to burgsLockAll

* Update burgs-overview.js

spacing
2022-11-27 13:04:07 -05:00
Azgaar
25a43996fd scale previpitation layer circles 2022-11-27 13:03:33 -05:00
Azgaar
2b481caa84 normalize prec, flux and river width 2022-11-27 13:02:57 -05:00
Azgaar
c2a9e4ad5d supporters update 2022-11-27 13:02:38 -05:00
Azgaar
dbb3d6e91a ensure marker id is unique 2022-11-27 13:02:12 -05:00
Ángel Montero Lamas
d07e43cde8 Wetland
Added a function to calculate wetland in separated statements. Fixed some typos.
2022-11-27 13:02:08 -05:00
Azgaar
58c356c5b7 burgs overview - intert lock state 2022-11-27 13:01:26 -05:00
Azgaar
fe6ed9b8bb refactor getCoordinates functions 2022-11-27 12:58:44 -05:00
Azgaar
3c5b999e24 state labels mode 2022-11-27 12:57:32 -05:00
Azgaar
c7dc0c19d2 buttons to release all provinces and regenerate culture name 2022-11-27 12:56:54 -05:00
Azgaar
86e3a5147e remove advanced tracking 2022-11-27 12:55:38 -05:00
Azgaar
60f92142ca showMFCGMap option 2022-11-27 12:54:47 -05:00
Azgaar
90f74d4446 minmax util function 2022-11-27 12:54:27 -05:00
Azgaar
63a14764af umami - reduce track calls 2022-11-27 12:52:23 -05:00
Azgaar
86b25c7711 3d labels - don't create svg element 2022-11-27 12:50:30 -05:00
Azgaar
456ef58920 religion gen fix 2022-11-27 12:47:14 -05:00
Azgaar
c83dcff6db markers - generate campaigns if missing 2022-11-27 12:46:58 -05:00
Azgaar
750f773cfb markers - export as geoJSON 2022-11-27 12:45:17 -05:00
Azgaar
6d6dc22a75 markers overview 2022-11-27 12:45:17 -05:00
Azgaar
26e5413090 config generate markers dialog fixes 2022-11-27 12:38:26 -05:00
Azgaar
e234d5e6e4 config generate markers dialog 2022-11-27 12:35:02 -05:00
Azgaar
b156f3cdf9 markers - generate from config file 2022-11-27 12:34:47 -05:00
Azgaar
0530ebbde7 markers - add on click 2022-11-27 12:33:26 -05:00
Azgaar
83fa6a13e6 collect statistics for a short period 2022-11-27 12:32:19 -05:00
Azgaar
b3e0d5e7b1 markers - generate tool + lock tooltip 2022-11-27 12:32:02 -05:00
Azgaar
fae03b599f editable theme color 2022-11-27 12:31:36 -05:00
Azgaar
3492422db3 markers rework - editor UI 2022-11-27 12:31:20 -05:00
Azgaar
50814bd431 markers rework - editor functions 2022-11-27 12:28:59 -05:00
Azgaar
9c0fcdeb34 markers rework - editor start, dragging 2022-11-27 12:28:37 -05:00
Azgaar
b0d0b8924e markers rework - optional pin shapes 2022-11-27 12:28:17 -05:00
Azgaar
f15c9d7c62 split save and export to different files 2022-11-27 12:26:08 -05:00
Azgaar
2406c29b41 hotkeys to use key instead of a code 2022-11-27 12:23:53 -05:00
Azgaar
60757eed2d don't consider localhost as PRODUCTION 2022-11-27 12:23:09 -05:00
Azgaar
53133b9d8c move markers into a separate module 2022-11-27 12:22:15 -05:00
Azgaar
3b2409d331 styling - option tabs to have flex layout 2022-11-27 12:21:49 -05:00
Azgaar
efb545c6c5 Fonts refactoring and Add Font dialog (#660)
* fonts rework - start

* fonts rework - continue

* fonts rework - fetch google font

* fonts rework - issue fixes

* fonts rework - add fonts to downloaded image

* fonts rework - add methods dialog

* fonts rework - add methods description

* fonts update - move version to 1.661

* fonts - remove unused file
2022-11-27 12:21:26 -05:00
Azgaar
a5f4939875 menu style - grid layout 2022-11-27 12:21:05 -05:00
Azgaar
f8ee3fbc88 fix fonts load error and reword save dialog text 2022-11-27 12:20:49 -05:00
Gergely Mészáros, Ph.D
948a7ed3a1 Cloud support / Dropbox OAuth reference client (#659)
* bioms shouldn't be masked or the style selection box is useless
* fix: misleading comment
* Fix: calculating absolute flux from precipitation normal-value.
* Fix: River automatic rerender on regeneration.
* Dropbox OAuth implementation and Cloud framework
* add some space
* removing unnecessary logs, defer script load

Created by: Mészáros Gergely <monk@geotronic.hu>
2022-11-27 12:20:32 -05:00
Azgaar
e55588f313 load dropins from local folder 2022-11-27 12:18:39 -05:00
Azgaar
e49d18f5ce units editor - more width for inputs 2022-11-27 12:18:28 -05:00
Azgaar
77a6fff8e3 refactor version conflict detection 2022-11-27 12:17:30 -05:00
Azgaar
68fade20c3 dropbox - import changes from alpha 2022-11-27 12:17:30 -05:00
Azgaar
eecdff1968 calculateDistances for tradeCenters 2022-11-27 12:14:15 -05:00
Azgaar
1d1f8e2d1c calculate consumption on category level 2022-11-27 12:13:52 -05:00