Skip to content

PCMDI Metrics Package

Ana Ordonez edited this page Apr 19, 2022 · 5 revisions

Several metrics from the PCMDI Metrics Package (PMP) now have a cmec-driver interface. A list of the available metrics can be found in the PMP CMEC README, along with guidance for setting the parameter file.

The CMEC Module Manager has a script to install and register the PMP. Alternatively, follow the steps below to set up the PMP for CMEC driver.

Installation and Setup

  1. Install cmec-driver. Name your conda environment "_CMEC_pcmdi_metrics".
  2. Clone the PMP code repository. CMEC interface files are needed which are not included with the conda installation.
  3. Register PMP with cmec-driver:
    cmec-driver register <path to PMP repository>.
    After registration, the PMP default settings will be populated in config/cmec.json.
  4. Obtain the PMP observations database (TBD).

Steps to run the PMP metrics

  1. Create a model input folder containing your model files.
  2. Create an output folder if one does not already exist.
  3. Make any needed changes to the configuration file ~/.cmec/cmec.json.
  4. From the cmec-driver directory, run your desired PMP configuration. For example, if the observations are in the PCMDIobs2 folder and models are in the my_models folder:
    cmec-driver run --obs PCMDIobs2/ my_models/ output/ PMP/mean_climate