Skip to content
Snippets Groups Projects
Commit ce19f24e authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Fix DEM processing.

parent 2b8a3a00
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,10 @@ if __name__ == '__main__':
dem, {'y': Era5_ds.y, 'x': Era5_ds.x},
add_coord={'time': Era5_ds.time})
# check whether to use slope and aspect
if not DEM_FEATURES:
dem = dem.drop_vars(['slope', 'aspect'])
# add dem to set of predictor variables
Era5_ds = xr.merge([Era5_ds, dem])
......
......@@ -90,7 +90,7 @@ if __name__ == '__main__':
dem, {'y': Era5_ds.y, 'x': Era5_ds.x},
add_coord={'time': Era5_ds.time})
# check wether to use slope and aspect
# check whether to use slope and aspect
if not DEM_FEATURES:
dem = dem.drop_vars(['slope', 'aspect'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment