CUSTOM_LOOP_LIST not working in METPlus scripts #1877
-
Hello again forum, This is a follow up regarding issue #1838 (Running grid_stat on multiple models). I tried using the CUSTOM_LOOP_LIST both as the high-level driver, and individually with PCP_COMBINE_CUSTOM_LOOP_LIST and GRID_STAT_CUSTOM_LOOP_LIST. What I want to do is run pcp_combine, then grid_stat across multiple obs/fcst model combos (14 total "models"). I have attached my .conf and .log files here. Thanks in advance for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi: In your configuration file, it looks like there are filename template tags in _DIR variables. Specifically, FCST_PCP_COMBINE_INPUT_DIR and FCST_GRID_STAT_INPUT_DIR contain reference to the MODEL variable, which is set to {custom?fmt=%s}. These template tags are not supported in _DIR variables, only in filename variables. To fix this, you would want to move all reference tags from the _DIR variables to the _TEMPLATE variables. Specifically: Change FCST_PCP_COMBINE_INPUT_DIR = {INPUT_BASE}/servir_hkh/{MODEL} to FCST_PCP_COMBINE_INPUT_DIR = {INPUT_BASE}/servir_hkh, Also change FCST_PCP_COMBINE_INPUT_TEMPLATE= {init?fmt=%Y%m%d%H}/grib2/{MODEL}{init?fmt=%y%m%d%H}00_wrfout_arw_d02.grb2f{lead?fmt=%HH}0000 to FCST_PCP_COMBINE_INPUT_TEMPLATE= {MODEL}/{init?fmt=%Y%m%d%H}/grib2/{MODEL}{init?fmt=%y%m%d%H}00_wrfout_arw_d02.grb2f{lead?fmt=%HH}0000 Does that fix the error you are currently seeing? Christina |
Beta Was this translation helpful? Give feedback.
-
Hi @lesnow93, it looks like there is a bug in the logic that you have uncovered. I created an issue to fix it: #1884 |
Beta Was this translation helpful? Give feedback.
Hi @lesnow93, it looks like there is a bug in the logic that you have uncovered. I created an issue to fix it: #1884
It is likely a 1 line fix. Do you need this fix in a bugfix release for v4.1? The fix will be made for the upcoming v5.0.0 release.