Skip to content

Commit

Permalink
Updated use case configuration file including config sections for eac…
Browse files Browse the repository at this point in the history
…h metric, GenVxMask options, and UserScript options.
  • Loading branch information
DanielAdriaansen committed Dec 23, 2024
1 parent 98adc3d commit 6e433fe
Showing 1 changed file with 27 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ LOG_LEVEL=DEBUG
# https://metplus.readthedocs.io/en/latest/Users_Guide/systemconfiguration.html#process-list
############################################################

#PROCESS_LIST = PB2NC,UserScript,GenVxMask,PointStat
PROCESS_LIST=UserScript
PROCESS_LIST = PB2NC,UserScript,GenVxMask,PointStat(CTP),PointStat(HumIndex)

############################################################
# Time Info
Expand Down Expand Up @@ -66,15 +65,19 @@ PB2NC_QUALITY_MARK_THRESH=10
# with gen_vx_mask
############################################################
USER_SCRIPT_RUNTIME_FREQ=RUN_ONCE_PER_INIT_OR_VALID
USER_SCRIPT_COMMAND={PARM_BASE}/use_cases/model_applications/land_surface/PointStat_fcstUFS_obsGDAS_CTP_HI/userscript_raob_sites_from_metobsnc.py {PB2NC_OUTPUT_DIR}/{PB2NC_OUTPUT_TEMPLATE} {OUTPUT_BASE}/gen_vx_mask/pb2nc_adpupa_latlon.txt
USER_SCRIPT_OUTPUT_DIR={OUTPUT_BASE}/gen_vx_mask
USER_SCRIPT_OUTPUT_TEMPLATE=pb2nc_adpupa_latlon.txt
USER_SCRIPT_COMMAND=python3 {PARM_BASE}/use_cases/model_applications/land_surface/PointStat_fcstUFS_obsGDAS_CTP_HI/create_raob_mask_file.py {PB2NC_OUTPUT_DIR}/{PB2NC_OUTPUT_TEMPLATE} {USER_SCRIPT_OUTPUT_DIR}/{USER_SCRIPT_OUTPUT_TEMPLATE}

############################################################
# GenVxMask Settings
# For creating masks around RAOB sites
############################################################
GEN_VX_MASK_INPUT_TEMPLATE={OUTPUT_BASE}/gen_vx_mask/pb2nc_adpupa_latlon.txt
GEN_VX_MASK_SKIP_IF_OUTPUT_EXISTS=False
GEN_VX_MASK_OPTIONS=-type circle -thresh 100
GEN_VX_MASK_INPUT_MASK_TEMPLATE={OUTPUT_BASE}/gen_vx_mask/pb2nc_adpupa_latlon.txt
GEN_VX_MASK_INPUT_TEMPLATE="gaussian 0 3072 1536"
GEN_VX_MASK_SKIP_IF_OUTPUT_EXISTS=True
#GEN_VX_MASK_SKIP_IF_OUTPUT_EXISTS=False
GEN_VX_MASK_OPTIONS=-type circle -thresh "<=100"
GEN_VX_MASK_OUTPUT_TEMPLATE={OUTPUT_BASE}/gen_vx_mask/raob_masks.nc

############################################################
Expand All @@ -84,7 +87,7 @@ GEN_VX_MASK_OUTPUT_TEMPLATE={OUTPUT_BASE}/gen_vx_mask/raob_masks.nc

LOG_POINT_STAT_VERBOSITY = 10
POINT_STAT_CONFIG_FILE = {PARM_BASE}/met_config/PointStatConfig_wrapped
POINT_STAT_MESSAGE_TYPE = ADPUPA
POINT_STAT_MESSAGE_TYPE = ADPSFC
POINT_STAT_OUTPUT_DIR={OUTPUT_BASE}/point_stat
#POINT_STAT_ONCE_PER_FIELD = False
POINT_STAT_OUTPUT_FLAG_MPR = BOTH
Expand All @@ -96,23 +99,27 @@ POINT_STAT_OUTPUT_FLAG_MPR = BOTH
############################################################

