Skip to content

Commit

Permalink
Postprocess cloud_area_fraction predictions
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini committed Aug 20, 2024
1 parent 1986d89 commit aabc7ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mlpp_lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ def as_weather(dataset: xr.Dataset) -> xr.Dataset:
elif var == "eastward_wind":
continue

elif var == "cloud_area_fraction":
new_set[source_var] = np.clip(dataset[source_var], 0, 1)

else:
new_set[source_var] = dataset[source_var]

Expand Down

0 comments on commit aabc7ae

Please sign in to comment.