get_coordinate_variables#

compliance_checker.cfutil.get_coordinate_variables(ds)[source]#

Returns a list of variable names that identify as coordinate variables.

A coordinate variable is a netCDF variable with exactly one dimension. The name of this dimension must be equivalent to the variable name.

From CF §1.2 Terminology

It is a one-dimensional variable with the same name as its dimension [e.g., time(time) ], and it is defined as a numeric data type with values that are ordered monotonically. Missing values are not allowed in coordinate variables.

Parameters:

ds (netCDF4.Dataset) – An open netCDF dataset