diff --git a/glidertools/mapping.py b/glidertools/mapping.py index 7485787..888a167 100644 --- a/glidertools/mapping.py +++ b/glidertools/mapping.py @@ -974,7 +974,9 @@ def grid_data( gridded = gridded.reindex(labels.astype(float)) if interp_lim > 0: - gridded = gridded.interpolate(limit=interp_lim).bfill(limit=interp_lim) + gridded = gridded.interpolate(limit=interp_lim, limit_area="inside").bfill( + limit=interp_lim + ) if not return_xarray: return gridded