Repository navigation
Using MET V12.01 stat_analysis for UGRD and VGRD aggregation #3061
|
Greetings! This seems to occur when both the UGRD and VGRD observations are both 0 in the MPR output from point_stat: If I remove these lines from the daily point_stat output files, I am then able to get the ME and MAE scores from stat_analysis, just with fewer cases: I am using the standard config file for stat_analysis. My stat_analysis command looks like this: This was not an issue when running with MET V11.0.2. Please let me know if I don't have something configured correctly in point_stat or stat_analysis, if this is a bug, or if something else might be causing this behavior. |
Replies: 3 comments 4 replies
|
Hi @johnlwagner, thanks for pointing out this issue with STAT-Analysis. I used our latest development version with a regression test sample data file (mpr.txt) to replicate the behavior you describe by running: Produces this output, where The STAT-Analysis job loops over all the input matched pair lines and computes the angle between the forecast and observation wind vectors. However, the wind direction is undefined for Although version 11.0.2 includes exactly the same logic on this line. Are you sure that you're seeing different output from version 11.0.2? You could try rerunning your original job with the options I will note that in my testing I did find a minor bug in the log output that's written. This log message: Should actually say: The bug is that it's reporting the value for Please let me know if adding |
|
Testing V12.0.1 with The out_wind_logic in the stat_analysis output file is listed as UNION, even though I set it to INTERSECTION (as you noted above). This does seem to solve the problem. Thanks! Running with the same data for V11.0.2 with the 0,0 lines and without I also get the same results for V11.0.2 as V12.0.1 when I add It does seem like something has changed here between V11.0.2 and V12.0.1. V11 (and previous versions) seems to drop the 0,0 obs automatically for ROW_MEAN_WDIR while V12 needs to be told to drop them. |
|
Thanks John! As always, I appreciate your help with this! |
Thanks goodness for git and github. Made it pretty easy for me to track down the source of the difference.
This block of code starting on this line of version 11.0.2 checked for and discarded vectors of 0 length.
And that block of code is removed on this line of version 12.0.2.
And here is the actual merge commit where it was removed for issue dtcenter/MET#2395.
If you expand the history on that issue, there was a lot of back and forth and discussion of wind direction statistic updates. I can't find the explicit commit message to explain that one change but my guess is this...
-job aggregate_stat -line_type MPR -out_line_type WDIRjob was the…