Point Stat not matching elevation levels when comparing gridded fields to point observations. #2426
-
Below are the dictionaries returned with verbosity = 10 for both fcst and ob. As you can see the level strings match, but when I try to compare said levels I get a obs_hgt _| | | | | | | | String Value = "/p/work1/daviswj/neptune-verif/read_NRL_FLATFILE_CONVERT_CtoK.py /p/work1/daviswj/FCST/r21dv/airtmp_zht_0002.0_0000.0_glob360x181_2021060100_00960000_fcstfld" The code runs fine without breaking and produces empty output files save for headers. The debug information for the matched pairs goes as follows: DEBUG 2: Processing airtmp/Z2 versus t/Z2, for observation type RAOB, over region TROPICS, for interpolation method NEAREST(1), using 0 matched pairs. The config file information is set up as follows: fcst = {
} obs = {
} I have placed all relevant files in DAVIS_DATA. The technique used to convert the h5 files for the obs in to MET readable format came about from work done on the following discussion: I took that reader and adapted it to a differently formatted observation file and am using the same point obs calling format, e.g.: PYTHON_NUMPY="/path/to/test_h5_embed.py /path/to/file variable" I just need help matching the obs_hgt portion of the ob to the level of the gridded file. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Wesley-J-Davis, thanks for writing in and providing all of your files. I was able to reproduce your error locally. Here is the command I used for testing:
I see that in the
For this to work, you have to make sure the height of the observations you expect to be at 2m is set to 2m, but in your Python script
After changing that line to:
I got farther along, but now received this error:
Now there are no level mis-matches but all the observations don't match the type. In your Python script on line 51, you are setting the "type" of observation being used:
For the command you sent, the value of
If I switch this to
then I am ultimately successful at matching all observations:
PLEASE NOTE: These changes assume ALL of your observations are at Please let us know if this answers your questions or you have any follow up questions! |
Beta Was this translation helpful? Give feedback.
Hi @Wesley-J-Davis, thanks for writing in and providing all of your files. I was able to reproduce your error locally. Here is the command I used for testing:
I see that in the
obs
dictionary, you are telling PointStat that you want to use observations at levelZ2
. This implies a "height of 2m":For this to work, you have to make sure the height of the observations you expect to be at 2m is set to 2…