-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preparing fre cmor
to snack
#243
Conversation
…ons. none checks, trying to generally allow this code to be more flexible. not currently working atm" This reverts commit 1a15d95.
…assigned None and checked if corresponding cmor axis should bother to be assigned, instead of relying on dimenionality of the data
…ordinate-depdendent data!
…mor module at all
…he code tries to create this. this is to avoid a warning from the CMOR module. it might be good to be able to do all of this so well that we could error on warning some day. ... oither than that, not much other than keeping certain other things around like CMOR behavior field values
…ug regarding numpy object usage- ians fault! needs from fresh eyes to find it
… i get it into cmor_mixer? i can now also start tackling ocean cases, which seem at least somewhat tractable now
… leave the python interpreter instance in the wrong directory
…o the cwd for the os gets set back to what it was before fre cmor run was called
…r exception reporting for try/except/finally call of rewrite_netcdf_file_var
…n native(tripolar)-grid ocean file case. the data one seeks is likely within the statics
…file to rewrite the ocean file when i get a chance... first, going to turn to olevel issues
…t fields. rename prototype script for rewriting land file. miniscule edits to mixer itself
…a coordinate named depth_coord that has bounds. if i give cmor the values, it should do the rest
…nds it appropriately to the input file. but CMOR is not having it! what am i missing?
please feel free to begin reviewing the code. much will not change, but i need to fix a conflict and then clean a few things up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
@@ -75,7 +75,7 @@ background | |||
~~~~~~~~~~ | |||
|
|||
The bulk of this routine is housed in ``fre/cmor/cmor_mixer.py``, which is a rewritten version of | |||
Sergey Malyshev's original ``CMORcommander.py`` script, utilized during GFDL's CMIP6 publishing run. | |||
Sergey Nikonov's original ``CMORcommander.py`` script, utilized during GFDL's CMIP6 publishing run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CMORcommander was a prototype rewrite of fremetar, which GFDL used for CMIP6 publishing.
code QA:
this PR adds:
fre cmor lister
, new tool for sifting through CMIP table json configurationsfre cmor lister
cli module callsallmorefrom 4->8 out of 9 cases covered CMORsnack: netCDF file format handling incmor_mixer
#238docs/tools/cmor.rst
HELP
stringsCMOR_input_example.json
under test files to remove CMOR module warningcmor_mixer.py
for reducing code repeat and making calls more consistent from line to linecreate_tmp_dir
to squelch a toothless CMOR warning, with an overly optimistic eye towards using an error-on-warning setting for rigor someday.