You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation for xarray.Dataset.interpolate_na, additional keywords are passed on to numpy.interp when method="linear". In one of the examples one such additional keyword is fill_value (="extrapolate").
But according the the linked documentation for numpy.interp, that function only takes left, right and period as keyword arguments.
The given example does work though... Does it really use numpy.interp or does it perhaps use scipy.interpolate.interp1d, which does have a keyword called fill_value?
The text was updated successfully, but these errors were encountered:
From what I was able to gather, numpy.interp only takes three keyword arguments as **kwargs i.e. left, right, and period but not fill_value. So when passing fill_value as a keyword argument to xarray.Dataset.interpolate_na with method="linear", it does not use numpy.interp but it uses scipy.interpolate.interp1d(), which provides the fill_value parameter.
What is your issue?
According to the documentation for
xarray.Dataset.interpolate_na
, additional keywords are passed on tonumpy.interp
whenmethod="linear"
. In one of the examples one such additional keyword isfill_value
(="extrapolate"
).But according the the linked documentation for
numpy.interp
, that function only takesleft
,right
andperiod
as keyword arguments.The given example does work though... Does it really use
numpy.interp
or does it perhaps usescipy.interpolate.interp1d
, which does have a keyword calledfill_value
?The text was updated successfully, but these errors were encountered: