I've started playing around with enlib and love how it inherits from numpy. But sometimes, the enlib-ness of a map gets stripped away when I pass it to a ufunc. For example:
>>> type(fAlpha)
<class 'enlib.enmap.ndmap'>
>>> retMap = np.fft.ifftshift(enmap.ifft(fAlpha).real)
>>> type(retMap)
<type 'numpy.ndarray'>
How can we prevent this? My workaround right now is to do something like:
retMap = np.fft.ifftshift(enmap.ifft(fAlpha).real)+fAlpha*0.
to allow it to retain its wcs.
I've started playing around with enlib and love how it inherits from numpy. But sometimes, the enlib-ness of a map gets stripped away when I pass it to a ufunc. For example:
How can we prevent this? My workaround right now is to do something like:
to allow it to retain its wcs.