Skip to content

Commit

Permalink
Update plotting_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-richling authored Feb 18, 2025
1 parent a493873 commit a9e9c70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/plotting_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,11 +1649,12 @@ def lev_to_plev(data, ps, hyam, hybm, P0=100000., new_levels=None,
hybm,
p0=P0
)

print("asf\n")
# data_interp may contain a dask array, which can cause
# trouble downstream with numpy functions, so call compute() here.
if hasattr(data_interp, "compute"):
data_interp = data_interp.compute()
print("asf 2\n")

#Rename vertical dimension back to "lev" in order to work with
#the ADF plotting functions:
Expand Down Expand Up @@ -2791,4 +2792,4 @@ def square_contour_difference(fld1, fld2, **kwargs):
return fig

#####################
#END HELPER FUNCTIONS
#END HELPER FUNCTIONS

0 comments on commit a9e9c70

Please sign in to comment.