Hello all,
Glad to be a part of the Py-ART community. We are new here and HOPE you guys can help us with an issue we are having!
We are trying to do the following with Py-ART:
- Read a NEXRAD Level II radar file
- Filter out gates in that file based on reflectivity
- Take a lat/lon and find the closest gates around you to your current location (from the filtered gates)
Reading the file is simple:
radar = pyart.io.read_nexrad_archive('assets/radar/RADAR_FILE_HERE')
We THINK this is the correct way to do a gatefilter:
gatefilter = pyart.correct.GateFilter(radar)
gatefilter.exclude_below('reflectivity', 40)
The question we have is how do we now take a lat/lon and look for gates closest to that lat/lon inside the gatefilter (since we don't want to have to look through all gates)
Currently to find reflectivity values at a lat/lon we are using sample code from this GitHub issue:
https://github.com/ARM-DOE/pyart/issues/448 The problem with this though is it takes a long time to run and doesn't work well if you try to check a ton of points in a row.
Ideally we'd like to be able to:
- input a lat/lon/altitude
- find the nearest gate to that location
- using the gate filter look for the closest gates to that location that have a reflectivity value > X
- check those gates distance to your current location (ideally we could just get a lat/lon of the gates we find and just calculate distance)
Any help would be GREATLY appreciated.
Thanks,
James Strong
Full-Stack Developer