shxarray.core.cf#
- class shxarray.core.cf.CoordInfo(min, max, step, direction, var)#
Bases:
tuple- direction#
Alias for field number 3
- max#
Alias for field number 1
- min#
Alias for field number 0
- step#
Alias for field number 2
- var#
Alias for field number 4
- shxarray.core.cf.change_central_longitude(dain, central_longitude=0, resort=True)#
Change the central longitude of a dataset to 180 or 360 degrees :param dain: input data to change :type dain: xarry.DataArray or xarray.Dataset :param central_longitude: central longitude to change to. either 0 or 180 degrees (default is 0) :type central_longitude: int
- Returns:
Input data with changed central longitude (if needed) otherwise returns the original input
- Return type:
xarray.DataArray or xarray.Dataset
- shxarray.core.cf.find_coord(coordvars, names)#
Find a coordinate variable in a dictionary of coordinate variables
- shxarray.core.cf.find_lat(coordvars)#
- shxarray.core.cf.find_lon(coordvars)#
- shxarray.core.cf.get_cfatts(standard_name)#
Return CF attributes for certain coordinate types
- shxarray.core.cf.get_cfglobal()#
Return global attributes and possible user details for the CF convention