odc.geo.xr.xr_coords
- odc.geo.xr.xr_coords(gbox, crs_coord_name='spatial_ref', always_yx=False, dims=None)[source]
Dictionary of Coordinates in xarray format.
- Parameters:
crs_coord_name (
Optional[str]) – Use custom name for CRS coordinate, default is “spatial_ref”. Set toNoneto not generate CRS coordinate at all.always_yx (
bool) – If True, always use namesy,xfor spatial coordinates even for geographic geoboxes.dims (
Optional[Tuple[str,str]]) – Use custom names for spatial dimensions, default is to usey,xorlatitude, longitudebased on projection used. Dimensions are supplied in “array” order, i.e.('y', 'x').
- Return type:
- Returns:
Dictionary
name:str -> xr.DataArray. Where names are either as supplied bydims=or otherwisey,xfor projected orlatitude, longitudefor geographic.