Skip to content
Snippets Groups Projects
Commit 10da47e3 authored by stadtler1's avatar stadtler1
Browse files

changed small bug in the denormalization (era5_dataset_v2.py), now it is workng.

parent f711d538
Branches
No related tags found
No related merge requests found
...@@ -246,7 +246,7 @@ class Norm_data: ...@@ -246,7 +246,7 @@ class Norm_data:
# do the denormalization and return # do the denormalization and return
if norm == "minmax": if norm == "minmax":
return(data[...] * (getattr(self,varname+"max") - getattr(self,varname+"min")) + getattr(self,varname+"max")) return(data[...] * (getattr(self,varname+"max") - getattr(self,varname+"min")) + getattr(self,varname+"min"))
elif norm == "znorm": elif norm == "znorm":
return(data[...] * getattr(self,varname+"sigma")**2 + getattr(self,varname+"avg")) return(data[...] * getattr(self,varname+"sigma")**2 + getattr(self,varname+"avg"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment