Closed chudlerk closed 2 years ago
@chudlerk which version of Py-ART are you using?
I tried the following which appeared to work (with the latest version Py-ART 1.13.0):
radar = pyart.io.read("KDAX20091014_091934_V03.gz")
print(radar.latitude['data'], radar.longitude['data'])
[38.50111008] [-121.67783356]
Or, reading directly from Amazon:
radar = pyart.io.read_nexrad_archive("s3://noaa-nexrad-level2/2009/10/14/KDAX/KDAX20091014_091934_V03.gz")
print(radar.latitude['data'], radar.longitude['data'])
[38.50111008] [-121.67783356]
Whoops, I pasted the wrong URL in my question. I've updated it with one that doesn't work. I'm having trouble installing 1.13.0 with anaconda, but it doesn't work on 1.12.2
What sort of conda installation issues are you running into?
@chudlerk - the older NEXRAD data is missing the required metadata (message 31). See this discussion https://github.com/ARM-DOE/pyart/discussions/1174 where we mention the ability to manually specify which station the radar data is from, which fixes this issue.
radar = pyart.io.read_nexrad_archive("s3://noaa-nexrad-level2/2006/07/24/KHNX/KHNX20060724_020338.gz", station="KHNX")
print(radar.latitude['data'], radar.longitude['data'])
Hello,
I am reading in the following radar file from the amazon sever: https://noaa-nexrad-level2.s3.amazonaws.com/2006/07/24/KHNX/KHNX20060724_020338.gz
When trying to plot the radar data on a map, I'm noticing some weird results for the latitude and longitude values returned with
get_gate_lat_lon_alt
:After doing some digging, I think it has to do with the fact that the radar location, as stored in
radar.longitude
andradar.latitude
after reading in the file are incorrect (data value is 0):It could just be that the data is simply stored wrong in the original level 2 file...in which case maybe there is nothing that can be done. However, other radar data plotters (i.e. ) seem to be able to read/plot the data just fine on a map, so there should be some way to do it...