LSSTApplications  17.0+124,17.0+14,17.0+73,18.0.0+37,18.0.0+80,18.0.0-4-g68ffd23+4,18.1.0-1-g0001055+12,18.1.0-1-g03d53ef+5,18.1.0-1-g1349e88+55,18.1.0-1-g2505f39+44,18.1.0-1-g5315e5e+4,18.1.0-1-g5e4b7ea+14,18.1.0-1-g7e8fceb+4,18.1.0-1-g85f8cd4+48,18.1.0-1-g8ff0b9f+4,18.1.0-1-ga2c679d+1,18.1.0-1-gd55f500+35,18.1.0-10-gb58edde+2,18.1.0-11-g0997b02+4,18.1.0-13-gfe4edf0b+12,18.1.0-14-g259bd21+21,18.1.0-19-gdb69f3f+2,18.1.0-2-g5f9922c+24,18.1.0-2-gd3b74e5+11,18.1.0-2-gfbf3545+32,18.1.0-26-g728bddb4+5,18.1.0-27-g6ff7ca9+2,18.1.0-3-g52aa583+25,18.1.0-3-g8ea57af+9,18.1.0-3-gb69f684+42,18.1.0-3-gfcaddf3+6,18.1.0-32-gd8786685a,18.1.0-4-gf3f9b77+6,18.1.0-5-g1dd662b+2,18.1.0-5-g6dbcb01+41,18.1.0-6-gae77429+3,18.1.0-7-g9d75d83+9,18.1.0-7-gae09a6d+30,18.1.0-9-gc381ef5+4,w.2019.45
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.obs.test.testMapper.TestMapper Class Reference
Inheritance diagram for lsst.obs.test.testMapper.TestMapper:
lsst.obs.base.cameraMapper.CameraMapper lsst.daf.persistence.mapper.Mapper

Public Member Functions

def __init__ (self, inputPolicy=None, kwargs)
 
def bypass_ccdExposureId (self, datasetType, pythonType, location, dataId)
 
def bypass_ccdExposureId_bits (self, datasetType, pythonType, location, dataId)
 
def validate (self, dataId)
 
def backup (self, datasetType, dataId)
 
def keys (self)
 
def getKeys (self, datasetType, level)
 
def getDefaultLevel (self)
 
def getDefaultSubLevel (self, level)
 
def getCameraName (cls)
 
def getPackageName (cls)
 
def getPackageDir (cls)
 
def map_camera (self, dataId, write=False)
 
def bypass_camera (self, datasetType, pythonType, butlerLocation, dataId)
 
def map_expIdInfo (self, dataId, write=False)
 
def bypass_expIdInfo (self, datasetType, pythonType, location, dataId)
 
def std_bfKernel (self, item, dataId)
 
def std_raw (self, item, dataId)
 
def map_skypolicy (self, dataId)
 
def std_skypolicy (self, item, dataId)
 
def getRegistry (self)
 
def getImageCompressionSettings (self, datasetType, dataId)
 
def __new__ (cls, args, kwargs)
 
def __getstate__ (self)
 
def __setstate__ (self, state)
 
def queryMetadata (self, datasetType, format, dataId)
 
def getDatasetTypes (self)
 
def map (self, datasetType, dataId, write=False)
 
def canStandardize (self, datasetType)
 
def standardize (self, datasetType, item, dataId)
 

Static Public Member Functions

def getShortCcdName (ccdName)
 

Public Attributes

 doFootprints
 
 filterIdMap
 
 log
 
 root
 
 levels
 
 defaultLevel
 
 defaultSubLevels
 
 rootStorage
 
 registry
 
 calibRegistry
 
 keyDict
 
 cameraDataLocation
 
 camera
 
 filters
 
 makeRawVisitInfo
 
 mappings
 

Static Public Attributes

string packageName = 'obs_test'
 
 MakeRawVisitInfoClass = MakeTestRawVisitInfo
 
 PupilFactoryClass = afwCameraGeom.PupilFactory
 
 translatorClass = None
 
 category
 

Detailed Description

Camera mapper for the Test camera.

Definition at line 34 of file testMapper.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.obs.test.testMapper.TestMapper.__init__ (   self,
  inputPolicy = None,
  kwargs 
)

Definition at line 41 of file testMapper.py.

