ClimoAccessor.standardize_coords¶
- ClimoAccessor.standardize_coords(verbose=False)[source]¶
Infer and standardize coordinates to satisfy CF conventions with the help of
guess_coord_axisandcf_xarray.CFAccessor.rename_like. This function does the following:Adds
longitudeandlatitudestandard names anddegrees_eastanddegrees_northunits to detectedXandYaxes.Ensures detected longitude and latitude coordinates are designated as
XandYaxes if none are present.Ensures unique
Zaxis is also detected asverticaland transforms height-like, pressure-like, and temperature-like vertical coordinate units to kilometers, hectopascals, and kelvin, respectively.Renames longitude, latitude, vertical, and time coordinate names to
'lon','lat','lev', and'time', respectively.Renames coordinate bounds to the coordinate names followed by a
'_bnds'suffix and removes all attributes from bounds variables.
Existing attributes are not overwritten.
- Parameters
verbose (bool, optional) – If
True, print statements are issued.