separate_chip_sky¶
- grizli.prep.separate_chip_sky(visit, filters=['F200LP', 'F350LP', 'F600LP', 'F390W'], stepsize=-1, statistic=<function nanmedian>, by_amp=True, only_flc=True, row_average=True, average_order=11, seg_dilate=16, **kwargs)[source]¶
Get separate background values for each chip. Updates ‘CHIPSKY’ header keyword for each SCI extension of the visit exposure files.
- Parameters
- visitdict
List of visit information from
parse_flt_files
.- filterslist
Only run if the exposures in
visit['files']
use a filter in this list, e.g., less-common WFC3/UVIS filters- stepsizeint
Parameter for blot
- statisticfunc
Test statistic on (masked) image data from each extension
- by_ampbool
Compute stats by amp (half-chip) subregions (not implemented)
- only_flcTrue
Only run if
visit['files'][0]
has “flc” extension- row_averagebool
Compute row averages of the background-subtracted images.
- average_orderint
Order of Chebyshev polynomial to fit to the row averages.
- seg_dilateint
Number of binary dilation iterations for the segmentation mask.
- Returns
- statusbool
Runtime status, True if executed