pyremap.descriptor.LatLonGridDescriptor.read¶
- classmethod LatLonGridDescriptor.read(fileName=None, ds=None, latVarName='lat', lonVarName='lon', meshName=None, regional=None)[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 and longitude variables in the grid file
lonVarName (str, optional) – The name of the latitude and longitude variables 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. If
None
, this will be determined automatically by checking the limits of the corner latitude and longitude to see if they cover the globe.