blot_background¶
- grizli.prep.blot_background(visit={'files': None, 'product': ''}, bkg_params={'bh': 256, 'bw': 256, 'fh': 3, 'fw': 3, 'pixel_scale': 0.1}, detection_threshold=None, masked_bkg_params={'bh': 32, 'bw': 32, 'fh': 5, 'fw': 5, 'pixel_scale': 0.1}, verbose=True, skip_existing=True, get_median=False, log=True, stepsize=-1, **kwargs)[source]¶
Blot SEP background of drizzled image back to component FLT images
- Parameters
- visitdict
Dictionary defining the drizzle product (‘product’ key) and associated FLT files that contribute to the drizzled mosaic (‘files’ list)
- bkg_paramsdict
Parameters for
sep.Background- detection_thresholdfloat, None
If provided, run a preliminary source catalog with
bkg_paramsto generate a segmentation map. Then runsep.Backgroundwithmasked_bkg_paramsand the segmentation mask.- masked_bkg_paramsdict
Background parameters for the masked background
- verbosebool
Status messages
- skip_existingbool
Don’t run if
BLOTSKYkeyword found in the FLT header- get_medianbool
Don’t use full background but rather just use (masked) median value of the drizzled mosaic
- logbool
Write log information to
grizli.utils.LOGFILE- stepsizeint
Parameter for
blot
- Returns
- Nothing returned but subtracts the transformed background image directly
- from the FLT files and updates header keywords