-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
As an example, consider the RAINBOW file used in the notebook: https://github.com/openradar/xradar/blob/main/examples/notebooks/Rainbow.ipynb
filename = DATASETS.fetch("2013051000000600dBZ.vol")
ds = xr.open_dataset(filename, group="sweep_0", engine="rainbow")
Inspecting the file 2013051000000600dBZ.vol carefully:
$ grep -a startrange 2013051000000600dBZ.vol
$ # No match
Notice the following search for (start_range) instead.
$ grep -a start_range 2013051000000600dBZ.vol
<start_range>0</start_range>
<start_range>0</start_range>
Consider the source https://github.com/openradar/xradar/blob/main/xradar/io/backends/rainbow.py#L720
start_range = self.root._get_rbdict_value(
var, "startrange", default=0, dtype=float
)
I believe the start range may not always be populated correctly and some rainbow files may not decode at all.
The rainbow spec may prescribe start_range and not startrange.
Metadata
Metadata
Assignees
Labels
No labels