NCAR / ADF

A unified collection of python scripts used to generate standard plots from CAM outputs.
Creative Commons Attribution 4.0 International
34 stars 29 forks source link

Turn off climo file generation (for non-h0 files that won't be used) #299

Open bitterbark opened 4 months ago

bitterbark commented 4 months ago

New feature type

New infrastructure or infrastructure enhancement

What is this new feature?

In the config.yml, when we comment out time_averaging_scripts: create_climo_files it fails. (Will will reply with the error). It would be great for the non-h0/MDTF applications if we didn't have to wait while it makes climo files that won't be used.

Assistance required?

Yes, I will need some assistance before making a PR

Extra info

No response

WillyChap commented 4 months ago

Here is the Traceback error when time_averaging_scripts are turned off:

Traceback (most recent call last): File "/glade/work/wchapman/ADF_dani/./run_adf_diag", line 167, in <module> diag.create_climo() File "/glade/work/wchapman/ADF_dani/lib/adf_diag.py", line 730, in create_climo self.end_diag_fail(emsg) File "/glade/work/wchapman/ADF_dani/lib/adf_base.py", line 83, in end_diag_fail raise AdfError(msg) adf_base.AdfError: No time_averaging_scripts provided for calculating climatologies, but climatologies were requested. Please either provide a valid averaging script, or skip the calculation of climatologies.