casangi / xradio

Xarray Radio Astronomy Data IO
Other
9 stars 5 forks source link

casa image -> xds image -> casa image round trip does not preserve data type #110

Open dmehring opened 7 months ago

dmehring commented 7 months ago

If you start with a casa image with "float" pixels (the nominal value right now), in going through this cycle the final casa image will have "double" valued pixels. The intermediate xds probably should preserve the data type of the initial casa image as well if it doesn't already do so.

dmehring commented 7 months ago

This appears to be a limitation with the python-casacore image constructor. I've submitted an issue https://github.com/casacore/python-casacore/issues/257