lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask Class Reference
Inheritance diagram for lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask:

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"

Detailed Description

Task for making a HealSparse input map.

Member Function Documentation

◆ _pixels_to_radec()

lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask._pixels_to_radec ( self,
wcs,
pixels )
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.

◆ add_warp_to_cell_input_map()

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.

◆ build_ccd_input_map()

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.

◆ build_cell_input_map()

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.

◆ finalize_ccd_input_map_mask()

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.

◆ initialize_cell_input_map()

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.

◆ mask_warp_bbox()

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.

Member Data Documentation

◆ _ccd_input_bad_count_map

lsst.pipe.tasks.healSparseMapping.HealSparseInputMapTask._ccd_input_bad_count_map
protected
Initial value:
= hsp.HealSparseMap.make_empty(
nside_coverage=self.config.nside_coverage,
nside_sparse=self.config.nside,
dtype=dtype,
primary=dtype[0][0])

The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/healSparseMapping.py