From 4e8be82eb0022741725d49289b570b118b24f79f Mon Sep 17 00:00:00 2001 From: Wei-Ting Hung <107704243+angehung5@users.noreply.github.com> Date: Fri, 31 May 2024 16:51:07 -0400 Subject: [PATCH] Upgrade gridding method --- python/global_data_process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/global_data_process.py b/python/global_data_process.py index b20dc162..af70a667 100644 --- a/python/global_data_process.py +++ b/python/global_data_process.py @@ -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) @@ -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