HealSparseInputMapTask#

class lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask(**kwargs)#

Bases: Task

Task for making a HealSparse input map.

Methods Summary

add_warp_to_cell_input_map(ccd_row, weight, cell)

Add a warp to the input map for a given cell.

build_ccd_input_map(bbox, wcs, ccds)

Build a map from ccd valid polygons or bounding boxes.

build_cell_input_map(cell)

Add a cell to the input map.

finalize_ccd_input_map_mask()

Use accumulated mask information to finalize the masking of ccd_input_map.

initialize_cell_input_map(bbox, wcs, ...)

Initialize the cell input map.

mask_warp_bbox(bbox, visit, mask, bit_mask_value)

Mask a subregion from a visit.

Methods Documentation

add_warp_to_cell_input_map(ccd_row, weight, cell)#

Add a warp to the input map for a given cell.

Parameters#

ccd_rowlsst.afw.table.ExposureRecord

Row from the ccd table.

weightfloat

Weight to use for this detector.

celllsst.skymap.cellInfo.CellInfo

Cell that overlaps the ccd_table_row.

build_ccd_input_map(bbox, wcs, ccds)#

Build a map from ccd valid polygons or bounding boxes.

Parameters#

bboxlsst.geom.Box2I

Bounding box for region to build input map.

wcslsst.afw.geom.SkyWcs

WCS object for region to build input map.

ccdslsst.afw.table.ExposureCatalog

Exposure catalog with ccd data from coadd inputs.

build_cell_input_map(cell)#

Add a cell to the input map.

Parameters#

celllsst.skymap.cellInfo.CellInfo

Cell to initialize.

finalize_ccd_input_map_mask()#

Use accumulated mask information to finalize the masking of ccd_input_map.

Raises#

RuntimeError : Raised if build_ccd_input_map was not run first.

initialize_cell_input_map(bbox, wcs, visit_detectors)#

Initialize the cell input map.

Parameters#

bboxlsst.geom.Box2I

Bounding box for region to build input map.

wcslsst.afw.geom.SkyWcs

WCS object for region to build input map.

visit_detectorslist [tuple]

List of visit/detector tuples.

mask_warp_bbox(bbox, visit, mask, bit_mask_value)#

Mask a subregion from a visit. This must be run after build_ccd_input_map initializes the overall map.

Parameters#

bboxlsst.geom.Box2I

Bounding box from region to mask.

visitint

Visit number corresponding to warp with mask.

masklsst.afw.image.MaskX

Mask plane from warp exposure.

bit_mask_valueint

Bit mask to check for bad pixels.

Raises#

RuntimeError : Raised if build_ccd_input_map was not run first.