LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Static Public Attributes | List of all members
lsst.pipe.tasks.mocks.simpleMapper.ExposurePersistenceType Class Reference
Inheritance diagram for lsst.pipe.tasks.mocks.simpleMapper.ExposurePersistenceType:
lsst.pipe.tasks.mocks.simpleMapper.PersistenceType

Public Member Functions

def makeButlerLocation
 
- Public Member Functions inherited from lsst.pipe.tasks.mocks.simpleMapper.PersistenceType
def makeButlerLocation
 

Static Public Attributes

string python = "lsst.afw.image.ExposureF"
 
string cpp = "ExposureF"
 
string storage = "FitsStorage"
 
string ext = ".fits"
 
tuple suffixes = ("_sub",)
 
- Static Public Attributes inherited from lsst.pipe.tasks.mocks.simpleMapper.PersistenceType
 python = None
 
string cpp = "ignored"
 
 storage = None
 
string ext = ""
 
tuple suffixes = ()
 

Detailed Description

Persistence type of Exposure images.

Definition at line 73 of file simpleMapper.py.

Member Function Documentation

def lsst.pipe.tasks.mocks.simpleMapper.ExposurePersistenceType.makeButlerLocation (   cls,
  path,
  dataId,
  suffix = None 
)
Method called by SimpleMapping to implement a map_ method; overridden to support subimages.

Definition at line 84 of file simpleMapper.py.

84 
85  def makeButlerLocation(cls, path, dataId, suffix=None):
86  """Method called by SimpleMapping to implement a map_ method; overridden to support subimages."""
87  if suffix is None:
88  loc = super(ExposurePersistenceType, cls).makeButlerLocation(path, dataId, suffix=None)
89  elif suffix == "_sub":
90  subId = dataId.copy()
91  bbox = subId.pop('bbox')
92  loc = super(ExposurePersistenceType, cls).makeButlerLocation(path, subId, suffix=None)
93  loc.additionalData.set('llcX', bbox.getMinX())
94  loc.additionalData.set('llcY', bbox.getMinY())
95  loc.additionalData.set('width', bbox.getWidth())
96  loc.additionalData.set('height', bbox.getHeight())
97  if 'imageOrigin' in dataId:
98  loc.additionalData.set('imageOrigin',
99  dataId['imageOrigin'])
100  return loc

Member Data Documentation

string lsst.pipe.tasks.mocks.simpleMapper.ExposurePersistenceType.cpp = "ExposureF"
static

Definition at line 78 of file simpleMapper.py.

string lsst.pipe.tasks.mocks.simpleMapper.ExposurePersistenceType.ext = ".fits"
static

Definition at line 80 of file simpleMapper.py.

string lsst.pipe.tasks.mocks.simpleMapper.ExposurePersistenceType.python = "lsst.afw.image.ExposureF"
static

Definition at line 77 of file simpleMapper.py.

string lsst.pipe.tasks.mocks.simpleMapper.ExposurePersistenceType.storage = "FitsStorage"
static

Definition at line 79 of file simpleMapper.py.

tuple lsst.pipe.tasks.mocks.simpleMapper.ExposurePersistenceType.suffixes = ("_sub",)
static

Definition at line 81 of file simpleMapper.py.


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