blot_background

grizli.prep.blot_background(visit={'files': None, 'product': ''}, bkg_params={'bh': 64, 'bw': 64, 'fh': 3, 'fw': 3, 'pixel_scale': 0.06}, verbose=True, skip_existing=True, get_median=False, log=True, stepsize=10, **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

verbosebool

Status messages

skip_existingbool

Don’t run if BLOTSKY keyword 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