|
lsst.pipe.tasks g2c8cee2ce7+cc5eabfb3a
|
Public Member Functions | |
| __init__ (self, **kwargs) | |
| build_ccd_input_map (self, bbox, wcs, ccds) | |
| mask_warp_bbox (self, bbox, visit, mask, bit_mask_value) | |
| finalize_ccd_input_map_mask (self) | |
| initialize_cell_input_map (self, bbox, wcs, visit_detectors) | |
| build_cell_input_map (self, cell) | |
| add_warp_to_cell_input_map (self, ccd_row, weight, cell) | |
Public Attributes | |
| ccd_input_map = None | |
| cell_input_map = None | |
Static Public Attributes | |
| ConfigClass = HealSparseInputMapConfig | |
Protected Member Functions | |
| _pixels_to_radec (self, wcs, pixels) | |
Protected Attributes | |
| _wcs = wcs | |
| _bbox = bbox | |
| _ccds = ccds | |
| _min_bad = self.config.bad_mask_min_coverage*hpix_area_arcsec2/(pixel_scale**2.) | |
| dict | _bits_per_visit_ccd = {} |
| _bits_per_visit = defaultdict(list) | |
| _ccd_input_bad_count_map | |
| _ccd_input_pixels = self.ccd_input_map.valid_pixels | |
| _visit_detectors = visit_detectors | |
| dict | _bits_per_visit_detector = {} |
| dict | _cell_pixels = {} |
| tuple | _visit_detector_cache = None |
| _detector_map_cache = None | |
Static Protected Attributes | |
| str | _DefaultName = "healSparseInputMap" |
Task for making a HealSparse input map.
Definition at line 133 of file healSparseMapping.py.
| lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask.__init__ | ( | self, | |
| ** | kwargs ) |
Definition at line 139 of file healSparseMapping.py.
|
protected |
Convert pixels to ra/dec positions using a wcs.
Parameters
----------
wcs : `lsst.afw.geom.SkyWcs`
WCS object.
pixels : `list` [`lsst.geom.Point2D`]
List of pixels to convert.
Returns
-------
radec : `numpy.ndarray`
Nx2 array of ra/dec positions associated with pixels.
Definition at line 431 of file healSparseMapping.py.
| lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask.add_warp_to_cell_input_map | ( | self, | |
| 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.
Definition at line 378 of file healSparseMapping.py.
| lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask.build_ccd_input_map | ( | self, | |
| 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.
Definition at line 145 of file healSparseMapping.py.
| lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask.build_cell_input_map | ( | self, | |
| cell ) |
Add a cell to the input map.
Parameters
----------
cell : `lsst.skymap.cellInfo.CellInfo`
Cell to initialize.
Definition at line 360 of file healSparseMapping.py.
| lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask.finalize_ccd_input_map_mask | ( | self | ) |
Use accumulated mask information to finalize the masking of ccd_input_map. Raises ------ RuntimeError : Raised if build_ccd_input_map was not run first.
Definition at line 291 of file healSparseMapping.py.
| lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask.initialize_cell_input_map | ( | self, | |
| 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.
Definition at line 313 of file healSparseMapping.py.
| lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask.mask_warp_bbox | ( | self, | |
| 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.
Definition at line 235 of file healSparseMapping.py.
|
protected |
Definition at line 168 of file healSparseMapping.py.
|
protected |
Definition at line 177 of file healSparseMapping.py.
|
protected |
Definition at line 176 of file healSparseMapping.py.
|
protected |
Definition at line 343 of file healSparseMapping.py.
|
protected |
Definition at line 220 of file healSparseMapping.py.
|
protected |
Definition at line 226 of file healSparseMapping.py.
|
protected |
Definition at line 169 of file healSparseMapping.py.
|
protected |
Definition at line 356 of file healSparseMapping.py.
|
staticprotected |
Definition at line 137 of file healSparseMapping.py.
|
protected |
Definition at line 358 of file healSparseMapping.py.
|
protected |
Definition at line 173 of file healSparseMapping.py.
|
protected |
Definition at line 357 of file healSparseMapping.py.
|
protected |
Definition at line 340 of file healSparseMapping.py.
|
protected |
Definition at line 167 of file healSparseMapping.py.
| lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask.ccd_input_map = None |
Definition at line 142 of file healSparseMapping.py.
| lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask.cell_input_map = None |
Definition at line 143 of file healSparseMapping.py.
|
static |
Definition at line 136 of file healSparseMapping.py.