cosmics_lacosmic#

astropop.image.processing.cosmics_lacosmic(frame, inplace=False, **lacosmic_kwargs)#

Remove cosmic rays with LAcosmic. From astroscrappy package.

Parameters:
frame: `~astropop.framedata.FrameData` compatible

2D image to clean with LACosmic.

inplace: bool, optional

If True, the operations will be performed inplace in the frame.

logger: `~logging.Logger`

Python logger to log the actions.

Returns:
FrameData

New cosmic-rays corrected FrameData instance if not inplace, else the image FrameData instance.

Notes