semantique.processor.arrays.Array.reproject

semantique.processor.arrays.Array.reproject#

Array.reproject(crs, **kwargs)[source]#

Reproject the spatial coordinates of the array into a different CRS.

Parameters:
  • crs – Target coordinate reference system. Can be given as any object understood by the initializer of pyproj.crs.CRS. This includes pyproj.crs.CRS objects themselves, as well as EPSG codes and WKT strings.

  • **kwargs – Additional keyword arguments passed on to rioxarray.rioxarray.XRasterBase.reproject().

Returns:

xarray.DataArray – The input array with reprojected spatial coordinates.