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

_Undetect, _Fillvalue/nodata #70

Closed kmuehlbauer closed 1 year ago

kmuehlbauer commented 1 year ago

Description

The flow of _Undetect, _Fillvalue/nodata is currently not coherent for all backends/readers. The main issue is correctly moving attributes while reading and writing (eg. ODIM_H5).

As _Undetect is a special CfRadial2 attribute (AFAIR) it is not handled by xarray decoding and we might need to handle that within xradar. So best would be to add _Undetect to encoding attribute of the data variable to keep it around until writing.