Open xgarrido opened 1 year ago
We should preserve wcs when manipulating so_map object. This line https://github.com/simonsobs/pspy/blob/cca8cf1d1be2156ecdf8334e863eab4880889955/pspy/so_map.py#L782 removes wcs information : we must use noise.data[:] to only modify the numpy array and keep wcs unchanged
wcs
so_map
noise.data[:]
numpy
This can be solved with np.copyto, if my understanding of the ndarray interface is correct?
We should preserve
wcs
when manipulatingso_map
object. This line https://github.com/simonsobs/pspy/blob/cca8cf1d1be2156ecdf8334e863eab4880889955/pspy/so_map.py#L782 removeswcs
information : we must usenoise.data[:]
to only modify thenumpy
array and keepwcs
unchanged