StatAnalysis not reading the stats for the specified period #3232
-
|
I am using StatAnalysis to read the stats files from INIT_BEG to INIT_END and then aggregate the stats, but it reads all stats files. My stat input directory is something like /path/EnsembleStat/{init?fmt=%Y%m%d%H}. In the directory, it has the file name "ensemble_stat_{valid?fmt=%Y%m%d}_%H{0000}V.stat". For example, "/path/EnsembleStat/2026021600/ensemble_stat_20260216_120000V.stat" My config file is as below PROCESS_LIST = StatAnalysis GRID_STAT_OUTPUT_DIR = /path/EnsembleStat MODEL1 = AGlobal4E MODEL1_STAT_ANALYSIS_LOOKIN_DIR = {GRID_STAT_OUTPUT_DIR} MODEL1_STAT_ANALYSIS_DUMP_ROW_TEMPLATE = 00Z/{MODEL1}{valid?fmt=%Y%m%d%H}.stat STAT_ANALYSIS_OUTPUT_DIR = {OUTPUT_BASE} MODEL_LIST = {MODEL1} GROUP_LIST_ITEMS = FCST_VALID_HOUR_LIST If I do as below MODEL1_STAT_ANALYSIS_LOOKIN_DIR = {GRID_STAT_OUTPUT_DIR} I will get an error WARNING: *** Model Evaluation Tools (METV12.0.2) *** It seems "{init?fmt=%Y%m%d%H}" is not passed to the stat directory "GRID_STAT_OUTPUT_DIR" Could you help me have a look what is wrong in my config? Thank you Xiaoxi |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hello Xiaoxi, And thank you for your question. It looks like you are currently encountering an issue with StatAnalysis where it is not selecting the subset of dates that you would like, and substitutes "ALL" instead of the initialization times you expect. After discussions with our lead METplus wrappers engineer, the issue is coming from the There are two suggested options to get around this, but both are admittedly not straight-forward. You could add a UserScript instance to the PROCESS_LIST to loop through the init times ( The scripting would do something like this: then set The second option would be to list the init directories in I understand that these are not straightforward solutions, and we agree that the behavior you are looking for should be available in StatAnalysis. As a result of your finding, I've gone ahead and created a new issue documenting the enhancement to process directories with timing information. Hopefully when this work is completed, your original set up will work as intended! Please note that our ability to work on these issues is limited by time and funding, so we cannot provide a time when this functionality will be available. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Xiaoxi, I wanted to see if either of the two workaround methods I suggested helped you solve this issue. If so, I'd like to go ahead and mark this Discussion as solved and close it out. |
Beta Was this translation helpful? Give feedback.
Hello Xiaoxi,
And thank you for your question. It looks like you are currently encountering an issue with StatAnalysis where it is not selecting the subset of dates that you would like, and substitutes "ALL" instead of the initialization times you expect.
After discussions with our lead METplus wrappers engineer, the issue is coming from the
MODEL1_STAT_ANALYSIS_LOOKIN_DIRsetting, as you discovered. By default, this setting looks for ALL available statistical files in the directory, and ignores any timing information that would otherwise allow a user to select a subset of the data in the directory.There are two suggested options to get around this, but both are admittedly not straight-f…