reproject_match

Contents

reproject_match#

reproject_match(dst_meta: dict, src_arr: ~numpy.ndarray | ~numpy.ma.MaskedArray, src_meta: dict, resampling: ~rasterio.enums.Resampling = Resampling.nearest, **kwargs) -> (typing.Union[numpy.ndarray, numpy.ma.MaskedArray], <class 'dict'>)[source]#

Reproject a raster to match the resolution, projection, and region of another raster.

Matching rioxarray reproject_match.

Parameters:
  • dst_meta (dict) – Destination metadata

  • src_arr (AnyNumpyArray) – Source raster’s array

  • src_meta (dict) – Source metadata

  • resampling (Resampling) – Resampling method

  • **kwargs – Passing other kwargs to calculate_default_transform and reproject

Returns:

Reprojected array and its metadata

Return type:

AnyNumpyArray, dict