get_seg_iso_flux¶
- grizli.prep.get_seg_iso_flux(data, seg, tab, err=None, fill=None, verbose=0)[source]¶
Integrate flux within the segmentation regions.
- Parameters
- data2D array
Image data
- seg2D array
Segmentation image defining the ISO contours
- tab
Table
Detection catalog with columns (at least)
number / id
,xmin
,xmax
,ymin
,ymax
. Theid
column matches the values inseg
.- err2D array
Optional uncertainty array
- fillNone, array
If specified, create an image where the image segments are filled with scalar values for a given object rather than computing the ISO fluxes
- verbosebool/int
Status messages
- Returns
- iso_fluxarray
Summed image flux within the contours defined by the
seg
map- iso_errarray
Uncertainty if
err
specified- iso_areaarray
Area of the segments, in pixels
- filled_data2D array
If
fill
specified, return an image with values filled within the segments, e.g., for a binned image