41  def __init__(self, inputPolicy=None, **kwargs):
42  policyFilePath = dafPersist.Policy.defaultPolicyFile(self.packageName, "testMapper.yaml", "policy")
43  policy = dafPersist.Policy(policyFilePath)
44 
45  self.doFootprints = False
46  if inputPolicy is not None:
47  for kw in inputPolicy.paramNames(True):
48  if kw == "doFootprints":
49  self.doFootprints = True
50  else:
51  kwargs[kw] = inputPolicy.get(kw)
52 
53  CameraMapper.__init__(self, policy, policyFilePath, **kwargs)
54  self.filterIdMap = {
55  'u': 0, 'g': 1, 'r': 2, 'i': 3, 'z': 4, 'y': 5, 'i2': 5}
56 
57  # The LSST Filters from L. Jones 04/07/10
58  afwImageUtils.defineFilter('u', 364.59)
59  afwImageUtils.defineFilter('g', 476.31)
60  afwImageUtils.defineFilter('r', 619.42)
61  afwImageUtils.defineFilter('i', 752.06)
62  afwImageUtils.defineFilter('z', 866.85)
63  afwImageUtils.defineFilter('y', 971.68, alias=['y4']) # official y filter
64 
def __init__(self, minimum, dataRange, Q)

Member Function Documentation

◆ __getstate__()

def lsst.daf.persistence.mapper.Mapper.__getstate__ (   self)
inherited

Definition at line 104 of file mapper.py.

104  def __getstate__(self):
105  return self._arguments
106 

◆ __new__()

def lsst.daf.persistence.mapper.Mapper.__new__ (   cls,
  args,
  kwargs 
)
inherited
Create a new Mapper, saving arguments for pickling.

