pyremap.descriptor.ProjectionGridDescriptor.read¶
- classmethod ProjectionGridDescriptor.read(projection, fileName, meshName=None, xVarName='x', yVarName='y')[source]¶
Given a grid file with x and y coordinates defining the axes of the logically rectangular grid, read in the x and y coordinates and interpolate/extrapolate to locate corners.
- Parameters:
projection (pyproj.Proj object) – The projection used to map from grid x-y space to latitude and longitude
fileName (str) – The path of the file containing the grid data
meshName (str, optional) – The name of the grid (e.g.
'10km_Antarctic_stereo'
). If not provided, the data set infileName
must have a global attributemeshName
that will be used instead.xVarName (str, optional) – The name of the x and y (in meters) variables in the grid file
yVarName (str, optional) – The name of the x and y (in meters) variables in the grid file