CVDP

CVDP#

A number of plots are provided from CVDP. The full output from the stand-alone CDVP configuration is in the link below.

Note that in standalone format (eg, CUPiD run not through CESM workflow), CVDP is currently run by users via ADF with the following process:

  1. Install ADF and activate cupid-analysis

  2. Use the CUPiD/helper_scripts/generate_adf_config_file.py script to generate an ADF config file based on a CUPiD configuration file.

    • cd CUPiD/examples/external_diag_packages

    • ../../helper_scripts/generate_adf_config_file.py --cupid-config-loc . --adf-template ../../externals/ADF/config_amwg_default_plots.yaml --out-file ADF_config.yaml

  3. Run ADF with the newly created configuration file.

    • ../../externals/ADF/run_adf_diag ADF_config.yaml

Hide code cell content

import os

from IPython.core.display import HTML, Image
from IPython.display import display
import pandas as pd

Hide code cell content

cvdp_root = "."
case_name = None
key_plots = None
# cvdp_root will be external_diag_packages/computed_notebooks/CVDP/
# Parameters
case_name = "b.e30_alpha07c_cesm.B1850C_LTso.ne30_t232_wgx3.232"
base_case_name = "b.e30_alpha07c_cesm.B1850C_LTso.ne30_t232_wgx3.228"
CESM_output_dir = "/glade/campaign/cesm/development/cross-wg/diagnostic_framework/CESM_output_for_testing"
start_date = "0001-01-01"
end_date = "0021-01-01"
base_start_date = "0001-01-01"
base_end_date = "0045-01-01"
obs_data_dir = (
    "/glade/campaign/cesm/development/cross-wg/diagnostic_framework/CUPiD_obs_data"
)
ts_dir = None
lc_kwargs = {"threads_per_worker": 1}
serial = False
cvdp_root = "../../examples/key_metrics/CVDP_output/"
key_plots = [
    "nino34.spatialcomp.djf1.png",
    "nino34.hov.elnino.png",
    "nino34.hov.lanina.png",
    "sst.stddev.djf.png",
    "nino34.monstddev.png",
]
subset_kwargs = {}
product = "/glade/work/richling/CUPid_pr_test/CUPiD/examples/key_metrics/computed_notebooks//atm/CVDP.ipynb"

Hide code cell source

cvdp_case_name = f"{case_name}"
cvdp_root = os.path.join(cvdp_root, cvdp_case_name, "output/")
display(
    HTML(
        f'<a href="../CVDP/{cvdp_case_name}/output/index.html" target="_blank">Full CVDP output</a>'
    )
)

Key Metrics from CVDP#

Some important things to look at from the CVDP:

Hide code cell source

for path_to_key_plot in key_plots:
    full_path = os.path.join(cvdp_root, path_to_key_plot)
    if os.path.isfile(full_path):
        display(Image(full_path))