Closed navidcy closed 5 years ago
Thank you for reporting and reminding me about this. I've switched the uniform_filter
to astropy.convolution.convolve
. However, as a record of this, the gaussian_filter still implemented using scipy
's ndimage
, I couldn't find in a quick look an option to replace it:
Using
scipy
'sndimage
filters, as for example in https://github.com/josuemtzmo/trackeddy/blob/313380dfffd40f70e62fbf2f6b7373900138c9f6/trackeddy/tracking.py#L763 induces some errors asscipy.ndimage
handles NaN (e.g., points which correspond to land) as zeros and this affects the average.An alternative way that does not suffer from this is
astropy.convolution
.