pyremap.descriptor.ProjectionGridDescriptor.create

classmethod ProjectionGridDescriptor.create(projection, x, y, meshName)[source]

Given x and y coordinates defining the axes of the logically rectangular grid, save the coordinates interpolate/extrapolate to locate corners.

Parameters:
  • projection (pyproj.Proj object) – The projection used to map from grid x-y space to latitude and longitude

  • x (numpy.ndarray) – One dimensional array defining the x coordinate of grid cell centers.

  • y (numpy.ndarray) – One dimensional array defining the y coordinate of grid cell centers.

  • meshName (str) – The name of the grid (e.g. '10km_Antarctic_stereo')