dctools.utilities.xarray_utils.extract_spatial_bounds

dctools.utilities.xarray_utils.extract_spatial_bounds(ds)

Extract spatial bounds from an xarray Dataset, handling various coordinate naming conventions.

Parameters:

ds (xr.Dataset) – The xarray dataset.

Returns:

Dictionary with lat/lon min/max.

Return type:

dict