This is in __new__ instead of __init__ to save the user
from having to save the arguments themselves (either explicitly,
or by calling the super's __init__ with all their
*args,**kwargs.  The resulting pickling system (of __new__,
__getstate__ and __setstate__ is similar to how __reduce__
is usually used, except that we save the user from any
responsibility (except when overriding __new__, but that
is not common).

Definition at line 85 of file mapper.py.

85  def __new__(cls, *args, **kwargs):
86  """Create a new Mapper, saving arguments for pickling.
87 
88  This is in __new__ instead of __init__ to save the user
89  from having to save the arguments themselves (either explicitly,
90  or by calling the super's __init__ with all their
91  *args,**kwargs. The resulting pickling system (of __new__,
92  __getstate__ and __setstate__ is similar to how __reduce__
93  is usually used, except that we save the user from any
94  responsibility (except when overriding __new__, but that
95  is not common).
96  """
97  self = super().__new__(cls)
98  self._arguments = (args, kwargs)
99  return self
100 

◆ __setstate__()

def lsst.daf.persistence.mapper.Mapper.__setstate__ (   self,
  state 
)
inherited

Definition at line 107 of file mapper.py.

107  def __setstate__(self, state):
108  self._arguments = state
109  args, kwargs = state
110  self.__init__(*args, **kwargs)
111 

◆ backup()

def lsst.obs.base.cameraMapper.CameraMapper.backup (   self,
  datasetType,
  dataId 
)
inherited
Rename any existing object with the given type and dataId.

The CameraMapper implementation saves objects in a sequence of e.g.:

- foo.fits
- foo.fits~1
- foo.fits~2

All of the backups will be placed in the output repo, however, and will
not be removed if they are found elsewhere in the _parent chain.  This
means that the same file will be stored twice if the previous version
was found in an input repo.

Definition at line 595 of file cameraMapper.py.

595  def backup(self, datasetType, dataId):
596  """Rename any existing object with the given type and dataId.
597 
598  The CameraMapper implementation saves objects in a sequence of e.g.:
599 
600  - foo.fits
601  - foo.fits~1
602  - foo.fits~2
603 
604  All of the backups will be placed in the output repo, however, and will
605  not be removed if they are found elsewhere in the _parent chain. This
606  means that the same file will be stored twice if the previous version
607  was found in an input repo.
608  """
609 
610  # Calling PosixStorage directly is not the long term solution in this
611  # function, this is work-in-progress on epic DM-6225. The plan is for
612  # parentSearch to be changed to 'search', and search only the storage
613  # associated with this mapper. All searching of parents will be handled
614  # by traversing the container of repositories in Butler.
615 
616  def firstElement(list):
617  """Get the first element in the list, or None if that can't be
618  done.
619  """
620  return list[0] if list is not None and len(list) else None
621 
622  n = 0
623  newLocation = self.map(datasetType, dataId, write=True)
624  newPath = newLocation.getLocations()[0]
625  path = dafPersist.PosixStorage.search(self.root, newPath, searchParents=True)
626  path = firstElement(path)
627  oldPaths = []
628  while path is not None:
629  n += 1
630  oldPaths.append((n, path))
631  path = dafPersist.PosixStorage.search(self.root, "%s~%d" % (newPath, n), searchParents=True)
632  path = firstElement(path)
633  for n, oldPath in reversed(oldPaths):
634  self.rootStorage.copyFile(oldPath, "%s~%d" % (newPath, n))
635 

◆ bypass_camera()

def lsst.obs.base.cameraMapper.CameraMapper.bypass_camera (   self,
  datasetType,
  pythonType,
  butlerLocation,
  dataId 
)
inherited
Return the (preloaded) camera object.

Definition at line 726 of file cameraMapper.py.

726  def bypass_camera(self, datasetType, pythonType, butlerLocation, dataId):
727  """Return the (preloaded) camera object.
728  """
729  if self.camera is None:
730  raise RuntimeError("No camera dataset available.")
731  return self.camera
732 

◆ bypass_ccdExposureId()

def lsst.obs.test.testMapper.TestMapper.bypass_ccdExposureId (   self,
  datasetType,
  pythonType,
  location,
  dataId 
)

Definition at line 101 of file testMapper.py.

101  def bypass_ccdExposureId(self, datasetType, pythonType, location, dataId):
102  return self._computeCcdExposureId(dataId)
103 

◆ bypass_ccdExposureId_bits()

def lsst.obs.test.testMapper.TestMapper.bypass_ccdExposureId_bits (   self,
  datasetType,
  pythonType,
  location,
  dataId 
)

Definition at line 104 of file testMapper.py.

104  def bypass_ccdExposureId_bits(self, datasetType, pythonType, location, dataId):
105  return 41
106 

◆ bypass_expIdInfo()

def lsst.obs.base.cameraMapper.CameraMapper.bypass_expIdInfo (   self,
  datasetType,
  pythonType,
  location,
  dataId 
)
inherited
Hook to retrieve an lsst.obs.base.ExposureIdInfo for an exposure

Definition at line 744 of file cameraMapper.py.

744  def bypass_expIdInfo(self, datasetType, pythonType, location, dataId):
745  """Hook to retrieve an lsst.obs.base.ExposureIdInfo for an exposure"""
746  expId = self.bypass_ccdExposureId(datasetType, pythonType, location, dataId)
747  expBits = self.bypass_ccdExposureId_bits(datasetType, pythonType, location, dataId)
748  return ExposureIdInfo(expId=expId, expBits=expBits)
749 

◆ canStandardize()

def lsst.daf.persistence.mapper.Mapper.canStandardize (   self,
  datasetType 
)
inherited
Return true if this mapper can standardize an object of the given
dataset type.

Definition at line 168 of file mapper.py.

168  def canStandardize(self, datasetType):
169  """Return true if this mapper can standardize an object of the given
170  dataset type."""
171 
172  return hasattr(self, 'std_' + datasetType)
173 

◆ getCameraName()

def lsst.obs.base.cameraMapper.CameraMapper.getCameraName (   cls)
inherited
Return the name of the camera that this CameraMapper is for.

Definition at line 689 of file cameraMapper.py.

689  def getCameraName(cls):
690  """Return the name of the camera that this CameraMapper is for."""
691  className = str(cls)
692  className = className[className.find('.'):-1]
693  m = re.search(r'(\w+)Mapper', className)
694  if m is None:
695  m = re.search(r"class '[\w.]*?(\w+)'", className)
696  name = m.group(1)
697  return name[:1].lower() + name[1:] if name else ''
698 

◆ getDatasetTypes()

def lsst.daf.persistence.mapper.Mapper.getDatasetTypes (   self)
inherited
Return a list of the mappable dataset types.

Definition at line 129 of file mapper.py.

129  def getDatasetTypes(self):
130  """Return a list of the mappable dataset types."""
131 
132  list = []
133  for attr in dir(self):
134  if attr.startswith("map_"):
135  list.append(attr[4:])
136  return list
137 

◆ getDefaultLevel()

def lsst.obs.base.cameraMapper.CameraMapper.getDefaultLevel (   self)
inherited

Definition at line 680 of file cameraMapper.py.

680  def getDefaultLevel(self):
681  return self.defaultLevel
682 

◆ getDefaultSubLevel()

def lsst.obs.base.cameraMapper.CameraMapper.getDefaultSubLevel (   self,
  level 
)
inherited

Definition at line 683 of file cameraMapper.py.

683  def getDefaultSubLevel(self, level):
684  if level in self.defaultSubLevels:
685  return self.defaultSubLevels[level]
686  return None
687 

◆ getImageCompressionSettings()

def lsst.obs.base.cameraMapper.CameraMapper.getImageCompressionSettings (   self,
  datasetType,
  dataId 
)
inherited
Stuff image compression settings into a daf.base.PropertySet

This goes into the ButlerLocation's "additionalData", which gets
passed into the boost::persistence framework.

Parameters
----------
datasetType : `str`
    Type of dataset for which to get the image compression settings.
dataId : `dict`
    Dataset identifier.

Returns
-------
additionalData : `lsst.daf.base.PropertySet`
    Image compression settings.

Definition at line 1202 of file cameraMapper.py.

1202  def getImageCompressionSettings(self, datasetType, dataId):
1203  """Stuff image compression settings into a daf.base.PropertySet
1204 
1205  This goes into the ButlerLocation's "additionalData", which gets
1206  passed into the boost::persistence framework.
1207 
1208  Parameters
1209  ----------
1210  datasetType : `str`
1211  Type of dataset for which to get the image compression settings.
1212  dataId : `dict`
1213  Dataset identifier.
1214 
1215  Returns
1216  -------
1217  additionalData : `lsst.daf.base.PropertySet`
1218  Image compression settings.
1219  """
1220  mapping = self.mappings[datasetType]
1221  recipeName = mapping.recipe
1222  storageType = mapping.storage
1223  if storageType not in self._writeRecipes:
1224  return dafBase.PropertySet()
1225  if recipeName not in self._writeRecipes[storageType]:
1226  raise RuntimeError("Unrecognized write recipe for datasetType %s (storage type %s): %s" %
1227  (datasetType, storageType, recipeName))
1228  recipe = self._writeRecipes[storageType][recipeName].deepCopy()
1229  seed = hash(tuple(dataId.items())) % 2**31
1230  for plane in ("image", "mask", "variance"):
1231  if recipe.exists(plane + ".scaling.seed") and recipe.getScalar(plane + ".scaling.seed") == 0:
1232  recipe.set(plane + ".scaling.seed", seed)
1233  return recipe
1234 
Class for storing generic metadata.
Definition: PropertySet.h:67

◆ getKeys()

def lsst.obs.base.cameraMapper.CameraMapper.getKeys (   self,
  datasetType,
  level 
)
inherited
Return a dict of supported keys and their value types for a given
dataset type at a given level of the key hierarchy.

Parameters
----------
datasetType :  `str`
    Dataset type or None for all dataset types.
level :  `str` or None
    Level or None for all levels or '' for the default level for the
    camera.

Returns
-------
`dict`
    Keys are strings usable in a dataset identifier, values are their
    value types.

Definition at line 646 of file cameraMapper.py.

646  def getKeys(self, datasetType, level):
647  """Return a dict of supported keys and their value types for a given
648  dataset type at a given level of the key hierarchy.
649 
650  Parameters
651  ----------
652  datasetType : `str`
653  Dataset type or None for all dataset types.
654  level : `str` or None
655  Level or None for all levels or '' for the default level for the
656  camera.
657 
658  Returns
659  -------
660  `dict`
661  Keys are strings usable in a dataset identifier, values are their
662  value types.
663  """
664 
665  # not sure if this is how we want to do this. what if None was intended?
666  if level == '':
667  level = self.getDefaultLevel()
668 
669  if datasetType is None:
670  keyDict = copy.copy(self.keyDict)
671  else:
672  keyDict = self.mappings[datasetType].keys()
673  if level is not None and level in self.levels:
674  keyDict = copy.copy(keyDict)
675  for l in self.levels[level]:
676  if l in keyDict:
677  del keyDict[l]
678  return keyDict
679 

◆ getPackageDir()

def lsst.obs.base.cameraMapper.CameraMapper.getPackageDir (   cls)
inherited
Return the base directory of this package

Definition at line 707 of file cameraMapper.py.

707  def getPackageDir(cls):
708  """Return the base directory of this package"""
709  return getPackageDir(cls.getPackageName())
710 
std::string getPackageDir(std::string const &packageName)
return the root directory of a setup package
Definition: packaging.cc:33

◆ getPackageName()

def lsst.obs.base.cameraMapper.CameraMapper.getPackageName (   cls)
inherited
Return the name of the package containing this CameraMapper.

Definition at line 700 of file cameraMapper.py.

700  def getPackageName(cls):
701  """Return the name of the package containing this CameraMapper."""
702  if cls.packageName is None:
703  raise ValueError('class variable packageName must not be None')
704  return cls.packageName
705 

◆ getRegistry()

def lsst.obs.base.cameraMapper.CameraMapper.getRegistry (   self)
inherited
Get the registry used by this mapper.

Returns
-------
Registry or None
    The registry used by this mapper for this mapper's repository.

Definition at line 1192 of file cameraMapper.py.

1192  def getRegistry(self):
1193  """Get the registry used by this mapper.
1194 
1195  Returns
1196  -------
1197  Registry or None
1198  The registry used by this mapper for this mapper's repository.
1199  """
1200  return self.registry
1201 

◆ getShortCcdName()

def lsst.obs.base.cameraMapper.CameraMapper.getShortCcdName (   ccdName)
staticinherited
Convert a CCD name to a form useful as a filename

The default implementation converts spaces to underscores.

Definition at line 936 of file cameraMapper.py.

936  def getShortCcdName(ccdName):
937  """Convert a CCD name to a form useful as a filename
938 
939  The default implementation converts spaces to underscores.
940  """
941  return ccdName.replace(" ", "_")
942 

◆ keys()

def lsst.obs.base.cameraMapper.CameraMapper.keys (   self)
inherited
Return supported keys.

Returns
-------
iterable
    List of keys usable in a dataset identifier

Definition at line 636 of file cameraMapper.py.

636  def keys(self):
637  """Return supported keys.
638 
639  Returns
640  -------
641  iterable
642  List of keys usable in a dataset identifier
643  """
644  return iter(self.keyDict.keys())
645 

◆ map()

def lsst.daf.persistence.mapper.Mapper.map (   self,
  datasetType,
  dataId,
  write = False 
)
inherited
Map a data id using the mapping method for its dataset type.

Parameters
----------
datasetType : string
    The datasetType to map
dataId : DataId instance
    The dataId to use when mapping
write : bool, optional
    Indicates if the map is being performed for a read operation
    (False) or a write operation (True)

Returns
-------
ButlerLocation or a list of ButlerLocation
    The location(s) found for the map operation. If write is True, a
    list is returned. If write is False a single ButlerLocation is
    returned.

Raises
------
NoResults
    If no locaiton was found for this map operation, the derived mapper
    class may raise a lsst.daf.persistence.NoResults exception. Butler
    catches this and will look in the next Repository if there is one.

Definition at line 138 of file mapper.py.

138  def map(self, datasetType, dataId, write=False):
139  """Map a data id using the mapping method for its dataset type.
140 
141  Parameters
142  ----------
143  datasetType : string
144  The datasetType to map
145  dataId : DataId instance
146  The dataId to use when mapping
147  write : bool, optional
148  Indicates if the map is being performed for a read operation
149  (False) or a write operation (True)
150 
151  Returns
152  -------
153  ButlerLocation or a list of ButlerLocation
154  The location(s) found for the map operation. If write is True, a
155  list is returned. If write is False a single ButlerLocation is
156  returned.
157 
158  Raises
159  ------
160  NoResults
161  If no locaiton was found for this map operation, the derived mapper
162  class may raise a lsst.daf.persistence.NoResults exception. Butler
163  catches this and will look in the next Repository if there is one.
164  """
165  func = getattr(self, 'map_' + datasetType)
166  return func(self.validate(dataId), write)
167 

◆ map_camera()

def lsst.obs.base.cameraMapper.CameraMapper.map_camera (   self,
  dataId,
  write = False 
)
inherited
Map a camera dataset.

Definition at line 711 of file cameraMapper.py.

711  def map_camera(self, dataId, write=False):
712  """Map a camera dataset."""
713  if self.camera is None:
714  raise RuntimeError("No camera dataset available.")
715  actualId = self._transformId(dataId)
717  pythonType="lsst.afw.cameraGeom.CameraConfig",
718  cppType="Config",
719  storageName="ConfigStorage",
720  locationList=self.cameraDataLocation or "ignored",
721  dataId=actualId,
722  mapper=self,
723  storage=self.rootStorage
724  )
725 

◆ map_expIdInfo()

def lsst.obs.base.cameraMapper.CameraMapper.map_expIdInfo (   self,
  dataId,
  write = False 
)
inherited

Definition at line 733 of file cameraMapper.py.

733  def map_expIdInfo(self, dataId, write=False):
735  pythonType="lsst.obs.base.ExposureIdInfo",
736  cppType=None,
737  storageName="Internal",
738  locationList="ignored",
739  dataId=dataId,
740  mapper=self,
741  storage=self.rootStorage
742  )
743 

