def polarGridAroundEye(self, i): """ Generate a polar coordinate grid around the eye of the tropical cyclone at time i. :type i: int :param i: the time. """ if self.domain=='full': R, theta = makeGrid(self.track.Longitude[i], self.track.Latitude[i], self.margin, self.resolution, minLon=self.gridLimit['xMin'], maxLon=self.gridLimit['xMax'], minLat=self.gridLimit['yMin'], maxLat=self.gridLimit['yMax']) else: R, theta = makeGrid(self.track.Longitude[i], self.track.Latitude[i], self.margin, self.resolution) return R, theta
def polarGridAroundEye(self, i): """ Generate a polar coordinate grid around the eye of the tropical cyclone at time i. :type i: int :param i: the time. """ if self.domain == 'full': R, theta = makeGrid(self.track.Longitude[i], self.track.Latitude[i], self.margin, self.resolution, minLon=self.gridLimit['xMin'], maxLon=self.gridLimit['xMax'], minLat=self.gridLimit['yMin'], maxLat=self.gridLimit['yMax']) else: R, theta = makeGrid(self.track.Longitude[i], self.track.Latitude[i], self.margin, self.resolution) return R, theta
def polarGridAroundEye(lon, lat, margin=2, resolution=0.02): R, theta = makeGrid(lon, lat, margin, resolution) return R, theta