get_axis_map#

compliance_checker.cfutil.get_axis_map(ds, variable)[source]#

Returns an axis_map dictionary that contains an axis key and the coordinate names as values.

For example:

{'X': ['longitude'], 'Y': ['latitude'], 'T': ['time']}

The axis C is for compressed coordinates like a reduced grid, and U is for unknown axis. This can sometimes be physical quantities representing a continuous discrete axis, like temperature or density.

Parameters:
  • nc (netCDF4.Dataset) – An open netCDF dataset

  • variable (str) – Variable name