environmentaltools.common.coords_name

environmentaltools.common.coords_name(ds)[source]

Detect standard coordinate variable names in dataset.

Identifies latitude and longitude coordinate names from common conventions.

Parameters:

ds (xarray.Dataset) – Input dataset to inspect.

Returns:

(lat_name, lon_name) - Names of latitude and longitude coordinates.

Return type:

tuple

Raises:

Exception – If standard coordinate names are not found in dataset.