ERROR in running METPlus GridStat #2650
-
I am trying to verify hourly 2m temperature against analysis data using GridStat. I got an error I have put the config files, log file, input files and mask file in directory wu_data Could you help me have a look what is wrong? Thank you so much Xiaoxi |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi Xiaoxi (@wuxx66). Thank you for describing the problem and for uploading your files to the wu_data subdirectory. The problem is arising when reading the poly mask file:
That file is formatted as a CF-compliant NetCDF file which will only work with some additional information. Here’s a description of the mask.poly config option from the User’s Guide:
We need to improve this documentation to add more details and examples. If that file were the NetCDF output from MET’s gen_vx_mask tool, it would work fine without any changes. There are two options for how to proceed in resolving the error:
For Option 1: Running Gen-Vx-Mask would look like this:
And then you’d directly include that output file in your Grid-Stat configuration:
This is the resulting image produced when using Here are some of the Grid-Stat log messages which show the number of points in the FULL domain vs the reduced number in the masking region:
For Option 2: You can actually list that data file directly in the Grid-Stat configuration file, tell it what data to read, and then append the threshold to be applied. The formatting of the string can be a little finicky, however, but it would look like this:
Please note that “!=-30” represents the threshold to be applied. Looking at the data in the gfe_mask.nc file, it appeared as if values of -30 represented values that wouldn’t be in the mask, so we are excluding those here. Since the mask is static, meaning it doesn’t change from time-step to time-step, you can just run Gen-Vx-Mask ahead of time once and save the output to use in your grid_stat runs. Using one of these options should resolve the error you are receiving. Please let us know if you have any further questions. |
Beta Was this translation helpful? Give feedback.
@wuxx66 Great! Thank you for letting us know. If you don't have any further questions at this time, please go ahead and click the "Mark as answer" button. Then, I will LOCK this conversation to prevent future posts. Our team has decided that once discussions have been answered, and the answer has been confirmed, we’ll lock them. We want to encourage users to ask new questions in new discussions rather than posting to old ones. Hopefully that’ll make the questions/answers easier for other users to follow. So if/when more issues/questions arise, please feel free to start a new discussion.