Closed mgrover1 closed 3 months ago
To fix this, we just need to subset with elevation_angle
here:
https://github.com/openradar/xradar/blob/main/xradar/io/backends/nexrad_level2.py#L1362
The OrderedDict we see here, is taken verbatim from the message 5 (vcp) for the wanted elevation.
Great! I have a PR drafted up :)
Should we include some of the other variables included there? (ex. prf info, etc.) or include those in the attributes? Basically pop the elevation angle out, and unpack those other parts into the attributes...
For adding additional variables: Yes, we could add those which are defined by the standard. :+1:
Description
As of now, the elevation angle, variable thresholds, etc. are condensed into an ordered dictionary in the
sweep_fixed_mode
data variable in the individual sweep dataset.For example,
What we should do
We should expand this dictionary, and add these as additional variables in the
xr.Variable
fields in the givenxr.Dataset
.What are your thoughts here @kmuehlbauer ? I think this would make it easier to then aggregate given an elevation angle, instead of opening an ordered dictionary in numpy array