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