xarray.Dataset.cf.guess_coord_axis#

Dataset.cf.guess_coord_axis(verbose=False)#

Automagically guesses X, Y, Z, T, latitude, longitude, and adds appropriate attributes. Uses regexes from Metpy and inspired by Iris function of same name.

Existing attributes will not be modified.

Parameters
verbosebool

Print extra info to screen

Returns
DataArray or Dataset

with appropriate attributes added