xoa.cf.CFCoordSpecs.get_dim_type

CFCoordSpecs.get_dim_type(dim, obj=None, lower=True)[source]

Get the type of a dimension

Three cases:

  • This dimension is registered in CF dims.

  • obj has dim as dim and has an axis attribute inferred with get_axis().

  • obj has a coord named dim with an axis attribute inferred with get_axis().

Parameters:
Returns:

str, None – Letter as one of x, y, z, t or f, if found, else None

See also

get_axis