METplus StatAnalysis Template Error #1328
-
Hello again, I am running the metplus_4.1.0-beta4 Docker image on an HPC using Singularity. I am running StatAnalysis in my use case. The relevant code snippet is here:
I have set the following template:
When I run, the output file is named as such: Other templates work just fine i.e. Why is this template not working? Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Hi Lindsay, And thank you for your question. It looks like the template that's causing the issues may be set with a syntax error on the date; specifically, the
and see if that fixes the issue. |
Beta Was this translation helpful? Give feedback.
-
Hi @lindsayrblank , StatAnalysis wrapper is not like many of the other wrappers where you can freely switch between init and valid in the filename templates. If you set LOOP_BY = INIT, you can reference 'init' template tags but not 'valid' ones. The wrapper does not loop over the forecast leads and process once for each init/lead or valid/lead combination. It actually just runs once and passes in the lead list to the STATAnalysis config file. Because of this, there is no way to compute what the corresponding valid time "should" be when "looping" by INIT. Switching your filename template for the output file to reference init instead of valid should fix the issue: STAT_ANALYSIS_OUT_STAT_TEMPLATE = {model?fmt=%s}_{init?fmt=%Y%m%d}_fcstlead{lead?fmt=%H}_ctc.stat |
Beta Was this translation helpful? Give feedback.
Hi @lindsayrblank , StatAnalysis wrapper is not like many of the other wrappers where you can freely switch between init and valid in the filename templates. If you set LOOP_BY = INIT, you can reference 'init' template tags but not 'valid' ones. The wrapper does not loop over the forecast leads and process once for each init/lead or valid/lead combination. It actually just runs once and passes in the lead list to the STATAnalysis config file. Because of this, there is no way to compute what the corresponding valid time "should" be when "looping" by INIT. Switching your filename template for the output file to reference init instead of valid should fix the issue:
STAT_ANALYSIS_OUT_STAT_TEM…