diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d5d6ff6..04bf2412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated ### Removed ### Fixed +- Fix shapefile subsetting if there is more than a 2d in lon lat in shapefile that includes a third dimension ### Security diff --git a/podaac/subsetter/subset.py b/podaac/subsetter/subset.py index a78adf90..c65d5c77 100644 --- a/podaac/subsetter/subset.py +++ b/podaac/subsetter/subset.py @@ -1009,7 +1009,7 @@ def subset_with_shapefile(dataset: xr.Dataset, shapefile_df.geometry = shapefile_df['geometry'].apply(translate_longitude) # Mask and scale shapefile - def scale(lon, lat): + def scale(lon, lat, extra=None): # pylint: disable=unused-argument lon = tuple(map(functools.partial(apply_scale_offset, lon_scale, lon_offset), lon)) lat = tuple(map(functools.partial(apply_scale_offset, lat_scale, lat_offset), lat)) return lon, lat