782: Replaced the literal strings 'x_axis_label' and 'y_axis_label' in the query_params submitted to xarray with the values for the axis labels stored in self._coverage_properties.

This commit is contained in:
Michael Lane
2021-09-20 01:11:57 +00:00
parent 2cb68277f9
commit b36fc74915
+2 -2
View File
@@ -231,8 +231,8 @@ class XarrayProvider(BaseProvider):
LOGGER.warning(msg)
raise ProviderQueryError(msg)
else:
query_params['x_axis_label'] = slice(bbox[0], bbox[2])
query_params['y_axis_label'] = slice(bbox[1], bbox[3])
query_params[self._coverage_properties['x_axis_label']] = slice(bbox[0], bbox[2])
query_params[self._coverage_properties['y_axis_label']] = slice(bbox[1], bbox[3])
if datetime_ is not None:
if self._coverage_properties['time_axis_label'] in subsets: