Spaces:
Sleeping
Sleeping
Added self.clear_layers()
Browse files- pages/burn_mapping.py +3 -1
pages/burn_mapping.py
CHANGED
@@ -71,7 +71,9 @@ class Map(geemap.Map):
|
|
71 |
dNBR = preNBR.subtract(postNBR).select('NBR')
|
72 |
dNBRclipped = dNBR.clip(bbox)
|
73 |
return dNBRclipped
|
74 |
-
|
|
|
|
|
75 |
if fire == "North Complex":
|
76 |
north_complex = calc_nbr(north_startDate.advance(-7, 'day'), north_startDate, north_startDate.advance(elapDayNum, 'day'), north_startDate.advance(elapDay_plusOne,'day'), north_complex_bb)
|
77 |
self.addLayer(north_complex, dNBRvisParams, 'North Complex GOES NBR', True)
|
|
|
71 |
dNBR = preNBR.subtract(postNBR).select('NBR')
|
72 |
dNBRclipped = dNBR.clip(bbox)
|
73 |
return dNBRclipped
|
74 |
+
|
75 |
+
self.clear_layers()
|
76 |
+
|
77 |
if fire == "North Complex":
|
78 |
north_complex = calc_nbr(north_startDate.advance(-7, 'day'), north_startDate, north_startDate.advance(elapDayNum, 'day'), north_startDate.advance(elapDay_plusOne,'day'), north_complex_bb)
|
79 |
self.addLayer(north_complex, dNBRvisParams, 'North Complex GOES NBR', True)
|