Skip to content

Commit 154518c

Browse files
committed
cleanup consts
1 parent e4e94c6 commit 154518c

5 files changed

+32
-20
lines changed

data/consts/forcing_stats.py

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
# Statistics of Relative Humidity calculated in the fwi_forcings.ipynb
2-
# Calculated on 12 months of data without applying the mask
1+
"""
2+
Statistics of 4 Forcings variables calculated in data/EDA/fwi_forcings.ipynb,
3+
calculated on 12 months of data
4+
"""
5+
6+
# Relative Humidity
37
FORCING_MEAN_RH = 72.47605
48
FORCING_MAD_RH = 13.0844555
59
FORCING_VAR_RH = 314.80286
610
FORCING_STD_RH = 17.7426847
711
FORCING_MIN_RH = 0.0013500393
812
FORCING_MAX_RH = 100.064285
913

10-
# Statistics of T2 calculated in the fwi_forcings.ipynb
11-
# Calculated on 12 months of data without applying the mask
14+
# T2
1215
FORCING_MEAN_T2 = 279.96622
1316
FORCING_MAD_T2 = 16.938044
1417
FORCING_VAR_T2 = 452.84903
1518
FORCING_STD_T2 = 21.2802498
1619
FORCING_MIN_T2 = 193.66562
1720
FORCING_MAX_T2 = 324.16202
1821

19-
# Statistics of TP calculated in the fwi_forcings.ipynb
20-
# Calculated on 12 months of data without applying the mask
22+
# TP
2123
FORCING_MEAN_TP = 2.4548044
2224
FORCING_MAD_TP = 3.0407052
2325
FORCING_VAR_TP = 40.771793
2426
FORCING_STD_TP = 6.3852794
2527
FORCING_MIN_TP = 0.0
2628
FORCING_MAX_TP = 1097.1971
2729

28-
# Statistics of Wind Speed calculated in the fwi_forcings.ipynb
29-
# Calculated on 12 months of data without applying the mask
30+
# Wind Speed
3031
FORCING_MEAN_WSPEED = 6.4765906
3132
FORCING_MAD_WSPEED = 2.936887
3233
FORCING_VAR_WSPEED = 13.666987

data/consts/forecast_stats.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# Statistics of FWI forecast calculated on 6 month of data demonstrated
2-
# in the fwi_forecast.ipynb notebook. Calculated without applying the mask
1+
"""
2+
Statistics of FWI forecast calculated on 6 month of data calculated in
3+
data/EDA/fwi_forecast.ipynb.
4+
"""
5+
36
FORECAST_FWI_MEAN = 18.389227
47
FORECAST_FWI_MAD = 20.80943
58
FORECAST_FWI_VAR = 716.1736

data/consts/frp_stats.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
# Statistics of FRP calculated on 12 month of data demonstrated in the
2-
# frp.ipynb notebook. Calculated without applying mask or transformation
1+
"""
2+
Statistics of FRP calculated on 12 month of data demonstrated in
3+
data/EDA/frp.ipynb.
4+
"""
5+
36
FRP_MEAN = 0.00021382833
47
FRP_MAD = 0.0004302753
58
FRP_VAR = 0.0012904834002256393
69
FRP_MIN = -7.62939453125e-06
710
FRP_MAX = 186.10562133789062
811

9-
# Statistics of FRP calculated on 12 month of data demonstrated in the
10-
# frp.ipynb notebook. Calculated after applying boxcox transform
12+
# After applying box-cox transform
1113
BOX_COX_FRP_MEAN = -0.06211442
1214
BOX_COX_FRP_MAD = 0.4730961
1315
BOX_COX_FRP_VAR = 0.30641195
1416
BOX_COX_FRP_MIN = -0.9396674
1517
BOX_COX_FRP_MAX = 1.1760247
1618
BOX_COX_LAMBDA = -0.8397658852658973
1719

18-
# Pre-transform stats of frp.ipynb
20+
# Pre-transform stats
1921
PRE_TRANSFORM_FRP_MAD = 1.3919744

data/consts/fwi_reanalysis_stats.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# Statistics of FWI reanalysis calculated on 12 month of data demonstrated
2-
# in the fwi_reanalysis.ipynb notebook. Calculated without applying the mask
1+
"""
2+
Statistics of FWI reanalysis calculated on 12 month of data demonstrated
3+
in data/EDA/fwi_reanalysis.ipynb.
4+
"""
5+
36
REANALYSIS_FWI_MEAN = 15.292629
47
REANALYSIS_FWI_MAD = 18.819166
58
REANALYSIS_FWI_VAR = 621.65894
69
REANALYSIS_FWI_MIN = 1.7216163e-09
710
REANALYSIS_FWI_MAX = 304.7236
811

9-
# The variance of FWI reanalysis calculated after applying the
10-
# box-cox transformation
12+
# Variance after applying box-cox transformation
1113
PROCESSED_REANALYSIS_FWI_VAR = 10.813191

data/consts/soil_moisture_stats.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Calculated in the soil_moisture.ipynb file
1+
"""
2+
Statistics of the soil moisture variable calculated in data/EDA/soil_moisture.ipynb
3+
calculated on 12 months of data
4+
"""
5+
26
SOIL_MOISTURE_MEAN = 11.092642
37
SOIL_MOISTURE_VAR = 73.31705
48
SOIL_MOISTURE_STD = 8.56253759

0 commit comments

Comments
 (0)