LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
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 (cls, path, dataId, mapper, suffix=None, storage=None)
 
def canStandardize (self, datasetType)
 

Static Public Attributes

string python = "lsst.afw.image.ExposureF"
 
string cpp = "ExposureF"
 
string storage = "FitsStorage"
 
string ext = ".fits"
 
tuple suffixes = ("_sub",)
 

Detailed Description

Persistence type of Exposure images.

Definition at line 82 of file simpleMapper.py.

Member Function Documentation

◆ canStandardize()

def lsst.pipe.tasks.mocks.simpleMapper.PersistenceType.canStandardize (   self,
  datasetType 
)
inherited

Definition at line 65 of file simpleMapper.py.

65  def canStandardize(self, datasetType):
66  return False
67 
68 

◆ makeButlerLocation()

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

Reimplemented from lsst.pipe.tasks.mocks.simpleMapper.PersistenceType.

Definition at line 93 of file simpleMapper.py.

93  def makeButlerLocation(cls, path, dataId, mapper, suffix=None, storage=None):
94  """Method called by SimpleMapping to implement a map_ method; overridden to support subimages."""
95  if suffix is None:
96  loc = super(ExposurePersistenceType, cls).makeButlerLocation(path, dataId, mapper, suffix=None,
97  storage=storage)
98  # Write options are never applicable for _sub, since that's only
99  # for read. None of the values aside from the "NONE"s matter, but
100  # writing explicit meaningless values for all of them to appease
101  # afw is the price we pay for trying to write a non-CameraMapper
102  # Mapper. It'll all get better with Gen3 (TM).
103  options = {
104  "compression.algorithm": "NONE",
105  "compression.columns": 0,
106  "compression.rows": 0,
107  "compression.quantizeLevel": 0.0,
108  "scaling.algorithm": "NONE",
109  "scaling.bzero": 0.0,
110  "scaling.bscale": 0.0,
111  "scaling.bitpix": 0,
112  "scaling.quantizeLevel": 0.0,
113  "scaling.quantizePad": 0.0,
114  "scaling.fuzz": False,
115  "scaling.seed": 0,
116  }
117  for prefix in ("image", "mask", "variance"):
118  for k, v in options.items():
119  loc.additionalData.set("{}.{}".format(prefix, k), v)
120  elif suffix == "_sub":
121  subId = dataId.copy()
122  bbox = subId.pop('bbox')
123  loc = super(ExposurePersistenceType, cls).makeButlerLocation(path, subId, mapper, suffix=None,
124  storage=storage)
125  loc.additionalData.set('llcX', bbox.getMinX())
126  loc.additionalData.set('llcY', bbox.getMinY())
127  loc.additionalData.set('width', bbox.getWidth())
128  loc.additionalData.set('height', bbox.getHeight())
129  if 'imageOrigin' in dataId:
130  loc.additionalData.set('imageOrigin',
131  dataId['imageOrigin'])
132  return loc
133 
134 
def format(config, name=None, writeSourceLine=True, prefix="", verbose=False)
Definition: history.py:174

Member Data Documentation

◆ cpp

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

Definition at line 87 of file simpleMapper.py.

◆ ext

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

Definition at line 89 of file simpleMapper.py.

◆ python

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

Definition at line 86 of file simpleMapper.py.

◆ storage

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

Definition at line 88 of file simpleMapper.py.

◆ suffixes

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

Definition at line 90 of file simpleMapper.py.


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