simonsobs / pspy

Python power spectrum code
Other
7 stars 5 forks source link

Make sure to keep wcs attribute of enmap #63

Open xgarrido opened 1 year ago

xgarrido commented 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

xzackli commented 1 year ago

This can be solved with np.copyto, if my understanding of the ndarray interface is correct?