hydromt.DataArray.raster.transform_bounds#

DataArray.raster.transform_bounds(dst_crs: CRS | int | str | dict, densify_pts: int = 21) tuple[float, float, float, float]#

Transform bounds from object to destination CRS.

Optionally densifying the edges (to account for nonlinear transformations along these edges) and extracting the outermost bounds.

Note: this does not account for the antimeridian.

Parameters:
  • dst_crs (CRS, str, int, or dict) – Target coordinate reference system, input to pyproj.CRS.from_user_input()

  • densify_pts (uint, optional) – Number of points to add to each edge to account for nonlinear edges produced by the transform process. Large numbers will produce worse performance. Default: 21 (gdal default).

Returns:

bounds – Outermost coordinates in target coordinate reference system.

Return type:

list of float