Return a dictionary whose values are the dimension coordinates which span the given dimension and keys of the domain’s dimension coordinate identifiers.
Parameters : |
|
---|---|
Returns : |
|
Examples
>>> d.dimensions
{'data': ['dim0', 'dim1', 'dim2'],
'dim0': ['dim0'],
'dim1': ['dim1'],
'dim2': ['dim2'],
'dim3': ['dim3'],
'aux0': ['dim1', 'dim2'],
'aux1': ['dim0'],
'aux2': ['dim2', 'dim1']}
>>> d.dim_coords()
{'dim0': <CF Coordinate: ...>,
'dim1': <CF Coordinate: ...>,
'dim2': <CF Coordinate: ...>,
'dim3': <CF Coordinate: ...>}
>>> d.dim_coords('dim2')
{'dim2': <CF Coordinate: ...>}