Replies: 1 comment 8 replies
-
@jwraby thanks for sending along the sample data to demonstrate. I'll need to take a closer look at the details, and it'll probably require a tweak to the code. For the time being, I see 2 optoins:
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I ran Point-Stat using some tower observations we have been experimenting with. In the observations file used as input to ASCII2NC there are some obs for MSATWR01 (tower 1) which were assigned values of "NaN". The output NetCDF observations file was successfully produced. The observations for MSATWR01 are as follows:
MSATWR MSATWR01 20220705_061500 32.59018526 -106.7417173 1321 11 NaN 2 NA NaN
MSATWR MSATWR01 20220705_061500 32.59018526 -106.7417173 1321 52 NaN 2 NA NaN
MSATWR MSATWR01 20220705_061500 32.59018526 -106.7417173 1321 33 NaN 10 NA -2.3612717236244
MSATWR MSATWR01 20220705_061500 32.59018526 -106.7417173 1321 34 NaN 10 NA 6.72902908610826
ADPUPA MSATWR01 20220705_061500 32.59018526 -106.7417173 1321 11 NaN 10 NA NaN
ADPUPA MSATWR01 20220705_061500 32.59018526 -106.7417173 1321 33 NaN 2 NA -1.35531285073023
ADPUPA MSATWR01 20220705_061500 32.59018526 -106.7417173 1321 34 NaN 2 NA 4.18901986432653
I ran Point-Stat to see how it would handle NaN values and I get teh following error dialog:
DEBUG 2: Searching 84 observations from 24 messages.
DEBUG 4: For TMP/Z2 versus TMP/Z2, skipping observation with bad data value:
DEBUG 4: MSATWR MSATWR01 20220705_161500 32.59019 106.74171 1321.00000 nan 2.00000 NA nan
DEBUG 4: For TMP/P869 versus TMP/P876-862, skipping observation with bad data value:
DEBUG 4: MSATWR MSATWR01 20220705_161500 32.59019 106.74171 1321.00000 nan 2.00000 NA nan
DEBUG 4: For RH/Z2 versus RH/Z2, skipping observation with bad data value:
DEBUG 4: MSATWR MSATWR01 20220705_161500 32.59019 106.74171 1321.00000 nan 2.00000 NA nan
ERROR :
ERROR : process_obs_file() -> for observation index 3, when computing VL1L2 and/or VAL1L2 vector winds each UGRD observation must be followed by a VGRD observation with the same header and at the same level.
I assume that the observation index 3 is the third row in the above observations for MSATWR01 which is for UGRD. This observation has "NaN" for the level (hPa). Is the use of NaN causing the problem? What can be done in this case to have Point-Stat proceed and just ignore the observation when teh level is missing? What do you recommend for flagging missing values? See attached input observations file in MET point observation ASCII format
qc_obs_used_earth_relative.2022_07_05_161500.txt
I tried to upload the ASCII2NC output NetCDF file, but the upload app doesn't accept the .nc file.
Beta Was this translation helpful? Give feedback.
All reactions