Couldn't run METplus on multiple files using LOOP_BY = init #2810
-
Hello everyone, This is the command I used: Pouwereou |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
Hi: I don't see your observations as part of the data on our FTP server, so I wasn't able to fully test your configuration. However, based on the files and information I do see, I think the issue here is that the LEAD_SEQ variable is not defined. Since it's not defined, METplus is just processing the first file for each model initialization, but no other files. To get both forecasts processed, you would want to set the following in your configuration:
This will run both the files (wrfprs_d01_20240902.nc and wrfprs_d01_20240903.nc) in the 2024090200 directory. Does this give the expected output on your side? Christina |
Beta Was this translation helpful? Give feedback.
-
Hi: Since Stat Analysis aggregates over time, the time templates work differently here than they do for other METplus tools like Grid Stat. Specifically, you have set
Given that the run is set to aggregate over multiple model initializations, there isn't a single init or valid time for the run, so METplus fills in the word ALL for these templates. To get a time output in the filename, you will want to use one of the many filename template tags that are unique to Stat Analysis. For example, if change the following:
I get output files labeled with the model initialization and lead time. As for the job.out file, you are getting this because you have set:
Stat Analysis can produce 2 types of output. The first is a .stat file that is the same format as the output from tools such as Grid Stat. This is specified in the variable MODEL1_STAT_ANALYSIS_OUT_STAT_TEMPLATE. The second type is the standard output that lacks the same number of columns as exist in MET's traditional .stat format. This is specified in STAT_ANALYSIS_OUTPUT_TEMPLATE. You have both specified so you will get both types of output. However, STAT_ANALYSIS_OUTPUT_TEMPLATE does not have any time templates set, so data for each run will be saved to the file job.out. In your configuration, Stat Analysis is run twice (once for the 0 hour lead time and once for the 24 hour lead time). So, the file job.out contains output from the second of these (the 24 hour lead time). Data from the 0 hour lead time is overwritten. You probably want to add time template information to this variable so you get an output file for each run of Stat Analysis As for why the output is empty, I see the following information inside the METplus log file:
What this means is that all input data read into Stat Analysis is filtered out from consideration so Stat Analysis has no data left to perform an aggregation. There are two things that are causing all of the data to be filtered out. The first is FCST_VAR_LIST = TMP. This variable needs to be set to a value that's in the FCST_VAR column in the output from Grid Stat In the files you put on the FTP, I only see one forecast variable, and that is APCP. So, you will want to change this to FCST_VAR_LIST = APCP. The second problem is FCST_VALID_HOUR_LIST = 12. All of the forecasts are actually valid at 0. So, you need to change this to FCST_VALID_HOUR_LIST = 0. With those two changes, I get output statistics in each file. Do these changes work on your end? I'll add information on aggregating all statistics in another post. Christina |
Beta Was this translation helpful? Give feedback.
-
Hi: To aggregate statistics over all lead times will require another setup and configuration for Stat Analysis. Specifically, it will require another call to Stat Analysis in the PROCESS_LIST. This complicates things. The way to call a process more than once in METplus requires the use of configuration sections and instance names in the PROCESS_LIST, which can be tricky. I went ahead and took your StatAnalysis.conf and made the necessary additions for a second run of Stat Analysis that will aggregate over all data. Since this is a more complicated aspect of METplus, hopefully this file can serve as an example of how to set up this type of processing. The settings in this file will run Stat Analysis another time to aggregate over all lead times, and will output the results to an aggregate_all directory. Christina |
Beta Was this translation helpful? Give feedback.
-
Hi there, Pouwereou, |
Beta Was this translation helpful? Give feedback.
Hi:
I don't see your observations as part of the data on our FTP server, so I wasn't able to fully test your configuration. However, based on the files and information I do see, I think the issue here is that the LEAD_SEQ variable is not defined. Since it's not defined, METplus is just processing the first file for each model initialization, but no other files. To get both forecasts processed, you would want to set the following in your configuration:
This will run both the files (wrfprs_d01_20240902.nc and wrfprs_d01_20240903.nc) in the 2024090200 directory. Does this give the expected output on your side?
Christina