# s2dv configuration file
#
# Check ?ConfigFileOpen after loading s2dv for detailed 
# documentation on this configuration file.

#############
!!definitions
#############
# Mandatory defaults
DEFAULT_EXP_MAIN_PATH = /es*/exp/*/$EXP_NAME$/
DEFAULT_EXP_FILE_PATH = $STORE_FREQ$$SUFFIX$/$VAR_NAME$$FILE_GRID$*/$EXP_FILE$
DEFAULT_OBS_MAIN_PATH = /es*/obs/*/$OBS_NAME$/
DEFAULT_OBS_FILE_PATH = $STORE_FREQ$$SUFFIX$/$VAR_NAME$*/$OBS_FILE$
DEFAULT_NC_VAR_NAME = $VAR_NAME$
DEFAULT_SUFFIX = _mean
DEFAULT_VAR_MIN = -1e19
DEFAULT_VAR_MAX = 1e19
DEFAULT_DIM_NAME_LONGITUDES = longitude
DEFAULT_DIM_NAME_LATITUDES = latitude
DEFAULT_DIM_NAME_MEMBERS = ensemble

# Helper variables
EXP_FILE = $VAR_NAME$_*$START_DATE$*.nc
OBS_FILE = $VAR_NAME$_$YEAR$$MONTH$*.nc
RECON_LIST = (20thcr_v2|copernicus012|ds083.2|ecco|era40|era40-erainterim|eraclim|erainterim|erainterim-lores|eraland|gecco_v2|gfs|glorys2_v1|glorys2_v3|glosea5|ishii-kimoto|jra55|merra|merra_v2|ncep-reanalysis|oaflux|oi_v2|orap5|piomas|seaice-lim2|sst|tropflux|nemovar_system4|era5)

# Defaults for extra variables from Load
DEFAULT_FILE_GRID = 

######################
!!table of experiments
######################
#exp_name, var_name[, exp_main_path[, exp_file_path[, nc_var_name[, suffix[, var_min[, var_max]]]]]]
# By default, any pair (var, exp) is associated to the default values
# As experiment name, the user is expected to provide model/expid
.*, .*, *, *, *, *, *, *
# But we also want to allow that they provide expid only
.*/.*, .*, /es*/exp/$EXP_NAME$/, *, *, *, *, *
# If the requested experiment is in the list of reconstructions, it will be fetched in recon
$RECON_LIST$, .*, /es*/recon/*/$EXP_NAME$/, *, *, *, *, *
.*/$RECON_LIST$, .*, /es*/recon/$EXP_NAME$/, *, *, *, *, *
# If the variable is of the kind varname_whatever it will be fetched in the monthly/daily_statistics instead of _mean
.*, .*_.*, *, *, *, _statistics, *, *
# Ocean variables follow special conventions
.*, psi, *, *, sobarstf, *, *, *
.*, .*heatc, *, $STORE_FREQ$_mean/heatc/$EXP_FILE$, thc, *, *, *
.*, moc_.*, *, $STORE_FREQ$_mean/moc/$EXP_FILE$, zomsfatl, *, *, *
.*, max_moc_.*, *, $STORE_FREQ$_mean/moc/$EXP_FILE$, maxmoc, *, *, *
.*, .*Pac_stc_.*, *, $STORE_FREQ$_mean/moc/$EXP_FILE$, zomsfpac, *, *, *
.*, .*Atl_stc_.*, *, $STORE_FREQ$_mean/moc/$EXP_FILE$, zomsfatl, *, *, *
.*, sal_.*, *, $STORE_FREQ$_mean/saltc/$EXP_FILE$, vertmeansal, *, *, *
.*, temp_.*, *, $STORE_FREQ$_mean/sections/$EXP_FILE$, votemper, *, *, *
.*, sian, *, $STORE_FREQ$$SUFFIX$/ice/siasiesiv_N*$START_DATE$*.nc, sia, *, *, *
.*, sien, *, $STORE_FREQ$$SUFFIX$/ice/siasiesiv_N*$START_DATE$*.nc, sie, *, *, *
.*, sivn, *, $STORE_FREQ$$SUFFIX$/ice/siasiesiv_N*$START_DATE$*.nc, siv, *, *, *
.*, sias, *, $STORE_FREQ$$SUFFIX$/ice/siasiesiv_S*$START_DATE$*.nc, sia, *, *, *
.*, sies, *, $STORE_FREQ$$SUFFIX$/ice/siasiesiv_S*$START_DATE$*.nc, sie, *, *, *
.*, sivs, *, $STORE_FREQ$$SUFFIX$/ice/siasiesiv_S*$START_DATE$*.nc, siv, *, *, *
.*, sia_.*, *, $STORE_FREQ$_mean/ice/sia_Arcticreg1*$START_DATE$*.nc, *, *, *, *
.*, sie_.*, *, $STORE_FREQ$_mean/ice/sie_Arcticreg1*$START_DATE$*.nc, *, *, *, *
.*, siv_.*, *, $STORE_FREQ$_mean/ice/siv_Arcticreg1*$START_DATE$*.nc, *, *, *, *

