Skip to content

Commit

Permalink
Fix subset plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Aug 7, 2024
1 parent fe3133f commit 2271f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xreds/plugins/subset_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def __str__(self):
def subset(self, ds):
"""Subset the dataset using the extracted query arguments"""
if self.points is not None:
ds = ds.subset_grid.grid.subset_polygon(ds, self.points)
ds = ds.xsg.grid.subset_polygon(ds, self.points)
elif self.bbox is not None:
ds = ds.subset_grid.grid.subset_bbox(ds, self.bbox)
ds = ds.xsg.grid.subset_bbox(ds, self.bbox)
if self.time is not None:
# Remove Z from the time strings for now to avoid issues with parsing
# from xarray. This is due to most datasets not using time aware
Expand Down

0 comments on commit 2271f78

Please sign in to comment.