openforis-whisp 3.0.0a7__py3-none-any.whl → 3.0.0a9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openforis_whisp/advanced_stats.py +247 -175
- openforis_whisp/datasets.py +414 -19
- openforis_whisp/parameters/lookup_gee_datasets.csv +194 -171
- openforis_whisp/reformat.py +8 -6
- openforis_whisp/risk.py +113 -29
- {openforis_whisp-3.0.0a7.dist-info → openforis_whisp-3.0.0a9.dist-info}/METADATA +38 -124
- {openforis_whisp-3.0.0a7.dist-info → openforis_whisp-3.0.0a9.dist-info}/RECORD +9 -9
- {openforis_whisp-3.0.0a7.dist-info → openforis_whisp-3.0.0a9.dist-info}/WHEEL +1 -1
- {openforis_whisp-3.0.0a7.dist-info/licenses → openforis_whisp-3.0.0a9.dist-info}/LICENSE +0 -0
|
@@ -2,68 +2,68 @@ name,order,ISO2_code,theme,theme_timber,use_for_risk,use_for_risk_timber,exclude
|
|
|
2
2
|
EUFO_2020,10,,treecover,naturally_reg_2020,1,1,0,float32,1,0,g_jrc_gfc_2020_prep
|
|
3
3
|
GLAD_Primary,20,,treecover,primary,1,1,0,float32,1,0,g_glad_pht_prep
|
|
4
4
|
TMF_undist,30,,treecover,primary,1,1,0,float32,1,0,g_jrc_tmf_undisturbed_prep
|
|
5
|
-
GFC_TC_2020,
|
|
6
|
-
Forest_FDaP,
|
|
7
|
-
ESA_TC_2020,
|
|
8
|
-
TMF_plant,
|
|
9
|
-
Oil_palm_Descals,
|
|
10
|
-
Oil_palm_FDaP,
|
|
11
|
-
Coffee_FDaP,
|
|
5
|
+
GFC_TC_2020,40,,treecover,naturally_reg_2020,0,0,0,float32,1,0,g_glad_gfc_10pc_prep
|
|
6
|
+
Forest_FDaP,50,,treecover,naturally_reg_2020,1,1,0,float32,1,0,g_glad_gfc_10pc_prep
|
|
7
|
+
ESA_TC_2020,60,,treecover,naturally_reg_2020,0,0,0,float32,1,0,g_esa_worldcover_trees_prep
|
|
8
|
+
TMF_plant,70,,commodities,NA,1,1,0,float32,1,0,g_jrc_tmf_plantation_prep
|
|
9
|
+
Oil_palm_Descals,80,,commodities,NA,1,1,0,float32,1,0,g_creaf_descals_palm_prep
|
|
10
|
+
Oil_palm_FDaP,90,,commodities,NA,1,1,0,float32,1,0,g_fdap_palm_prep
|
|
11
|
+
Coffee_FDaP,100,,commodities,NA,1,1,0,float32,1,0,g_fdap_coffee_prep
|
|
12
12
|
Cocoa_FDaP,110,,commodities,NA,1,1,0,float32,1,0,g_fdap_cocoa_prep
|
|
13
13
|
Cocoa_ETH,120,,commodities,NA,1,1,0,float32,1,0,g_eth_kalischek_cocoa_prep
|
|
14
|
-
Rubber_FDaP,
|
|
15
|
-
Rubber_RBGE,
|
|
16
|
-
Soy_Song_2020,
|
|
17
|
-
TMF_def_2000,
|
|
18
|
-
TMF_def_2001,
|
|
19
|
-
TMF_def_2002,
|
|
20
|
-
TMF_def_2003,
|
|
21
|
-
TMF_def_2004,
|
|
22
|
-
TMF_def_2005,
|
|
23
|
-
TMF_def_2006,
|
|
24
|
-
TMF_def_2007,
|
|
25
|
-
TMF_def_2008,
|
|
26
|
-
TMF_def_2009,
|
|
27
|
-
TMF_def_2010,
|
|
28
|
-
TMF_def_2011,
|
|
29
|
-
TMF_def_2012,
|
|
30
|
-
TMF_def_2013,
|
|
31
|
-
TMF_def_2014,
|
|
32
|
-
TMF_def_2015,
|
|
33
|
-
TMF_def_2016,
|
|
34
|
-
TMF_def_2017,
|
|
35
|
-
TMF_def_2018,
|
|
36
|
-
TMF_def_2019,
|
|
37
|
-
TMF_def_2020,
|
|
38
|
-
TMF_def_2021,
|
|
39
|
-
TMF_def_2022,
|
|
40
|
-
TMF_def_2023,
|
|
41
|
-
TMF_def_2024,
|
|
42
|
-
TMF_deg_2000,
|
|
43
|
-
TMF_deg_2001,
|
|
44
|
-
TMF_deg_2002,
|
|
45
|
-
TMF_deg_2003,
|
|
46
|
-
TMF_deg_2004,
|
|
47
|
-
TMF_deg_2005,
|
|
48
|
-
TMF_deg_2006,
|
|
49
|
-
TMF_deg_2007,
|
|
50
|
-
TMF_deg_2008,
|
|
51
|
-
TMF_deg_2009,
|
|
52
|
-
TMF_deg_2010,
|
|
53
|
-
TMF_deg_2011,
|
|
54
|
-
TMF_deg_2012,
|
|
55
|
-
TMF_deg_2013,
|
|
56
|
-
TMF_deg_2014,
|
|
57
|
-
TMF_deg_2015,
|
|
58
|
-
TMF_deg_2016,
|
|
59
|
-
TMF_deg_2017,
|
|
60
|
-
TMF_deg_2018,
|
|
61
|
-
TMF_deg_2019,
|
|
62
|
-
TMF_deg_2020,
|
|
63
|
-
TMF_deg_2021,
|
|
64
|
-
TMF_deg_2022,
|
|
65
|
-
TMF_deg_2023,
|
|
66
|
-
TMF_deg_2024,
|
|
14
|
+
Rubber_FDaP,130,,commodities,NA,1,1,0,float32,1,0,g_fdap_rubber_prep
|
|
15
|
+
Rubber_RBGE,140,,commodities,NA,1,1,0,float32,1,0,g_rbge_rubber_prep
|
|
16
|
+
Soy_Song_2020,150,,commodities,NA,1,1,0,float32,1,0,g_soy_song_2020_prep
|
|
17
|
+
TMF_def_2000,160,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
18
|
+
TMF_def_2001,170,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
19
|
+
TMF_def_2002,180,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
20
|
+
TMF_def_2003,190,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
21
|
+
TMF_def_2004,200,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
22
|
+
TMF_def_2005,210,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
23
|
+
TMF_def_2006,220,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
24
|
+
TMF_def_2007,230,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
25
|
+
TMF_def_2008,240,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
26
|
+
TMF_def_2009,250,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
27
|
+
TMF_def_2010,260,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
28
|
+
TMF_def_2011,270,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
29
|
+
TMF_def_2012,280,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
30
|
+
TMF_def_2013,290,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
31
|
+
TMF_def_2014,300,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
32
|
+
TMF_def_2015,310,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
33
|
+
TMF_def_2016,320,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
34
|
+
TMF_def_2017,330,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
35
|
+
TMF_def_2018,340,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
36
|
+
TMF_def_2019,350,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
37
|
+
TMF_def_2020,360,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
38
|
+
TMF_def_2021,370,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
39
|
+
TMF_def_2022,380,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
40
|
+
TMF_def_2023,390,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
41
|
+
TMF_def_2024,400,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_def_per_year_prep
|
|
42
|
+
TMF_deg_2000,410,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
43
|
+
TMF_deg_2001,420,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
44
|
+
TMF_deg_2002,430,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
45
|
+
TMF_deg_2003,440,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
46
|
+
TMF_deg_2004,450,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
47
|
+
TMF_deg_2005,460,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
48
|
+
TMF_deg_2006,470,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
49
|
+
TMF_deg_2007,480,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
50
|
+
TMF_deg_2008,490,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
51
|
+
TMF_deg_2009,500,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
52
|
+
TMF_deg_2010,510,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
53
|
+
TMF_deg_2011,520,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
54
|
+
TMF_deg_2012,530,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
55
|
+
TMF_deg_2013,540,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
56
|
+
TMF_deg_2014,550,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
57
|
+
TMF_deg_2015,560,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
58
|
+
TMF_deg_2016,570,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
59
|
+
TMF_deg_2017,580,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
60
|
+
TMF_deg_2018,590,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
61
|
+
TMF_deg_2019,600,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
62
|
+
TMF_deg_2020,610,,disturbance_before,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
63
|
+
TMF_deg_2021,620,,disturbance_after,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
64
|
+
TMF_deg_2022,630,,disturbance_after,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
65
|
+
TMF_deg_2023,640,,disturbance_after,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
66
|
+
TMF_deg_2024,650,,disturbance_after,NA,0,0,0,float32,1,0,g_tmf_deg_per_year_prep
|
|
67
67
|
GFC_loss_year_2001,660,,disturbance_before,NA,0,0,0,float32,1,0,g_glad_gfc_loss_per_year_prep
|
|
68
68
|
GFC_loss_year_2002,670,,disturbance_before,NA,0,0,0,float32,1,0,g_glad_gfc_loss_per_year_prep
|
|
69
69
|
GFC_loss_year_2003,680,,disturbance_before,NA,0,0,0,float32,1,0,g_glad_gfc_loss_per_year_prep
|
|
@@ -87,114 +87,137 @@ GFC_loss_year_2020,850,,disturbance_before,NA,0,0,0,float32,1,0,g_glad_gfc_loss_
|
|
|
87
87
|
GFC_loss_year_2021,860,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_gfc_loss_per_year_prep
|
|
88
88
|
GFC_loss_year_2022,870,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_gfc_loss_per_year_prep
|
|
89
89
|
GFC_loss_year_2023,880,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_gfc_loss_per_year_prep
|
|
90
|
-
GFC_loss_year_2024,
|
|
91
|
-
RADD_year_2019,
|
|
92
|
-
RADD_year_2020,
|
|
93
|
-
RADD_year_2021,
|
|
94
|
-
RADD_year_2022,
|
|
95
|
-
RADD_year_2023,
|
|
96
|
-
RADD_year_2024,
|
|
97
|
-
RADD_year_2025,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
90
|
+
GFC_loss_year_2024,890,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_gfc_loss_per_year_prep
|
|
91
|
+
RADD_year_2019,900,,disturbance_before,NA,0,0,0,float32,1,0,g_radd_year_prep
|
|
92
|
+
RADD_year_2020,910,,disturbance_before,NA,0,0,0,float32,1,0,g_radd_year_prep
|
|
93
|
+
RADD_year_2021,920,,disturbance_after,NA,0,0,0,float32,1,0,g_radd_year_prep
|
|
94
|
+
RADD_year_2022,930,,disturbance_after,NA,0,0,0,float32,1,0,g_radd_year_prep
|
|
95
|
+
RADD_year_2023,940,,disturbance_after,NA,0,0,0,float32,1,0,g_radd_year_prep
|
|
96
|
+
RADD_year_2024,950,,disturbance_after,NA,0,0,0,float32,1,0,g_radd_year_prep
|
|
97
|
+
RADD_year_2025,960,,disturbance_after,NA,0,0,0,float32,1,0,g_radd_year_prep
|
|
98
|
+
RADD_year_2026,970,,disturbance_after,NA,0,0,0,float32,1,0,g_radd_year_prep
|
|
99
|
+
DIST_year_2024,980,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_dist_year_prep
|
|
100
|
+
DIST_year_2025,990,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_dist_year_prep
|
|
101
|
+
DIST_year_2026,1000,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_dist_year_prep
|
|
102
|
+
GLAD-L_year_2017,1010,,disturbance_before,NA,0,0,0,float32,1,0,g_glad_l_year_prep
|
|
103
|
+
GLAD-L_year_2018,1040,,disturbance_before,NA,0,0,0,float32,1,0,g_glad_l_year_prep
|
|
104
|
+
GLAD-L_year_2019,1050,,disturbance_before,NA,0,0,0,float32,1,0,g_glad_l_year_prep
|
|
105
|
+
GLAD-L_year_2020,1060,,disturbance_before,NA,0,0,0,float32,1,0,g_glad_l_year_prep
|
|
106
|
+
GLAD-L_year_2021,1070,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_l_year_prep
|
|
107
|
+
GLAD-L_year_2022,1080,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_l_year_prep
|
|
108
|
+
GLAD-L_year_2023,1090,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_l_year_prep
|
|
109
|
+
GLAD-L_year_2025,1100,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_l_year_prep
|
|
110
|
+
GLAD-L_year_2026,1110,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_l_year_prep
|
|
111
|
+
GLAD-S2_year_2019,1120,,disturbance_before,NA,0,0,0,float32,1,0,g_glad_s2_year_prep
|
|
112
|
+
GLAD-S2_year_2020,1130,,disturbance_before,NA,0,0,0,float32,1,0,g_glad_s2_year_prep
|
|
113
|
+
GLAD-S2_year_2021,1140,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_s2_year_prep
|
|
114
|
+
GLAD-S2_year_2022,1150,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_s2_year_prep
|
|
115
|
+
GLAD-S2_year_2023,1160,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_s2_year_prep
|
|
116
|
+
GLAD-S2_year_2024,1170,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_s2_year_prep
|
|
117
|
+
GLAD-S2_year_2025,1180,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_s2_year_prep
|
|
118
|
+
GLAD-S2_year_2026,1190,,disturbance_after,NA,0,0,0,float32,1,0,g_glad_s2_year_prep
|
|
119
|
+
ESA_fire_2001,1200,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
120
|
+
ESA_fire_2002,1210,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
121
|
+
ESA_fire_2003,1220,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
122
|
+
ESA_fire_2004,1230,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
123
|
+
ESA_fire_2005,1240,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
124
|
+
ESA_fire_2006,1250,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
125
|
+
ESA_fire_2007,1260,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
126
|
+
ESA_fire_2008,1270,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
127
|
+
ESA_fire_2009,1280,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
128
|
+
ESA_fire_2010,1290,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
129
|
+
ESA_fire_2011,1300,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
130
|
+
ESA_fire_2012,1310,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
131
|
+
ESA_fire_2013,1320,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
132
|
+
ESA_fire_2014,1330,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
133
|
+
ESA_fire_2015,1340,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
134
|
+
ESA_fire_2016,1350,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
135
|
+
ESA_fire_2017,1360,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
136
|
+
ESA_fire_2018,1370,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
137
|
+
ESA_fire_2019,1380,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
138
|
+
ESA_fire_2020,1390,,disturbance_before,NA,0,0,0,float32,1,0,g_esa_fire_prep
|
|
139
|
+
MODIS_fire_2000,1400,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
140
|
+
MODIS_fire_2001,1410,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
141
|
+
MODIS_fire_2002,1420,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
142
|
+
MODIS_fire_2003,1430,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
143
|
+
MODIS_fire_2004,1440,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
144
|
+
MODIS_fire_2005,1450,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
145
|
+
MODIS_fire_2006,1460,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
146
|
+
MODIS_fire_2007,1470,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
147
|
+
MODIS_fire_2008,1480,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
148
|
+
MODIS_fire_2009,1490,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
149
|
+
MODIS_fire_2010,1500,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
150
|
+
MODIS_fire_2011,1510,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
151
|
+
MODIS_fire_2012,1520,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
152
|
+
MODIS_fire_2013,1530,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
153
|
+
MODIS_fire_2014,1540,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
154
|
+
MODIS_fire_2015,1550,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
155
|
+
MODIS_fire_2016,1560,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
156
|
+
MODIS_fire_2017,1570,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
157
|
+
MODIS_fire_2018,1580,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
158
|
+
MODIS_fire_2019,1590,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
159
|
+
MODIS_fire_2020,1600,,disturbance_before,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
160
|
+
MODIS_fire_2021,1610,,disturbance_after,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
161
|
+
MODIS_fire_2022,1620,,disturbance_after,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
162
|
+
MODIS_fire_2023,1630,,disturbance_after,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
163
|
+
MODIS_fire_2024,1640,,disturbance_after,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
164
|
+
MODIS_fire_2025,1650,,disturbance_after,NA,0,0,0,float32,1,0,g_modis_fire_prep
|
|
165
|
+
TMF_deg_before_2020,1660,,disturbance_before,NA,1,1,0,float32,1,0,g_tmf_deg_before_2020_prep
|
|
166
|
+
TMF_def_before_2020,1670,,disturbance_before,NA,1,1,0,float32,1,0,g_tmf_def_before_2020_prep
|
|
167
|
+
GFC_loss_before_2020,1680,,disturbance_before,NA,1,1,0,float32,1,0,g_glad_gfc_loss_before_2020_prep
|
|
168
|
+
ESA_fire_before_2020,1690,,disturbance_before,NA,0,1,0,float32,1,0,g_esa_fire_before_2020_prep
|
|
169
|
+
MODIS_fire_before_2020,1700,,disturbance_before,NA,0,1,0,float32,1,0,g_modis_fire_before_2020_prep
|
|
170
|
+
RADD_before_2020,1710,,disturbance_before,NA,1,1,0,float32,1,0,g_radd_before_2020_prep
|
|
171
|
+
GLAD-L_before_2020,1715,,disturbance_before,NA,1,1,0,float32,1,0,g_glad_l_before_2020_prep
|
|
172
|
+
GLAD-S2_before_2020,1718,,disturbance_before,NA,1,1,0,float32,1,0,g_glad_s2_before_2020_prep
|
|
173
|
+
TMF_deg_after_2020,1720,,disturbance_after,NA,1,1,0,float32,1,0,g_tmf_deg_after_2020_prep
|
|
174
|
+
TMF_def_after_2020,1730,,disturbance_after,NA,1,1,0,float32,1,0,g_tmf_def_after_2020_prep
|
|
175
|
+
GFC_loss_after_2020,1740,,disturbance_after,NA,1,1,0,float32,1,0,g_glad_gfc_loss_after_2020_prep
|
|
176
|
+
MODIS_fire_after_2020,1750,,disturbance_after,NA,0,1,0,float32,1,0,g_modis_fire_after_2020_prep
|
|
177
|
+
RADD_after_2020,1760,,disturbance_after,NA,1,1,0,float32,1,0,g_radd_after_2020_prep
|
|
178
|
+
DIST_after_2020,1770,,disturbance_after,NA,1,1,0,float32,1,0,g_glad_dist_after_2020_prep
|
|
179
|
+
GLAD-L_after_2020,1780,,disturbance_after,NA,1,1,0,float32,1,0,g_glad_l_after_2020_prep
|
|
180
|
+
GLAD-S2_after_2020,1790,,disturbance_after,NA,1,1,0,float32,1,0,g_glad_s2_after_2020_prep
|
|
181
|
+
GFT_primary,1800,,NA,primary,0,1,0,float32,1,0,g_gft_primary_prep
|
|
182
|
+
IFL_2020,1810,,NA,primary,0,1,0,float32,1,0,g_ifl_2020_prep
|
|
183
|
+
European_Primary_Forest,1820,,NA,primary,0,1,0,float32,1,0,g_epfd_prep
|
|
184
|
+
GFT_naturally_regenerating,1830,,NA,naturally_reg_2020,0,1,0,float32,1,0,g_gft_nat_reg_prep
|
|
185
|
+
GFT_planted_plantation,1840,,NA,planted_plantation_2020,0,1,0,float32,1,0,g_gft_plantation_prep
|
|
186
|
+
IIASA_planted_plantation,1850,,NA,planted_plantation_2020,0,1,0,float32,1,0,g_iiasa_planted_prep
|
|
187
|
+
TMF_regrowth_2023,1860,,NA,treecover_after_2020,0,1,0,float32,1,0,g_tmf_regrowth_prep
|
|
188
|
+
ESRI_2023_TC,1870,,NA,treecover_after_2020,0,1,0,float32,1,0,g_esri_2023_tc_prep
|
|
189
|
+
Oil_palm_2023_FDaP,1880,,NA,agri_after_2020,0,1,0,float32,1,0,g_fdap_palm_2023_prep
|
|
190
|
+
Rubber_2023_FDaP,1890,,NA,agri_after_2020,0,1,0,float32,1,0,g_fdap_rubber_2023_prep
|
|
191
|
+
Coffee_FDaP_2023,1900,,NA,agri_after_2020,0,1,0,float32,1,0,g_fdap_coffee_2023_prep
|
|
192
|
+
Cocoa_2023_FDaP,1910,,NA,agri_after_2020,0,1,0,float32,1,0,g_fdap_cocoa_2023_prep
|
|
193
|
+
ESRI_crop_gain_2020_2023,1920,,NA,agri_after_2020,0,1,0,float32,1,0,g_esri_2020_2023_crop_prep
|
|
194
|
+
GFW_logging_before_2020,1930,,NA,logging_concession,0,1,0,float32,1,0,g_logging_concessions_prep
|
|
195
|
+
nCO_ideam_forest_2020,1940,CO,treecover,NA,1,1,0,float32,1,0,nco_ideam_forest_2020_prep
|
|
196
|
+
nCO_ideam_eufo_commission_2020,1950,CO,commodities,NA,1,1,0,float32,1,0,nco_ideam_eufo_commission_2020_prep
|
|
197
|
+
nBR_INPE_TC_primary_forest_Amazon_2020,1960,BR,treecover,primary,1,1,0,float32,1,0,nbr_terraclass_amz20_primary_prep
|
|
198
|
+
nBR_INPE_TC_secondary_forest_Amazon_2020,1970,BR,treecover,naturally_reg_2020,1,1,0,float32,1,0,nbr_terraclass_amz20_secondary_prep
|
|
199
|
+
nBR_BFS_primary_forest_Pantanal_2020,1980,BR,treecover,primary,1,1,0,float32,1,0,nbr_bfs_ptn_f20_prep
|
|
200
|
+
nBR_BFS_primary_forest_Caatinga_2020,1990,BR,treecover,primary,1,1,0,float32,1,0,nbr_bfs_caat_f20_prep
|
|
201
|
+
nBR_BFS_primary_forest_AtlanticForest_2020,2000,BR,treecover,primary,1,1,0,float32,1,0,nbr_bfs_atlf_f20_prep
|
|
202
|
+
nBR_BFS_primary_forest_Pampa_2020,2010,BR,treecover,primary,1,1,0,float32,1,0,nbr_bfs_pmp_f20_prep
|
|
203
|
+
nBR_BFS_primary_and_secondary_forest_Cerrado_2020,2020,BR,treecover,naturally_reg_2020,1,1,0,float32,1,0,nbr_bfs_cer_f20_prep
|
|
204
|
+
nBR_MapBiomas_col9_forest_Brazil_2020,2030,BR,treecover,naturally_reg_2020,1,1,0,float32,1,0,nbr_mapbiomasc9_f20_prep
|
|
205
|
+
nBR_INPE_TCsilviculture_Amazon_2020,2040,BR,treecover,planted_plantation_2020,1,1,0,float32,1,0,nbr_terraclass_amz20_silv_prep
|
|
206
|
+
nBR_INPE_TCsilviculture_Cerrado_2020,2050,BR,treecover,planted_plantation_2020,1,1,0,float32,1,0,nbr_terraclass_silv_cer20_prep
|
|
207
|
+
nBR_MapBiomas_col9_silviculture_Brazil_2020,2060,BR,treecover,planted_plantation_2020,1,1,0,float32,1,0,nbr_mapbiomasc9_silv20_prep
|
|
208
|
+
nBR_PRODES_deforestation_Brazil_before_2020,2070,BR,disturbance_before,NA,1,1,0,float32,1,0,nbr_prodes_before_2020_prep
|
|
209
|
+
nBR_DETER_forestdegradation_Amazon_before_2020,2080,BR,disturbance_before,NA,1,1,0,float32,1,0,nbr_deter_amazon_before_2020_prep
|
|
210
|
+
nBR_PRODES_deforestation_Brazil_after_2020,2090,BR,disturbance_after,NA,1,1,0,float32,1,0,nbr_prodes_after_2020_prep
|
|
211
|
+
nBR_DETER_forestdegradation_Amazon_after_2020,2100,BR,disturbance_after,NA,1,1,0,float32,1,0,nbr_deter_amazon_after_2020_prep
|
|
212
|
+
nBR_INPE_TCamz_cer_perennial_2020,2110,BR,commodities,NA,1,1,0,float32,1,0,nbr_terraclass_amz_cer20_pc_prep
|
|
213
|
+
nBR_MapBiomas_col9_coffee_2020,2120,BR,commodities,NA,1,1,0,float32,1,0,nbr_mapbiomasc9_cof_prep
|
|
214
|
+
nBR_MapBiomas_col9_palmoil_2020,2130,BR,commodities,NA,1,1,0,float32,1,0,nbr_mapbiomasc9_po_prep
|
|
215
|
+
nBR_MapBiomas_col9_pc_2020,2140,BR,commodities,NA,1,1,0,float32,1,0,nbr_mapbiomasc9_pc_prep
|
|
216
|
+
nBR_INPE_TCamz_cer_annual_2020,2150,BR,commodities,NA,1,1,0,float32,1,0,nbr_terraclass_amz_cer20_ac_prep
|
|
217
|
+
nBR_MapBiomas_col9_soy_2020,2160,BR,commodities,NA,1,1,0,float32,1,0,nbr_mapbiomasc9_soy_prep
|
|
218
|
+
nBR_MapBiomas_col9_annual_crops_2020,2170,BR,commodities,NA,1,1,0,float32,1,0,nbr_mapbiomasc9_ac_prep
|
|
219
|
+
nBR_INPE_TCamz_pasture_2020,2180,BR,commodities,NA,1,1,0,float32,1,0,nbr_terraclass_amz20_pasture_prep
|
|
220
|
+
nBR_INPE_TCcer_pasture_2020,2190,BR,commodities,NA,1,1,0,float32,1,0,nbr_terraclass_cer20_ac_prep
|
|
221
|
+
nBR_MapBiomas_col9_pasture_2020,2200,BR,commodities,NA,1,1,0,float32,1,0,nbr_mapbiomasc9_pasture_prep
|
|
222
|
+
nCI_Cocoa_bnetd,2210,CI,commodities,NA,1,1,0,float32,1,0,nci_ocs2020_prep
|
|
223
|
+
nCM_Treecover_2020,2220,CM,treecover,NA,1,0,0,float32,1,0,ncm_treecover_2020_prep
|
openforis_whisp/reformat.py
CHANGED
|
@@ -859,12 +859,14 @@ def format_stats_dataframe(
|
|
|
859
859
|
)
|
|
860
860
|
df.rename(columns={area_col: area_col_stripped}, inplace=True)
|
|
861
861
|
|
|
862
|
-
# 10) reorder by plotId column if present
|
|
863
|
-
|
|
864
|
-
df.
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
862
|
+
# 10) reorder by plotId column numerically if present (column is string but contains int values)
|
|
863
|
+
if sort_column in df.columns:
|
|
864
|
+
df["_sort_key"] = pd.to_numeric(df[sort_column], errors="coerce")
|
|
865
|
+
df = (
|
|
866
|
+
df.sort_values(by="_sort_key")
|
|
867
|
+
.drop(columns=["_sort_key"])
|
|
868
|
+
.reset_index(drop=True)
|
|
869
|
+
)
|
|
868
870
|
|
|
869
871
|
# 11) Defragment final DataFrame and return
|
|
870
872
|
return df.copy()
|