◆ map_skypolicy()

def lsst.obs.base.cameraMapper.CameraMapper.map_skypolicy (   self,
  dataId 
)
inherited
Map a sky policy.

Definition at line 766 of file cameraMapper.py.

766  def map_skypolicy(self, dataId):
767  """Map a sky policy."""
768  return dafPersist.ButlerLocation("lsst.pex.policy.Policy", "Policy",
769  "Internal", None, None, self,
770  storage=self.rootStorage)
771 

◆ queryMetadata()

def lsst.daf.persistence.mapper.Mapper.queryMetadata (   self,
  datasetType,
  format,
  dataId 
)
inherited
Get possible values for keys given a partial data id.

:param datasetType: see documentation about the use of datasetType
:param key: this is used as the 'level' parameter
:param format:
:param dataId: see documentation about the use of dataId
:return:

Definition at line 115 of file mapper.py.

115  def queryMetadata(self, datasetType, format, dataId):
116  """Get possible values for keys given a partial data id.
117 
118  :param datasetType: see documentation about the use of datasetType
119  :param key: this is used as the 'level' parameter
120  :param format:
121  :param dataId: see documentation about the use of dataId
122  :return:
123  """
124  func = getattr(self, 'query_' + datasetType)
125 
126  val = func(format, self.validate(dataId))
127  return val
128 

