pyflwdir.FlwdirRaster.basin_bounds#

FlwdirRaster.basin_bounds(basins=None, **kwargs)[source]#

Returns a the basin boundaries.

Additional key-word arguments are passed to the basins method which is used to create a basins map if none is provided.

Parameters:

basins (2D array of uint32, optional) – basin ids, by default None and calculated on the fly.

Returns:

  • lbs (1D array of int) – labels of basins

  • bboxs (2D array of float) – bounding boxes of basins, the columns represent [xmin, ymin, xmax, ymax]

  • total_bbox (1D array of float) – the total bounding box of all basins [xmin, ymin, xmax, ymax]