Astroua / TurbuStat

Statistics of Turbulence Python Package
http://turbustat.readthedocs.io/
MIT License
61 stars 26 forks source link

Wavelet Transform doesn't convolve over NaNs #10

Closed e-koch closed 7 years ago

e-koch commented 10 years ago

This is an astropy issue due to normalization of wavelet kernels.

e-koch commented 7 years ago

~The issue has been fixed for astropy 2.0.~

e-koch commented 7 years ago

Convolving over NaNs is not supported in the astropy convolution functions since they require the kernel be normalized. I'm going to retain the current implementation of the wavelet transform, which sets NaN-values to a fixed value. Tests with a synthetic power-law image show that the transform still returns the correct slope.