def get_grid_spatial_dimensions(self, variable):
data = self.open_dataset(self.service).variables[variable.variable]<EOL>dimensions = list(data.dimensions)<EOL>return data.shape[dimensions.index(variable.x_dimension)], data.shape[dimensions.index(variable.y_dimension)]<EOL>
Returns (width, height) for the given variable