Greetings,
I have posted here before but because of unknown reasons I could not get pyart to work on my machine. That is now resolved. With that said I am very new with pyart but only a novice programmer so I may need some help.
My ultimate goal is to use pyart to extract moments out of NEXRAD volume scans *before* a volume scan is complete. I then want to immediately convert them to gridded netCDF to process with GDAL tools. (with the exception of velocity, I would like to dealias this and then convert to nc).
So, my first question is : Is it possible to request specific elevation slices before a volume scan is complete (assuming that particular elevation has been written to the file?) I will code the logic to download the partial file, I just need to know if pyart can extract out of an incomplete file.
My main issue is assistance with getting the basics working. Here is my code to open a file, convert to a grid and then write as netcdf. it currently does not work for obvious reasons.
--------------
import pyart
radar = pyart.io.read_nexrad_archive('KEWX20170220_044018_V06', field_names='RadialVelocity',scans=[0])
pyart.map.map_to_grid(radar, grid_shape=???, grid_limits,grid_shape=???)
pyart.io.write_grid(filename, radar, format='NETCDF4')
----------
Of course, this does not work. I am trying to get the lowest tilt [0] of RadialVelocity and simply write it to netCDF. What are the grid_shape and grid_limits? Is this resolution of some sort? I have tried looking in the documentation, but I am lost.
Thank you for any assistance. I am really looking forward to using this tool!
David