lsst.ip.diffim  13.0-17-gc2cefa3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
lsst.ip.diffim.imageMapReduce.ImageMapperSubtask Class Reference
Inheritance diagram for lsst.ip.diffim.imageMapReduce.ImageMapperSubtask:

Public Member Functions

def run
 

Static Public Attributes

 ConfigClass = ImageMapperSubtaskConfig
 

Static Private Attributes

string _DefaultName = "ip_diffim_ImageMapperSubtask"
 

Detailed Description

Abstract base class for any task that is to be
used as `ImageMapReduceConfig.mapperSubtask`.

An `ImageMapperSubtask` is responsible for processing individual
sub-exposures in its `run` method, which is called from
`ImageMapReduceTask.run`. `run` may return a processed new
sub-exposure which can be be "stitched" back into a new resulting
larger exposure (depending on the configured
`ImageReducerSubtask`); otherwise if it does not return an
lsst.afw.image.Exposure, then the
`ImageReducerSubtask.config.reducerSubtask.reduceOperation`
should be set to 'none' and the result will be propagated
as-is.

Definition at line 91 of file imageMapReduce.py.

Member Function Documentation

def lsst.ip.diffim.imageMapReduce.ImageMapperSubtask.run (   self,
  subExposure,
  expandedSubExposure,
  fullBBox,
  kwargs 
)
Perform operation on `subExposure`.

To be implemented by subclasses. See class docstring for more
details. This method is given the `subExposure` which
is to be operated upon, and an `expandedSubExposure` which
will contain `subExposure` with additional surrounding
pixels. This allows for, for example, convolutions (which
should be performed on `expandedSubExposure`), to prevent the
returned sub-exposure from containing invalid pixels.

This method may return a new, processed sub-exposure which can
be be "stitched" back into a new resulting larger exposure
(depending on the paired, configured `ImageReducerSubtask`);
otherwise if it does not return an lsst.afw.image.Exposure, then the
`ImageReducerSubtask.config.mapperSubtask.reduceOperation`
should be set to 'none' and the result will be propagated
as-is.

Parameters
----------
subExposure : lsst.afw.image.Exposure
    the sub-exposure upon which to operate
expandedSubExposure : lsst.afw.image.Exposure
    the expanded sub-exposure upon which to operate
fullBBox : afwGeom.BoundingBox
    the bounding box of the original exposure
kwargs :
    additional keyword arguments propagated from
    `ImageMapReduceTask.run`.

Returns
-------
A `pipeBase.Struct containing the result of the `subExposure` processing,
which may itself be of any type. See above for details. If it is an
lsst.afw.image.Exposure (processed sub-exposure), then the name in the Struct
should be 'subExposure'. This is implemented here as a pass-through
example only.

Definition at line 110 of file imageMapReduce.py.

Member Data Documentation

string lsst.ip.diffim.imageMapReduce.ImageMapperSubtask._DefaultName = "ip_diffim_ImageMapperSubtask"
staticprivate

Definition at line 107 of file imageMapReduce.py.

lsst.ip.diffim.imageMapReduce.ImageMapperSubtask.ConfigClass = ImageMapperSubtaskConfig
static

Definition at line 106 of file imageMapReduce.py.


The documentation for this class was generated from the following file: