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 toNone
to not generate CRS coordinate at all.always_yx (
bool
) – If True, always use namesy,x
for spatial coordinates even for geographic geoboxes.dims (
Optional
[Tuple
[str
,str
]]) – Use custom names for spatial dimensions, default is to usey,x
orlatitude, longitude
based 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,x
for projected orlatitude, longitude
for geographic.