#######################
!!table of observations
#######################
#obs_name, var_name[, obs_main_path[, obs_file_path[, nc_var_name[, suffix[, var_min[, var_max]]]]]]
# By default, any pair (var, obs) is associated to the default values
# As observation name, the user is expected to provide obsid
.*, .*, *, *, *, *, *, *
# But we also want to allow institution/obsid
.*/.*, .*, /es*/obs/$OBS_NAME$/, *, *, *, *, *
# If the requested observation is in the list of reconstructions, it will be fetched in recon
$RECON_LIST$, .*, /es*/recon/*/$OBS_NAME$/, *, *, *, *, *
.*/$RECON_LIST$, .*, /es*/recon/$OBS_NAME$/, *, *, *, *, *
# As in experiments, we associate all variables of the kind varname_whatever to the folder _statistics instead of _mean
.*, .*_.*, *, *, *, _statistics, *, *
.*, (tos|tas|prlr), *, *, *, *, -999, 599
# file per dataset experiments
(ecmwf/)?nemovar-s4, moc_.*,       /es*/exp/ecmwf/nemovar-s4/, $STORE_FREQ$_mean/moc/$VAR_NAME$_nemovar_s4_19570901_fc0-4_195709_201212.nc, zomsfatl, *, *, *
",                   max_moc_.*,   ",                            ", maxmoc, *, *, *
",                   .*Pac_stc_.*, ",                            $STORE_FREQ$_mean/mon/$VAR_NAME$_nemovar_s4_19570901_fc0-4_195709_201108.nc, zomsfpac, *, *, *
",                   .*Atl_stc_.*, ",                            ", zomsfatl, *, *, *
",                   heatc,        ",                            $STORE_FREQ$_mean/heatc/$VAR_NAME$_nemovar_s4_19570901_fc0-4_195709_201212.nc, thc, *, *, *
",                   .*_heatc,     ",                            ", thc, *, *, *
# file per dataset observations
(ukmo/)?hadisst_v1.1,sien,         *, $STORE_FREQ$_mean/ice/ice_hadisst_N.nc, sie, *, *, *
",                   sian,         *, ",                                      sia, *, *, *
",                   sies,         *, $STORE_FREQ$_mean/ice/ice_hadisst_S.nc, sie, *, *, *
",                   sias,         *, ",                                      sia, *, *, *
",                   si(a|e|v)_.*, *, $STORE_FREQ$_mean/ice/siasie_HadISST.nc,*, *, *, *
(nasa/)?nsidc-siasie,  sien,         *, $STORE_FREQ$_mean/ice/ice_nsidc_N.nc,   sie, *, *, *
",                   sian,         *, ",                                      sia, *, *, *
",                   sies,         *, $STORE_FREQ$_mean/ice/ice_nsidc_S.nc,   sie, *, *, *
",                   sias,         *, ",                                      sia, *, *, *
",                   si(a|e|v)_.*, *, $STORE_FREQ$_mean/ice/siasie_NSIDC.nc,                        *, *, *, *
# file per dataset reconstructions
glorys2_v1,          .*heatc,      *, $STORE_FREQ$_mean/heatc/$VAR_NAME$_*_19930101_fc0-0_199301_200912.nc, thc
(ucl/)?seaice-lim2,  sivn,         *, $STORE_FREQ$_mean/ice/siasiesiv_N_ucl_fc0-0_19790101_197901_200712.nc, siv, *, *, *
",                   sivs,         *, $STORE_FREQ$_mean/ice/siasiesiv_S_ucl_fc0-0_19790101_197901_200712.nc, siv, *, *, *
(psc/)?piomas,       sivn,         *, $STORE_FREQ$_mean/ice/sivN_piomas.nc, sivN, *, *, *
