Skip to content

Commit 8031503

Browse files
Merge pull request #11 from LimnoTech/filter-geospatial
Filtering Geospatial Data
2 parents 13f30bd + 46149d2 commit 8031503

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pygeoapi/provider/xarray_.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ def get_fields(self):
108108
if not self._fields:
109109
for key, value in self._data.variables.items():
110110
if key not in self._data.coords:
111+
if not {self.time_field, self.x_field, self.y_field}.issubset(value.dims):
112+
continue
111113
LOGGER.debug('Adding variable')
112114
dtype = value.dtype
113115
if dtype.name.startswith('float'):

0 commit comments

Comments
 (0)