NOAA-GFDL / fre-cli

Python-based command line interface for FRE (FMS Runtime Environment) to compile and run FMS-based models and post-process their output.
GNU Lesser General Public License v3.0
3 stars 7 forks source link

Absorb fre-workflows/app/regrid-xy --> fre pp regrid #132

Open ilaflott opened 1 month ago

ilaflott commented 1 month ago

Is your feature request related to a problem? Please describe. we wish to have proper fre-cli access to regrid routines used within the python/FRE2 ecosystem. Currently, regrid-xy is a routine within fre-workflows.

Describe the solution you'd like long story short- fre/pp/regrid.py to exist within the current framework, with some eye towards generalizing the script to allow one to specify a specific coordinate and/or set of coordinates to regrid. So we would have --coord xy is an input argument to indicate regridding of all horizontal components, z for the vertical, xyz for all three, etc.

Describe alternatives you've considered

Additional context dependent on fre-nctools conda package. someday, it would be to nice to have regrid work in such a way it can return regridded data objects in-memory rather than with a required read/write to the underlying system.