-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
What happened?
Reference datasets for mean climate driver do not contain updated climatology paths. In basic_param.py where reference_data_set = ['alternate1']
, mean_climate_driver.py returns 'pr/TRMM-3B43v-7/v20210804/pr_mon_TRMM-3B43v-7_PCMDI_gn.200301-201812.AC.v20210804.nc'
. But would like to return 'pr/gr/v20250211/pr_mon_GPCP-Monthly-3-2_RSS_gr_198301-200412_AC_v20250211_interp_2.5x2.5.nc'
.
What did you expect to happen? Are there are possible answers you came across?
Need to add a template for the updated climatology file(s) to ./scripts/obs_info_dict.json. .
Minimal Complete Verifiable Example (MVCE)
import os
#
# OPTIONS ARE SET BY USER IN THIS FILE AS INDICATED BELOW BY:
#
#
# RUN IDENTIFICATION
# DEFINES A SUBDIRECTORY TO METRICS OUTPUT RESULTS SO MULTIPLE CASES CAN
# BE COMPARED
case_id = 'climatology-ACE'
# LIST OF MODEL VERSIONS TO BE TESTED - WHICH ARE EXPECTED TO BE PART OF
# CLIMATOLOGY FILENAME
test_data_set = ['ACE2-PCMDI']
# VARIABLES TO USE
vars = ['pr']
# Observations to use at the moment "default" or "alternate"
reference_data_set = ['alternate1']
#ext = '.nc'
# INTERPOLATION OPTIONS
target_grid = '2.5x2.5' # OPTIONS: '2.5x2.5' or an actual cdms2 grid object
regrid_tool = 'regrid2' # 'regrid2' # OPTIONS: 'regrid2','esmf'
# OPTIONS: 'linear','conservative', only if tool is esmf
regrid_method = 'linear'
regrid_tool_ocn = 'esmf' # OPTIONS: "regrid2","esmf"
# OPTIONS: 'linear','conservative', only if tool is esmf
regrid_method_ocn = 'linear'
# Templates for climatology files
# %(param) will subsitute param with values in this file
filename_template = "%(variable)_mon_%(model_version)_amip_r1_198001-201412.AC.v20250224.nc"
# filename template for landsea masks ('sftlf')
sftlf_filename_template = "sftlf_%(model_version).nc"
generate_sftlf = True # if land surface type mask cannot be found, generate one
# Region
regions = {"psl": ["Global"]}
# ROOT PATH FOR MODELS CLIMATOLOGIES
test_data_path = 'PCMDI/AI-MIP/CMIP6/CMIP/PCMDI/ACE2-PCMDI/climo/'
# ROOT PATH FOR OBSERVATIONS
# Note that atm/mo/%(variable)/ac will be added to this
reference_data_path = '/pscratch/sd/user/PMP/pcmdi_metrics/doc/jupyter/Demo/demo_data_tmp/PMP_obs4MIPsClims'
# DIRECTORY WHERE TO PUT RESULTS
metrics_output_path = os.path.join(
'demo_output',
"%(case_id)")
Relevant log output
pr/TRMM-3B43v-7/v20210804/pr_mon_TRMM-3B43v-7_PCMDI_gn.200301-201812.AC.v20210804.nc
Anything else we need to know?
No response
Environment
Click to expand
- Python version: e.g., Python 3.9.7
- Operating system: e.g., Ubuntu 20.04
- Dependencies: List relevant dependencies and their versions, e.g.,
numpy 1.23.1
,xarray 0.21.1
Metadata
Metadata
Assignees
Labels
No labels