[config]

# Documentation for this use case can be found at
# https://metplus.readthedocs.io/en/latest/generated/met_tool_wrapper/GenEnsProd/GenEnsProd.html

# For additional information, please see the METplus Users Guide.
# https://metplus.readthedocs.io/en/latest/Users_Guide

###
# Processes to run
# https://metplus.readthedocs.io/en/latest/Users_Guide/systemconfiguration.html#process-list
###

PROCESS_LIST = GenEnsProd, GenEnsProd(APCP_inc)


###
# Time Info
# LOOP_BY options are INIT, VALID, RETRO, and REALTIME
# If set to INIT or RETRO:
#   INIT_TIME_FMT, INIT_BEG, INIT_END, and INIT_INCREMENT must also be set
# If set to VALID or REALTIME:
#   VALID_TIME_FMT, VALID_BEG, VALID_END, and VALID_INCREMENT must also be set
# LEAD_SEQ is the list of forecast leads to process
# https://metplus.readthedocs.io/en/latest/Users_Guide/systemconfiguration.html#timing-control
###

LOOP_BY = INIT
INIT_TIME_FMT = %Y%m%d%H
INIT_BEG=2022051100
INIT_END=2022051200
#INIT_INCREMENT = 24H
INIT_INCREMENT = 86400

LEAD_SEQ = 0


###
# File I/O
# https://metplus.readthedocs.io/en/latest/Users_Guide/systemconfiguration.html#directory-and-filename-template-info
###

#GEN_ENS_PROD_INPUT_DIR = {INPUT_BASE}/AirForce/Training/HREFv3_byMem
GEN_ENS_PROD_INPUT_DIR = {INPUT_BASE}/HREFv3_byMem
GEN_ENS_PROD_INPUT_TEMPLATE =
  {init?fmt=%Y%m%d%H}/mem01/postprd/HREF.t{init?fmt=%H}z.bgdawpf{lead?fmt=%3H}.tm00.grib2,
  {init?fmt=%Y%m%d%H}/mem02/postprd/HREF.t{init?fmt=%H}z.bgdawpf{lead?fmt=%3H}.tm00.grib2,
  {init?fmt=%Y%m%d%H}/mem03/postprd/HREF.t{init?fmt=%H}z.bgdawpf{lead?fmt=%3H}.tm00.grib2,
  {init?fmt=%Y%m%d%H}/mem04/postprd/HREF.t{init?fmt=%H}z.bgdawpf{lead?fmt=%3H}.tm00.grib2,
  {init?fmt=%Y%m%d%H}/mem05/postprd/HREF.t{init?fmt=%H}z.bgdawpf{lead?fmt=%3H}.tm00.grib2,
  {init?fmt=%Y%m%d%H?shift=-43200}/mem06/postprd/HREF.t{init?fmt=%H?shift=-43200}z.bgdawpf{lead?fmt=%3H?shift=43200}.tm00.grib2,
  {init?fmt=%Y%m%d%H?shift=-43200}/mem07/postprd/HREF.t{init?fmt=%H?shift=-43200}z.bgdawpf{lead?fmt=%3H?shift=43200}.tm00.grib2,
  {init?fmt=%Y%m%d%H?shift=-43200}/mem08/postprd/HREF.t{init?fmt=%H?shift=-43200}z.bgdawpf{lead?fmt=%3H?shift=43200}.tm00.grib2,
  {init?fmt=%Y%m%d%H?shift=-43200}/mem10/postprd/HREF.t{init?fmt=%H?shift=-43200}z.bgdawpf{lead?fmt=%3H?shift=43200}.tm00.grib2,
  {init?fmt=%Y%m%d%H?shift=-21600}/mem09/postprd/HREF.t{init?fmt=%H?shift=-21600}z.bgdawpf{lead?fmt=%3H?shift=21600}.tm00.grib2

#GEN_ENS_PROD_CTRL_INPUT_DIR = {INPUT_BASE}/met_test/data/sample_fcst
#GEN_ENS_PROD_CTRL_INPUT_TEMPLATE =
#  {init?fmt=%Y%m%d%H}/arw-fer-gep1/d01_{init?fmt=%Y%m%d%H}_{lead?fmt=%3H}00.grib

#GEN_ENS_PROD_OUTPUT_DIR = {OUTPUT_BASE}/Training/MET_output/gen_ens_prod
GEN_ENS_PROD_OUTPUT_DIR = {OUTPUT_BASE}/GenEnsProd/HREF
GEN_ENS_PROD_OUTPUT_TEMPLATE = {init?fmt=%Y%m%d%H}/gen_ens_prod_{valid?fmt=%Y%m%d_%H%M%S}V_ens.nc


###
# Field Info
# https://metplus.readthedocs.io/en/latest/Users_Guide/systemconfiguration.html#field-info
###

ENS_VAR1_NAME = REFC
ENS_VAR1_LEVELS = L0
ENS_VAR1_THRESH = >=35.0

ENS_VAR2_NAME = TMP
ENS_VAR2_LEVELS = Z2
ENS_VAR2_THRESH = >=291, >=294


###
# GenEnsProd Settings
# https://metplus.readthedocs.io/en/latest/Users_Guide/wrappers.html#genensprod
###

GEN_ENS_PROD_N_MEMBERS = 10

#LOG_GEN_ENS_PROD_VERBOSITY = 2

# MODEL = WRF
# GEN_ENS_PROD_DESC = NA

