Output Reference¶
Processed data, ESM-intake catalogs, POD output, and logs from the MDTF-framework run are stored in a directory called
MDTF_output that is appended to the OUTPUT_DIR (defaults to WORK_DIR if
OUTPUT_DIR is not set) specified in the runtime configuration file. Each new run will generate an output
directory with _v# appended to the MDTF_output base name if the OUTPUT_DIR contains directories
from prior framework runs.
Example Directory¶
For an example, we will take a look at the output directory of a run of the 'example_multicase' POD
on some generated synthetic data. To do this, let’s move into the MDTF_output directory associated
with the run in our wkdir. The resulting tree should look like this:
── MDTF_output/ ├── CMIP_Synthetic_r1i1p1f1_gr1_19800101-19841231.log ├── CMIP_Synthetic_r1i1p1f1_gr1_19850101-19891231.log ├── config_save.json ├── example_multicase/ ├── index.html ├── MDTF_CMIP_Synthetic_r1i1p1f1_gr1_19800101-19841231/ ├── MDTF_CMIP_Synthetic_r1i1p1f1_gr1_19850101-19891231/ ├── mdtf_diag_banner.png ├── MDTF_main.2024-07-29:17.13.28.log ├── MDTF_postprocessed_data.csv └── MDTF_postprocessed_data.json
- To explain the contents within:
config_save.jsoncontains a copy of the runtime configuratonindex.htmlis the html page used to consolidate the MDTF run results for the end-user. Open this file in a web browser (e.g.,% firefox index.html) to view the figures and logs for each POD.MDTF_postprocessed_data.csvandMDTF_postprocessed_data.jsonare the ESM-intake catalog csv and json header files with information about the processed model data.The catalog points towards data that can be found in the folders
MDTF_CMIP_Synthetic_*. To re-run the framework using the same processed dataset, set DATA_CATALOG to the path to theMDTF_processed_data.jsonheader file and set run_pp to false in the runtime configuration file.The .log files contain framework and case-specific logging information. Please include information from these logs in any issues related to running the framework that you submit to the MDTF-diagnostics team.
POD Output Directory¶
As you probably noticed, there is one directory that was not mentioned in the prior list.
This directory, example_multicase, contains all of the output for the POD we ran. If we were to take a look inside, we would see:
── example_multicase/ ├── case_info.yml ├── example_multicase.data.log ├── example_multicase.html ├── example_multicase.log ├── model/ └── obs/
- These files and folders are:
example_multicase.htmlserves as the landing page for the POD and can be easily reached fromindex.html.case_info.ymlprovides environment variables for each case. Multirun PODs can read and set the environment variables from this file following the example_multicase.py templatemodel/andobs/contain both plots and data for both the model data and observation data respectively. The framework appends a temporaryPSsubdirectory to themodelandobsdirectories where PODs can write postscript files instead of png files. The framework will convert any .(e)ps files in thePSsubdirectories to .png files and move them to themodeland/orobssubdirectories, then delete thePSsubdirectories during the output generation stage. Users can retain thePSdirectories and files by setting save_ps to true in the runtime configuration file.example_multicase.logcontains POD-specific logging information in addition to some main logging messages that is helpful when diagnosing issues.example_multicase.data.loghas a list of processed data files that the POD read.
If multiple PODs are run, you will find a directory for each POD in the MDTF_output directory.