GRID_STAT_SKIP_IF_OUTPUT_EXISTS not writing for all requested forecast hours #2095
-
I’m running grid_stat for a single valid time over a bunch of forecast hours. I’m running with GRID_STAT_SKIP_IF_OUTPUT_EXISTS = True; however, it only produces output for the first forecast hour. It looks like GridStat is determining if output exists by using wildcards. I was hoping to use this configuration setting to not run if individual forecast hours already existed.
Relevant config file options (in my config I use environment variables but I replaced them here with their values): I attached the log file |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @malloryprow, Thank you for providing this information. The logic to check if the output files already exist currently use Is this a fix that should be applied to METplus 5.0.2? In the meantime, you should be able to get around this by adding the forecast lead to the GRID_STAT_OUTPUT_PREFIX`:
|
Beta Was this translation helpful? Give feedback.
-
@georgemccabe The workaround does work. I thought it was interesting though that METplus logged an error.
We were hoping to use this method to help with restart capabilities in EVS, but in operations we can't have error messages. |
Beta Was this translation helpful? Give feedback.
Hi @malloryprow,
Thank you for providing this information. The logic to check if the output files already exist currently use
{self.app_name}_{prefix}*{valid_format}V*
as the search string, which will find any files with the prefix for a given valid time. It sounds like the check should also include the forecast lead to prevent incorrect skipping in this case. I will create a bugfix issue.Is this a fix that should be applied to METplus 5.0.2?
In the meantime, you should be able to get around this by adding the forecast lead to the GRID_STAT_OUTPUT_PREFIX`:
GRID_STAT_OUTPUT_PREFIX = pres_levs_GeoHeightAnom_f{lead?fmt=%H}