#GEN_ENS_PROD_REGRID_TO_GRID = NONE
#GEN_ENS_PROD_REGRID_METHOD = NEAREST
#GEN_ENS_PROD_REGRID_WIDTH = 1
#GEN_ENS_PROD_REGRID_VLD_THRESH = 0.5
#GEN_ENS_PROD_REGRID_SHAPE = SQUARE
#GEN_ENS_PROD_REGRID_CONVERT =
#GEN_ENS_PROD_REGRID_CENSOR_THRESH =
#GEN_ENS_PROD_REGRID_CENSOR_VAL =

#GEN_ENS_PROD_CENSOR_THRESH =
#GEN_ENS_PROD_CENSOR_VAL =
#GEN_ENS_PROD_NORMALIZE =
#GEN_ENS_PROD_CAT_THRESH =
#GEN_ENS_PROD_NC_VAR_STR =

GEN_ENS_PROD_ENS_THRESH = 0.8
#GEN_ENS_PROD_VLD_THRESH = 1.0

#GEN_ENS_PROD_NBRHD_PROB_WIDTH = 5
#GEN_ENS_PROD_NBRHD_PROB_SHAPE = CIRCLE
#GEN_ENS_PROD_NBRHD_PROB_VLD_THRESH = 0.0

#GEN_ENS_PROD_NMEP_SMOOTH_VLD_THRESH = 0.0
#GEN_ENS_PROD_NMEP_SMOOTH_SHAPE = CIRCLE
#GEN_ENS_PROD_NMEP_SMOOTH_GAUSSIAN_DX = 81.27
#GEN_ENS_PROD_NMEP_SMOOTH_GAUSSIAN_RADIUS = 120
#GEN_ENS_PROD_NMEP_SMOOTH_TYPE_METHOD = GAUSSIAN
#GEN_ENS_PROD_NMEP_SMOOTH_TYPE_WIDTH = 1

#GEN_ENS_PROD_CLIMO_MEAN_FILE_NAME =
#GEN_ENS_PROD_CLIMO_MEAN_FIELD =
#GEN_ENS_PROD_CLIMO_MEAN_REGRID_METHOD =
#GEN_ENS_PROD_CLIMO_MEAN_REGRID_WIDTH =
#GEN_ENS_PROD_CLIMO_MEAN_REGRID_VLD_THRESH =
#GEN_ENS_PROD_CLIMO_MEAN_REGRID_SHAPE =
#GEN_ENS_PROD_CLIMO_MEAN_TIME_INTERP_METHOD =
#GEN_ENS_PROD_CLIMO_MEAN_MATCH_MONTH =
#GEN_ENS_PROD_CLIMO_MEAN_DAY_INTERVAL = 31
#GEN_ENS_PROD_CLIMO_MEAN_HOUR_INTERVAL = 6

#GEN_ENS_PROD_CLIMO_STDEV_FILE_NAME =
#GEN_ENS_PROD_CLIMO_STDEV_FIELD =
#GEN_ENS_PROD_CLIMO_STDEV_REGRID_METHOD =
#GEN_ENS_PROD_CLIMO_STDEV_REGRID_WIDTH =
#GEN_ENS_PROD_CLIMO_STDEV_REGRID_VLD_THRESH =
#GEN_ENS_PROD_CLIMO_STDEV_REGRID_SHAPE =
#GEN_ENS_PROD_CLIMO_STDEV_TIME_INTERP_METHOD =
#GEN_ENS_PROD_CLIMO_STDEV_MATCH_MONTH =
#GEN_ENS_PROD_CLIMO_STDEV_DAY_INTERVAL = 31
#GEN_ENS_PROD_CLIMO_STDEV_HOUR_INTERVAL = 6

GEN_ENS_PROD_ENSEMBLE_FLAG_LATLON = TRUE
GEN_ENS_PROD_ENSEMBLE_FLAG_MEAN = TRUE
GEN_ENS_PROD_ENSEMBLE_FLAG_STDEV = TRUE
GEN_ENS_PROD_ENSEMBLE_FLAG_MINUS = FALSE
GEN_ENS_PROD_ENSEMBLE_FLAG_PLUS = FALSE
GEN_ENS_PROD_ENSEMBLE_FLAG_MIN = FALSE
GEN_ENS_PROD_ENSEMBLE_FLAG_MAX = FALSE
GEN_ENS_PROD_ENSEMBLE_FLAG_RANGE = FALSE
GEN_ENS_PROD_ENSEMBLE_FLAG_VLD_COUNT = TRUE
GEN_ENS_PROD_ENSEMBLE_FLAG_FREQUENCY = TRUE
GEN_ENS_PROD_ENSEMBLE_FLAG_NEP = FALSE
GEN_ENS_PROD_ENSEMBLE_FLAG_NMEP = FALSE
GEN_ENS_PROD_ENSEMBLE_FLAG_CLIMO = FALSE
GEN_ENS_PROD_ENSEMBLE_FLAG_CLIMO_CDP = FALSE

#GEN_ENS_PROD_ENS_MEMBER_IDS =
#GEN_ENS_PROD_CONTROL_ID =


[APCP_inc]

LEAD_SEQ = begin_end_incr(1,36,1)

ENS_VAR3_NAME = APCP
ENS_VAR3_LEVELS = A01
ENS_VAR3_THRESH = >0.0, >=2.54
