def getBounds(self): latbnds, lonbnds = (self._lataxis_.getExplicitBounds(), self._lonaxis_.getExplicitBounds()) if (latbnds is None or lonbnds is None) and getAutoBounds() in [1,2]: nlatbnds, nlonbnds = self.genBounds() if latbnds is None: latbnds = nlatbnds if lonbnds is None: lonbnds = nlonbnds return (latbnds, lonbnds)
def getBounds(self): """Get the grid cell boundaries, as a tuple (latitudeBounds, longitudeBounds) """ latbnds, lonbnds = (self._lataxis_.getExplicitBounds(), self._lonaxis_.getExplicitBounds()) if (latbnds is None or lonbnds is None) and getAutoBounds() in [1,2]: nlatbnds, nlonbnds = self.genBounds() if latbnds is None: latbnds = nlatbnds if lonbnds is None: lonbnds = nlonbnds return (latbnds, lonbnds)