Using IODA2NC output with POINT_STAT #1705
-
To begin, I pushed the data I'm using to your server under DAVIS_DATA. I was able to process a netCDF file using IODA2NC pretty easily, but I'm just confused at how to configure point_stat in order to read in the correct levels. raob_all_v1_20201215T1200Z.nc4 = input to IODA2NC raob_all_v1_20201215T1200Z.nc = output from IODA2NC, input to POINT_STAT PointStatConfig_dev-nep1.3-L89-baseline-Dec_2020121512 = Sample POINT_STAT config Example of Obs portion I need help with obs = { Example of ncdump-h of IODA2NC output netcdf raob_all_v1_20201215T1200Z { // global attributes: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
Hi: With MET's version netCDF for point data (like the output from IODA2NC), levels need to be values that either exist in the obs_lvl variable, or formatted using P for pressure levels, Z for heights, A for accumulations, etc.. Do you want the 850 and 250mb levels? If so, my suspicion is that you want "P85000" and "P25000" for the level values I wasn't able to test this since I don't have a copy of the model data. But, does this work and produce suspect output for you? More information about the letter codes can be found here in this section. Christina |
Beta Was this translation helpful? Give feedback.
-
That seemed to move me in the right direction, but now I'm getting a different error:
Looking in my ioda2nc output and searching for "message_type" I get the this: These are all RAOB obs that I'm using but it looks like they're only marked as such in the filename and since that part of the IODA2NC output is empty, it looks like it's breaking POINT_STAT. I tried manually setting it in the config file with an empty string, but that didn't work. POINT_STAT errored out saying that message_type couldn't be empty. I tried giving it a dummy name like RAOB, but that didn't either. POINT_STAT ran, but the output was empty and the debug showed the following:
|
Beta Was this translation helpful? Give feedback.
-
And therein lies the rub. There's only one entry in my header_type_table and it's an empty string. From my last entry: Looking in my ioda2nc output and searching for "message_type" I get the this: char hdr_typ_table(nhdr_typ, mxstr2) ; hdr_typ_table:long_name = "message type" ; Searching for "hdr_typ_table" I find this: hdr_typ_table = "" ; It seems like the only option is to put in message_type=[ "" ]; since that's the only string point_stat is going to find in the hdr_type_table, but when I do that, I still get obs filtered out because of message type and end up with zero matched pairs. |
Beta Was this translation helpful? Give feedback.
-
Hi: Then run: This should produce multiple values in the hdr_typ_table. When I run it, my hdr_typ_table looks like this: To retain all of these in point_stat, a key will need to be added to the message_type_group_map. I added the last key to the dictionary as shown below: Then, set "RAOB" could really be any name that you want to set it to, as it's just an identifier to retain all the hdr_typ_table values that are listed in the message_type_group_map key. However, it needs to the same name in the "key" as what is listed in message_type. Christina |
Beta Was this translation helpful? Give feedback.
Hi:
To get a hdr_typ_table other than an empty string, I had to run IODA2NC with the configuration file IODA2NCConfig_hdr_typ.txt. This has the following changes from the default configuration file:
Change the metadata map line { key = "message_type"; val = "msg_typ"; } to { key = "message_type"; val = "station_ob"; }
Then run:
ioda2nc raob_all_v1_20201215T1200Z.nc4 raob_all_v1_20201215T1200Z.nc -config name_of_config_file
This should produce multiple values in the hdr_typ_table. When I run it, my hdr_typ_table looks like this:
hdr_typ_table =
"n_rbraob",
"n_rlraob",
"n_pbpibal",
"n_plpibalB",
"n_plpibalD",
"n_plpibalA",
"n_plpibalC"
To retain all of these in point_stat, a key will need t…