LSST Applications g0265f82a02+c6dfa2ddaf,g1162b98a3f+ffe7eabc7e,g2079a07aa2+1b2e822518,g2bbee38e9b+c6dfa2ddaf,g337abbeb29+c6dfa2ddaf,g36da64cc00+ea84795170,g3ddfee87b4+955a963fd8,g50ff169b8f+2eb0e556e8,g52b1c1532d+90ebb246c7,g555ede804d+955a963fd8,g591dd9f2cf+bac198a2cb,g5ec818987f+420292cfeb,g858d7b2824+d6c9a0a3b8,g876c692160+aabc49a3c3,g8a8a8dda67+90ebb246c7,g8cdfe0ae6a+4fd9e222a8,g99cad8db69+e6cd765486,g9ddcbc5298+a1346535a5,ga1e77700b3+df8f93165b,ga8c6da7877+acd47f83f4,gae46bcf261+c6dfa2ddaf,gb0e22166c9+8634eb87fb,gb3f2274832+12c8382528,gba4ed39666+1ac82b564f,gbb8dafda3b+0574160a1f,gbeb006f7da+dea2fbb49f,gc28159a63d+c6dfa2ddaf,gc86a011abf+d6c9a0a3b8,gcf0d15dbbd+955a963fd8,gdaeeff99f8+1cafcb7cd4,gdc0c513512+d6c9a0a3b8,ge79ae78c31+c6dfa2ddaf,geb67518f79+ba1859f325,gee10cc3b42+90ebb246c7,gf1cff7945b+d6c9a0a3b8,w.2024.13
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Static Protected Member Functions | List of all members
lsst.obs.decam._instrument.DarkEnergyCamera Class Reference
Inheritance diagram for lsst.obs.decam._instrument.DarkEnergyCamera:

Public Member Functions

 __init__ (self, **kwargs)
 
 getName (cls)
 
 getCamera (self)
 
 register (self, registry, update=False)
 
 getRawFormatter (self, dataId)
 

Public Attributes

 configPaths
 

Static Public Attributes

 filterDefinitions = DECAM_FILTER_DEFINITIONS
 
str policyName = "decam"
 
str obsDataPackage = "obs_decam_data"
 
 translatorClass = DecamTranslator
 

Static Protected Member Functions

 _getCameraFromPath (path)
 

Detailed Description

Definition at line 39 of file _instrument.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.obs.decam._instrument.DarkEnergyCamera.__init__ ( self,
** kwargs )

Definition at line 45 of file _instrument.py.

45 def __init__(self, **kwargs):
46 super().__init__(**kwargs)
47 packageDir = getPackageDir("obs_decam")
48 self.configPaths = [os.path.join(packageDir, "config")]
49

Member Function Documentation

◆ _getCameraFromPath()

lsst.obs.decam._instrument.DarkEnergyCamera._getCameraFromPath ( path)
staticprotected
Return the camera geometry given solely the path to the location
of that definition.

Definition at line 60 of file _instrument.py.

60 def _getCameraFromPath(path):
61 """Return the camera geometry given solely the path to the location
62 of that definition."""
63 config = CameraConfig()
64 config.load(os.path.join(path, "camera.py"))
65 return makeCameraFromPath(
66 cameraConfig=config,
67 ampInfoPath=path,
68 shortNameFunc=lambda name: name.replace(" ", "_"),
69 )
70

◆ getCamera()

lsst.obs.decam._instrument.DarkEnergyCamera.getCamera ( self)

Definition at line 54 of file _instrument.py.

54 def getCamera(self):
55 path = os.path.join(getPackageDir("obs_decam"), self.policyName, "camGeom")
56 return self._getCameraFromPath(path)
57

◆ getName()

lsst.obs.decam._instrument.DarkEnergyCamera.getName ( cls)

Definition at line 51 of file _instrument.py.

51 def getName(cls):
52 return "DECam"
53

◆ getRawFormatter()

lsst.obs.decam._instrument.DarkEnergyCamera.getRawFormatter ( self,
dataId )

Definition at line 111 of file _instrument.py.

111 def getRawFormatter(self, dataId):
112 # local import to prevent circular dependency
113 from .rawFormatter import DarkEnergyCameraRawFormatter
114 return DarkEnergyCameraRawFormatter

◆ register()

lsst.obs.decam._instrument.DarkEnergyCamera.register ( self,
registry,
update = False )

Definition at line 71 of file _instrument.py.

71 def register(self, registry, update=False):
72 camera = self.getCamera()
73 # Combined with detector_max=100 (below), obsMax=2**25 causes the
74 # number of bits in packed IDs to match the Gen2 ones.
75 obsMax = 2**25
76 with registry.transaction():
77 # Note that detector_max here is really only used for packing
78 # detector and visit/exposure IDs together into a single integer,
79 # so it's rounded up to the nearest power of ten to make that
80 # encoding decodable by humans (and consistent with its previous
81 # Gen2 definition). There are other checks (database constraints)
82 # that ensure any ingested raws have "real" detector values, and
83 # those are based on the detector records added in the loop below.
84 registry.syncDimensionData(
85 "instrument",
86 {
87 "name": self.getName(), "detector_max": 100, "visit_max": obsMax, "exposure_max": obsMax,
88 "class_name": get_full_type_name(self),
89 # Some schemas support default visit_system
90 "visit_system": VisitSystem.ONE_TO_ONE.value,
91 },
92 update=update
93 )
94
95 for detector in camera:
96 registry.syncDimensionData(
97 "detector",
98 {
99 "instrument": self.getName(),
100 "id": detector.getId(),
101 "full_name": detector.getName(),
102 "name_in_raft": detector.getName()[1:],
103 "raft": detector.getName()[0],
104 "purpose": str(detector.getType()).split(".")[-1],
105 },
106 update=update
107 )
108
109 self._registerFilters(registry, update=update)
110

Member Data Documentation

◆ configPaths

lsst.obs.decam._instrument.DarkEnergyCamera.configPaths

Definition at line 48 of file _instrument.py.

◆ filterDefinitions

lsst.obs.decam._instrument.DarkEnergyCamera.filterDefinitions = DECAM_FILTER_DEFINITIONS
static

Definition at line 40 of file _instrument.py.

◆ obsDataPackage

str lsst.obs.decam._instrument.DarkEnergyCamera.obsDataPackage = "obs_decam_data"
static

Definition at line 42 of file _instrument.py.

◆ policyName

str lsst.obs.decam._instrument.DarkEnergyCamera.policyName = "decam"
static

Definition at line 41 of file _instrument.py.

◆ translatorClass

lsst.obs.decam._instrument.DarkEnergyCamera.translatorClass = DecamTranslator
static

Definition at line 43 of file _instrument.py.


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