Skip to content
Snippets Groups Projects
Commit 07152da4 authored by Aiko Voigt's avatar Aiko Voigt
Browse files

Fixed severed bug in how the ICON input data was thresholded

parent 0fe1e4d2
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,8 @@ def field_icon(path, file, var, threshold, cubulation):
# field on triangular grid
field = xr.open_dataset(path + file)[var].squeeze().values
field[field>=threshold] = 1
field[field< threshold] = 0
# threshold field
field = np.where(field<threshold, 0, 1)
# determine size of array that holds cubulation
array_size=0
......@@ -75,8 +75,8 @@ def field_icon_lev(path, file, var, threshold, cubulation):
# field on triangular grid
field = xr.open_dataset(path + file)[var].squeeze().values
field[field>=threshold] = 1
field[field< threshold] = 0
# threshold field
field = np.where(field<threshold, 0, 1)
nlev = np.shape(field)[0]
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
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