openradar / xradar

A tool to work in weather radar data in xarray
https://docs.openradarscience.org/projects/xradar
MIT License
88 stars 17 forks source link

Actual azimutal start/end angles lost when importing Rainbow data #76

Closed egouden closed 11 months ago

egouden commented 1 year ago

When importing Rainbow data, for a given ray, the information on actual azimuth start and azimuth end is lost because the actual angle step is slightly different than 1.

kmuehlbauer commented 1 year ago

@egouden Thanks for raising. I've a couple of questions.

For the CfRadial2 standard (which we try to aim for with the data model) there is only one azimuth array which is given as beam-center. So we convert those two arrays to beam-center values.

egouden commented 1 year ago

What if one wants to write to an ODIM format with start and end azimuth angles?

kmuehlbauer commented 1 year ago

Currently ODIM_H5 v2.2 is supported, which writes time, azimuth and elevation arrays for start/stop ray.

As those are calculated from the center values, they might not be equivalent.

kmuehlbauer commented 1 year ago

Exact round-tripping isn't guaranteed.

kmuehlbauer commented 11 months ago

I'm going to close this. We might handle this in the future by keeping azimuth_start and azimuth_stop within the data but need to check first what implications this has. Until then we use the momentary solution.