◆ standardize()

def lsst.daf.persistence.mapper.Mapper.standardize (   self,
  datasetType,
  item,
  dataId 
)
inherited
Standardize an object using the standardization method for its data
set type, if it exists.

Definition at line 174 of file mapper.py.

174  def standardize(self, datasetType, item, dataId):
175  """Standardize an object using the standardization method for its data
176  set type, if it exists."""
177 
178  if hasattr(self, 'std_' + datasetType):
179  func = getattr(self, 'std_' + datasetType)
180  return func(item, self.validate(dataId))
181  return item
182 

◆ std_bfKernel()

def lsst.obs.base.cameraMapper.CameraMapper.std_bfKernel (   self,
  item,
  dataId 
)
inherited
Disable standardization for bfKernel

bfKernel is a calibration product that is numpy array,
unlike other calibration products that are all images;
all calibration images are sent through _standardizeExposure
due to CalibrationMapping, but we don't want that to happen to bfKernel

Definition at line 750 of file cameraMapper.py.

750  def std_bfKernel(self, item, dataId):
751  """Disable standardization for bfKernel
752 
753  bfKernel is a calibration product that is numpy array,
754  unlike other calibration products that are all images;
755  all calibration images are sent through _standardizeExposure
756  due to CalibrationMapping, but we don't want that to happen to bfKernel
757  """
758  return item
759 

