Modules that provides utilities related with the sky background
The main products are:
Perform the sky subtraction from a fiber extracted frame
Parameters: | fname : string
sig : float, optional
iters : int or None, optional
wmin, wmax : floats, optional
width : int, optional
prefix : string, optional
skyprefix : string, optional
output_both : bool, optional
|
---|
Estimate the sky background as the (sigma clipped) median of medians within the required wavelengths and fiber number boundaries.
The input is read from fname. The keyword arguments are passed to hdu_fe_sky_background()
Parameters: | fname : string
sig : None or float, optional
iters : int or None, optional
wmin, wmax : float, optional
wmin, wmax : floats, optional
fibmin, fibmax : float, optional
|
---|---|
Returns: | median : float
n_fibs : int
|
Estimate the sky background as the (sigma clipped) median of medians within the required wavelengths and fiber number boundaries
Parameters: | data : numpy ndarray
header : astropy.io.fits.Header instance
sig : None or float, optional
iters : int or None, optional
wmin, wmax : float, optional
wmin, wmax : floats, optional
fibmin, fibmax : float, optional
|
---|---|
Returns: | median : float
n_fibs : int
|
Modify the mask to exclude rows outside the mask
Parameters: | mask : 1d array of bool
cindex : int
width : int, optional
|
---|---|
Returns: | window_mask : 1d array of bool
|