Skip to content

Commit

Permalink
Update global_data_process.py
Browse files Browse the repository at this point in the history
  • Loading branch information
angehung5 authored Oct 16, 2023
1 parent b4eb77e commit 44ae791
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/global_data_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def read_gfs_climatology(filename, lat, lon, varname):
"linear",
np.nan,
)

else:
# map to met grids
yt = readin["lat"][:]
Expand All @@ -178,7 +178,7 @@ def read_gfs_climatology(filename, lat, lon, varname):
DATA = mapping(
lat, lon, data.flatten(), yt.flatten(), xt.flatten(), "linear", np.nan
)

DATA[np.isnan(DATA)] = 0
DATA[DATA < 0] = 0
return DATA
Expand Down Expand Up @@ -384,7 +384,7 @@ def read_frp_local(filename, lat, lon, fill_value):
ATTNAME = ["long_name", "units", "missing_value"]
ATT = ["Plant area volume density profile", "m2/m3", fill_value]
DATA = read_gfs_climatology(f_can, lat, lon, "pavd")

elif varname == "mol":
# Reference:
# Essa 1999, ESTIMATION OF MONIN-OBUKHOV LENGTH USING RICHARDSON AND BULK RICHARDSON NUMBER
Expand Down

0 comments on commit 44ae791

Please sign in to comment.