HealSparseInputMapTask#
- class lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask(**kwargs)#
Bases:
TaskTask 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.
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_row
lsst.afw.table.ExposureRecord Row from the ccd table.
- weight
float Weight to use for this detector.
- cell
lsst.skymap.cellInfo.CellInfo Cell that overlaps the ccd_table_row.
- ccd_row
- build_ccd_input_map(bbox, wcs, ccds)#
Build a map from ccd valid polygons or bounding boxes.
Parameters#
- bbox
lsst.geom.Box2I Bounding box for region to build input map.
- wcs
lsst.afw.geom.SkyWcs WCS object for region to build input map.
- ccds
lsst.afw.table.ExposureCatalog Exposure catalog with ccd data from coadd inputs.
- bbox
- build_cell_input_map(cell)#
Add a cell to the input map.
Parameters#
- cell
lsst.skymap.cellInfo.CellInfo Cell to initialize.
- cell
- 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#
- bbox
lsst.geom.Box2I Bounding box for region to build input map.
- wcs
lsst.afw.geom.SkyWcs WCS object for region to build input map.
- visit_detectors
list[tuple] List of visit/detector tuples.
- bbox
- 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#
- bbox
lsst.geom.Box2I Bounding box from region to mask.
- visit
int Visit number corresponding to warp with mask.
- mask
lsst.afw.image.MaskX Mask plane from warp exposure.
- bit_mask_value
int Bit mask to check for bad pixels.
Raises#
RuntimeError : Raised if build_ccd_input_map was not run first.
- bbox