NOAA-GFDL / MDTF-diagnostics

Analysis framework and collection of process-oriented diagnostics for weather and climate simulations
https://mdtf-diagnostics.readthedocs.io/en/main/
Other
64 stars 100 forks source link

remove .nc files found in OUTPUT_DIR depending on config file #710

Closed jtmims closed 3 days ago

jtmims commented 3 days ago

Description Currently, the MDTF holds onto all of the preprocessed data in the WORK_DIR, and it only removes the data in each POD's dir. This PR goes in an removes the rest of the .nc files if "save_pp_data" is set to false in the config file. It is done by using the "case_info.yml" file found in each POD dir. This will help conserve space for runs of the MDTF that involve many PODs.

Associated issue #702

How Has This Been Tested? The framework was ran on multiple GFDL datasets and with various PODs on my workstation.

Checklist: