find_single_image_CRs

grizli.prep.find_single_image_CRs(visit, simple_mask=False, with_ctx_mask=True, erode_ctx_single=3, run_lacosmic=True, verbose=True, **kwargs)[source]

Use LACosmic to find CRs in parts of an ACS mosaic where only one exposure was available

Parameters
visitdict

List of visit information from parse_flt_files.

simple_maskbool

If true, set 1024 CR bit for all parts of a given FLT where it does not overlap with any others in the visit. If False, then run LACosmic to flag CRs in this area but keep the pixels.

with_ctx_maskbool

If True, use the context image to mask out regions where the context image is blank.

erode_ctx_singleint

Number of binary erosion iterations to apply to the single-image mask derived from drizzled context image

run_lacosmicbool

Run LA Cosmic.

Requires context (CTX) image `visit[‘product’]+’_drc_ctx.fits`.