#FCST_VAR1_NAME={PARM_BASE}/use_cases/model_applications/land_surface/PointStat_fcstUFS_obsGDAS_CTP_HI/pyembed_ctp_fcst_HR1.py {INPUT_BASE}/fcst/{init?fmt=%Y%m%d%H.f}{lead?fmt=%3H}.grib2
FCST_VAR1_NAME={PARM_BASE}/use_cases/model_applications/land_surface/PointStat_fcstUFS_obsGDAS_CTP_HI/pyembed_ctp_fcst_HR1.py {INPUT_BASE}/fcst/{init?fmt=%Y%m%d}/gfs.conus.atmf{lead?fmt=%3H}.nc tmp pfull
FCST_VAR1_LEVELS=L0
#FCST_VAR1_NAME={PARM_BASE}/use_cases/model_applications/land_surface/PointStat_fcstUFS_obsGDAS_CTP_HI/pyembed_ctp_fcst_HR1.py {INPUT_BASE}/fcst/{init?fmt=%Y%m%d}/gfs.conus.atmf{lead?fmt=%3H}.nc tmp pfull {GEN_VX_MASK_OUTPUT_TEMPLATE}
FCST_POINT_STAT_INPUT_TEMPLATE=PYTHON_NUMPY

[CTP]
OBS_POINT_STAT_INPUT_TEMPLATE=PYTHON_NUMPY={PARM_BASE}/use_cases/model_applications/land_surface/PointStat_fcstUFS_obsGDAS_CTP_HI/pyembed_ctp_obs_gdas.py {INPUT_BASE}/obs/netcdf/prepbufr.gdas.{valid?fmt=%Y%m%d%H}.nc
OBS_VAR1_NAME=CTP
OBS_VAR1_LEVELS=L0
FCST_VAR1_NAME={PARM_BASE}/use_cases/model_applications/land_surface/PointStat_fcstUFS_obsGDAS_CTP_HI/pyembed_ctp_fcst_HR1.py {INPUT_BASE}/fcst/{init?fmt=%Y%m%d}/gfs.global.atmf{lead?fmt=%3H}.nc tmp pfull {GEN_VX_MASK_OUTPUT_TEMPLATE}
FCST_VAR1_LEVELS=L0
POINT_STAT_OUTPUT_TEMPLATE=CTP

############################################################
# General PointStat Settings
############################################################
[HumIndex]
OBS_POINT_STAT_INPUT_TEMPLATE=PYTHON_NUMPY={PARM_BASE}/use_cases/model_applications/land_surface/PointStat_fcstUFS_obsGDAS_CTP_HI/pyembed_hi_obs_gdas.py {INPUT_BASE}/obs/netcdf/prepbufr.gdas.{valid?fmt=%Y%m%d%H}.nc
OBS_VAR1_NAME=HI
OBS_VAR1_LEVELS=L0
FCST_VAR1_NAME={PARM_BASE}/use_cases/model_applications/land_surface/PointStat_fcstUFS_obsGDAS_CTP_HI/pyembed_hi_fcst_HR1.py {INPUT_BASE}/fcst/{init?fmt=%Y%m%d}/gfs.global.atmf{lead?fmt=%3H}.nc tmp pfull spfh {GEN_VX_MASK_OUTPUT_TEMPLATE}
FCST_VAR1_LEVELS=L0
POINT_STAT_OUTPUT_TEMPLATE=HI

OBS_POINT_STAT_INPUT_TEMPLATE=PYTHON_NUMPY={PARM_BASE}/use_cases/model_applications/land_surface/PointStat_fcstUFS_obsGDAS_CTP_HI/pyembed_ctp_obs_gdas.py {INPUT_BASE}/obs/netcdf/prepbufr.gdas.{valid?fmt=%Y%m%d%H}.nc
#FCST_POINT_STAT_INPUT_DIR={INPUT_BASE}/fcst
#FCST_POINT_STAT_INPUT_TEMPLATE={init?fmt=%Y%m%d%H.f}{lead?fmt=%3H}.grib2
FCST_POINT_STAT_INPUT_TEMPLATE=PYTHON_NUMPY

############################################################
# Pre-determined seasons for the use case
############################################################
#CUSTOM_LOOP_LIST = DJF,MAM,JJA,SON


[user_env_vars]
MET_PYTHON_DIR={MET_INSTALL_DIR}/scripts/python

0 comments on commit 6e433fe

Please sign in to comment.