Properly setting "GRIB2_ipdtmpl_index" and "GRIB2_ipdtmpl_val" in conf file #1241
-
Hi There, I am struggling to properly set the "GRIB2_ipdtmpl_index" and "GRIB2_ipdtmpl_val" options for specifying the correct field in my GRIB2 output. I am trying to verify total cloud (TCDC) using prepbufr data (run through pb2nc). When I first ran point-stat, I got this warning:
While, I do, in fact, want the first of the 2 matching records, I decided to update the logic in the METplus conf file to make it specific enough to only find one field. Here is how I specified the FCST field:
However, I am still getting the same warning -- so clearly I need to up my knowledge game with the GRIB2_ipdtmpl_index and GRIB2_ipdtmpl_val settings. I tried several numeric combinations for the settings, but they do not yield the desired result. I tried navigating through some of the GRIB2 documentation, but I still struggling. Any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi Michelle, And thank you for your question. It looks like there may be a bit of confusion on what the GRIB2_ipdtmpl_index and GRIB2_ipdtmpl_val settings are looking for. In both instances, the variables are looking at each individual record's information, rather than the file as a whole (i.e. where the records came from in the file), for which one you'd like to process. GRIB2_ipdtmpl_index looks at each index in the GRIB records that are returned from your variable search (in this case, two records for variable TCDC at level L0). The idea is to find an index where the two records differ. In this case, index 8 (which is fairly common for GRIB2 files) shows the first difference of values between the two returned records:
GRIB2_ipdtmpl_val is your way of indicating what value should be there. You've indicated you want the first returned record; so the value at index 8 should be "7". Alternatively, if you wanted the second record you'd set GRIB2_ipdtmpl_val to "6". So your options should be:
I hope this helps with the issue! If it does, please select this as an answer and I'll close the discussion. If you're still running into issues with this particular problem you are always welcome to continue the discussion in this thread and we'll try to help you through it. And as always, if you run into any problems that are unrelated to this particular issue, we encourage you to mark this question as answered and open a new discussion question. Thanks, -John O. |
Beta Was this translation helpful? Give feedback.
-
Hi @j-opatz and @georgemccabe -- apologies for the slow response. @j-opatz, thanks for the in-depth response; it was super helpful in understanding the a little bit more about the intricacies of grib records. I did try your suggestion:
But got this warning and yielded no output:
Did I do something silly when updating the syntax? Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @j-opatz and @georgemccabe -- apologies for the slow response. @j-opatz, thanks for the in-depth response; it was super helpful in understanding the a little bit more about the intricacies of grib records. I did try your suggestion:
But got this warning and yielded no output:
Did I do …