Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ana Ordonez committed Oct 19, 2023
1 parent fa8fc94 commit adf3882
Showing 1 changed file with 28 additions and 31 deletions.
59 changes: 28 additions & 31 deletions pcmdi_metrics/extremes/param/daily_model_data.py
Original file line number Diff line number Diff line change
@@ -1,53 +1,50 @@


# This parameter file can be used as a guide
# for setting up the extremes parameter file.

#====tasmax====
#vars = ["tasmax"]
#ModUnitsAdjust=(True,"subtract",273,"C")

#metrics_output_path = "test_py_ns_100_tasmax_MRI_int2"
#metrics_output_path = "test_ce_st_100_tasmax_MRI"
#metrics_output_path = "test_ce_ns_100_tasmax_MRI_2"


#===pr====
# Note: Variables do not have to be run separately
# if units do not require adjusting.
vars = ["pr"]
ModUnitsAdjust=(True,"multiply",86400,"mm/day")
metrics_output_path = "test_py_ns_100_pr_MRI_shp"
#metrics_output_path = "test_ce_st_100_pr_MRI"
#metrics_output_path = "test_ce_ns_100_pr_MRI"


metrics_output_path="./%(case_id)"

# Covariate - comment out to do nonstationary
covariate = "mole_fraction_of_carbon_dioxide_in_air"
covariate_path = "/home/ordonez4/git/pcmdi_metrics/pcmdi_metrics/extremes/co2_annual_1900-1999.nc"
#covariate = "mole_fraction_of_carbon_dioxide_in_air"
#covariate_path ="/home/ordonez4/git/pcmdi_metrics/pcmdi_metrics/extremes/co2_annual_1850-1999.nc"

# Don't need to edit below here for 100 year runs
# Model data settings
test_data_set=["MRI-ESM2-0"]
realization = ["r1i1p1f1"]
test_data_path = "/p/user_pub/xclim/CMIP6/CMIP/1pctCO2/atmos/day/%(variable)"
filename_template = "CMIP6.CMIP.1pctCO2.*.%(model).%(realization).day.%(variable).atmos.*.v????????.0000000.0.xml"
sftlf_filename_template = "/p/css03/esgf_publish/CMIP6/CMIP/*/%(model)/piControl/r1i1p1f1/fx/sftlf/gn/v????????/sftlf_fx_%(model)_piControl_r1i1p1f1_gn.nc"

#case_id = ver
case_id = "demo"
dec_mode="DJF"
annual_strict = False
drop_incomplete_djf = False
regrid=False
regrid=True
plots=False
generate_sftlf = False
msyear = 1900
generate_sftlf = True
msyear = 1980
meyear = 1999
return_period = 20


#year_range = [1900,1930]
#coords="[[0,100],[100,100],[100,0],[0,0]]"
#shp_path = "test_can_geom.shp"
#column = "SOVEREIGNT"
#region_name = "Canada"

#reference_data_path = "test_data/fake_tasmax_obs_19800101-19991231.nc"
#reference_data_set = "fake_tasmax"
#reference_sftlf_template = "/p/css03/esgf_publish/CMIP6/CMIP/MRI/MRI-ESM2-0/historical/r1i1p1f1/fx/sftlf/gn/v20190603/sftlf_fx_MRI-ESM2-0_historical_r1i1p1f1_gn.nc"
#osyear = 1950
#oeyear = 1999
return_period = 5

# Regional selection settings
#coords=""
#shp_path = ""
#column = ""
#region_name = ""

# Observational settings
reference_data_path="/p/user_pub/PCMDIobs/obs4MIPs/NASA-JPL/GPCP-1-3/day/pr/gn/latest/pr_day_GPCP-1-3_PCMDI_gn_19961002-20170101.nc"
reference_data_set = "GPCP-1-3"
osyear = 1997
oeyear = 2016
ObsUnitsAdjust=(True,"multiply",86400,"mm/day")

0 comments on commit adf3882

Please sign in to comment.