pyremap.descriptor.ProjectionGridDescriptor.read
- classmethod ProjectionGridDescriptor.read(projection, filename, mesh_name=None, x_var_name='x', y_var_name='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
mesh_name (str, optional) – The name of the grid (e.g.
'10km_Antarctic_stereo'
). If not provided, the data set infilename
must have a global attributemesh_name
ofmeshName
that will be used instead.x_var_name (str, optional) – The name of the x and y (in meters) variables in the grid file
y_var_name (str, optional) – The name of the x and y (in meters) variables in the grid file