Skip to content

Commit

Permalink
Upgrade gridding method
Browse files Browse the repository at this point in the history
  • Loading branch information
angehung5 authored May 31, 2024
1 parent 4e8be82 commit bf87a3a
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 @@ -112,7 +112,7 @@ def read_gfs_climatology(filename, basefile, varname):
)

nlev = len(readin.lev.data)

if varname == "pavd":
DATA = np.empty([nlev, basefile.zc.data.shape[1], basefile.zc.data.shape[2]])
for ll in np.arange(nlev):
Expand All @@ -121,7 +121,7 @@ def read_gfs_climatology(filename, basefile, varname):
)
else:
DATA = basefile["zc"].monet.remap_nearest(readin[varname][0, :, :]).data

readin.close()
DATA[np.isnan(DATA)] = 0
DATA[DATA < 0] = 0
Expand Down Expand Up @@ -332,7 +332,7 @@ def read_frp_local(filename, basefile):

lat = basefile.latitude.data
lon = basefile.longitude.data

time_conv = datetime(
int(YY), int(MM), int(DD), int(HH), 0, 0, 0, tzinfo=timezone.utc
) + timedelta(hours=int(FH))
Expand Down

0 comments on commit bf87a3a

Please sign in to comment.