◆ std_raw()

def lsst.obs.base.cameraMapper.CameraMapper.std_raw (   self,
  item,
  dataId 
)
inherited
Standardize a raw dataset by converting it to an Exposure instead
of an Image

Definition at line 760 of file cameraMapper.py.

760  def std_raw(self, item, dataId):
761  """Standardize a raw dataset by converting it to an Exposure instead
762  of an Image"""
763  return self._standardizeExposure(self.exposures['raw'], item, dataId,
764  trimmed=False, setVisitInfo=True)
765 

◆ std_skypolicy()

def lsst.obs.base.cameraMapper.CameraMapper.std_skypolicy (   self,
  item,
  dataId 
)
inherited
Standardize a sky policy by returning the one we use.

Definition at line 772 of file cameraMapper.py.

772  def std_skypolicy(self, item, dataId):
773  """Standardize a sky policy by returning the one we use."""
774  return self.skypolicy
775 

◆ validate()

def lsst.obs.test.testMapper.TestMapper.validate (   self,
  dataId 
)

Definition at line 107 of file testMapper.py.

107  def validate(self, dataId):
108  visit = dataId.get("visit")
109  if visit is not None and not isinstance(visit, int):
110  dataId["visit"] = int(visit)
111  return dataId
112 

Member Data Documentation

