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 9fe6f80 commit 4e8be82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/global_data_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def write_varatt(var, attname, att):
def read_gfs_climatology(filename, basefile, varname):
readin = xr.open_dataset(filename)
readin = readin.set_coords(["lat", "lon"]).rename(
{"grid_xt":"x", "grid_yt":"y", "lat":"latitude", "lon":"longitude"}
{"grid_xt": "x", "grid_yt": "y", "lat": "latitude", "lon": "longitude"}
)

nlev = len(readin.lev.data)
Expand Down Expand Up @@ -258,7 +258,7 @@ def read_frp_local(filename, basefile):
print("------------------------------------")
basefile = xr.open_dataset(f_met)
basefile = basefile.set_coords(["lat", "lon"]).rename(
{"grid_xt":"x", "grid_yt":"y", "lat":"latitude", "lon":"longitude"}
{"grid_xt": "x", "grid_yt": "y", "lat": "latitude", "lon": "longitude"}
)

# dimension sizes
Expand Down

0 comments on commit 4e8be82

Please sign in to comment.