background_regions

ndmapper.lib.gmos.spec.ifu.background_regions(*args, **kwargs)[source] [edit on github]

Determine unilluminated regions of the detector, which can subsequently be used (with optional user modifications) to estimate an instrumental background or scattered light level as a function of position.

Parameters:

input_ref : DataFileList or DataFile

Input image with the dimensions of the raw data. This must have an entry named ‘trace’ in its cals dictionary, from which the illuminated and unilluminated detector regions can be determined.

See “help gffindblocks” in IRAF for more detailed information.

Returns:

mask : list of list of int

List of rectangular regions in the format [[x1, x2, y1, y2], ...] (currently FITS convention).