◆ calibRegistry

lsst.obs.base.cameraMapper.CameraMapper.calibRegistry
inherited

Definition at line 254 of file cameraMapper.py.

◆ camera

lsst.obs.base.cameraMapper.CameraMapper.camera
inherited

Definition at line 273 of file cameraMapper.py.

◆ cameraDataLocation

lsst.obs.base.cameraMapper.CameraMapper.cameraDataLocation
inherited

Definition at line 272 of file cameraMapper.py.

◆ category

lsst.obs.base.cameraMapper.CameraMapper.category
staticinherited

Definition at line 960 of file cameraMapper.py.

◆ defaultLevel

lsst.obs.base.cameraMapper.CameraMapper.defaultLevel
inherited

Definition at line 213 of file cameraMapper.py.

◆ defaultSubLevels

lsst.obs.base.cameraMapper.CameraMapper.defaultSubLevels
inherited

Definition at line 214 of file cameraMapper.py.

◆ doFootprints

lsst.obs.test.testMapper.TestMapper.doFootprints

Definition at line 45 of file testMapper.py.

◆ filterIdMap

lsst.obs.test.testMapper.TestMapper.filterIdMap

Definition at line 54 of file testMapper.py.

◆ filters

lsst.obs.base.cameraMapper.CameraMapper.filters
inherited

Definition at line 276 of file cameraMapper.py.

◆ keyDict

lsst.obs.base.cameraMapper.CameraMapper.keyDict
inherited

Definition at line 266 of file cameraMapper.py.

◆ levels

lsst.obs.base.cameraMapper.CameraMapper.levels
inherited

Definition at line 208 of file cameraMapper.py.

◆ log

lsst.obs.base.cameraMapper.CameraMapper.log
inherited

Definition at line 194 of file cameraMapper.py.

◆ makeRawVisitInfo

lsst.obs.base.cameraMapper.CameraMapper.makeRawVisitInfo
inherited

Definition at line 283 of file cameraMapper.py.

◆ MakeRawVisitInfoClass

lsst.obs.test.testMapper.TestMapper.MakeRawVisitInfoClass = MakeTestRawVisitInfo
static

Definition at line 39 of file testMapper.py.

◆ mappings

lsst.obs.base.cameraMapper.CameraMapper.mappings
inherited

Definition at line 334 of file cameraMapper.py.

◆ packageName

string lsst.obs.test.testMapper.TestMapper.packageName = 'obs_test'
static

Definition at line 37 of file testMapper.py.

◆ PupilFactoryClass

lsst.obs.base.cameraMapper.CameraMapper.PupilFactoryClass = afwCameraGeom.PupilFactory
staticinherited

Definition at line 183 of file cameraMapper.py.

◆ registry

lsst.obs.base.cameraMapper.CameraMapper.registry
inherited

Definition at line 246 of file cameraMapper.py.

◆ root

lsst.obs.base.cameraMapper.CameraMapper.root
inherited

Definition at line 197 of file cameraMapper.py.

◆ rootStorage

lsst.obs.base.cameraMapper.CameraMapper.rootStorage
inherited

Definition at line 223 of file cameraMapper.py.

◆ translatorClass

lsst.obs.base.cameraMapper.CameraMapper.translatorClass = None
staticinherited

Definition at line 186 of file cameraMapper.py.


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