estimate_local_background¶
-
sitelle.source.estimate_local_background(x, y, cube, small_bin=3, big_bin=30)¶ Estimation of a local background spectrum. For a given position, the background spectrum is defined as the median taken in a
big_bin x big_binpixels box from which thesmall_bin x small_bincenter pixels have been excluded.Parameters: - x (int) – Abscisse position, in pixels
- y (int) – Ordinate position, in pixels
- cube (
SpectralCube) – SpectralCube instance where we are looking at the source - small_bin (int) – (Optional) Size of the inner region. Default = 3
- big_bin (int) – (Optional) Size of the outter region. Default = 30
Returns: bkg_spec – The corresponding spectrum
Return type: 1D
ndarray