Skip to content

Commit

Permalink
Fix several regridding issues in file_regrid.py
Browse files Browse the repository at this point in the history
gcpy_file_regrid.py
- Move flip_lev_coord_if_necessary so that it occurs before
  variable renaming/regridding.  This prevents the flipping algorithm
  from being spoofed by renamed variables.
- Renamed "drop_and_rename_classic_variables" to "drop_classic_vars",
  which only drops the non-regriddable variables.
- Move variable renaming into "rename_restart_variables".  Also improve
  logic so that variables are renamed properly
- Updated logic in the flip_lev_coord_if_necessary routine.  Also
  make sure to save coordinates in the proper order.  GCHP level
  coordinates are now saved as indices.
- Updated Pydoc and comments.
- Trimmed trailing whitespace.

gcpy/util.py
- Initialize "old_to_new" to a blank dictionary object

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
  • Loading branch information
yantosca committed Oct 20, 2023
1 parent 5d83b5e commit 5db7347
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 120 deletions.
Loading

0 comments on commit 5db7347

Please sign in to comment.