pyremap.descriptor.LatLon2DGridDescriptor.read¶
- classmethod LatLon2DGridDescriptor.read(fileName=None, ds=None, latVarName='lat', lonVarName='lon', meshName=None, regional=True)[source]¶
Read the lat-lon grid from a file with the given lat/lon var names.
- Parameters:
fileName (str, optional) – The path of the file containing the lat-lon grid (if
ds
is not supplied directly)ds (xarray.Dataset, optional) – The path of the file containing the lat-lon grid (if supplied,
fileName
will be ignored)latVarName (str, optional) – The name of the latitude variable in the grid file
lonVarName (str, optional) – The name of the longitude variable in the grid file
meshName (str or None, optional) – The name of the mesh or grid, used to give mapping files unique names
regional (bool or None, optional) – Whether this is a regional or global grid