xugrid.UgridDataArrayAccessor.interpolate_na#
- UgridDataArrayAccessor.interpolate_na(method: str = 'nearest', max_distance: float | None = None)[source]#
Fill in NaNs by interpolating.
This function automatically finds the UGRID dimension and broadcasts over the other dimensions.
- Parameters:
method (str, default is "nearest") – Currently the only supported method.
max_distance (nonnegative float, optional.) – Use
None
for no maximum distance.
- Returns:
filled
- Return type:
UgridDataArray of floats