Commit 4b521c6d authored by Jeff Piollé's avatar Jeff Piollé
Browse files

replace deprecated nanmean

parent 2990631b
......@@ -16,7 +16,6 @@ import numpy
from collections import OrderedDict
from pyresample import kd_tree, geometry,utils
from scipy import interpolate, ndimage
from scipy.stats import nanmean
import pdb
from cerbere.datamodel.field import Field
from cerbere.datamodel.variable import Variable
......@@ -108,7 +107,7 @@ class Resampler(object):
# Replace with neighbours mean and update mask
try:
newpts = nanmean(array[[yneighb, xneighb]], axis=1)
newpts = numpy.nanmean(array[[yneighb, xneighb]], axis=1)
except RuntimeWarning:
raise Exception('Unexpectedly, some points have all neighbours '
'set to NaN')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment