LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Public Member Functions | Static Public Attributes | List of all members
lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase Class Reference
Inheritance diagram for lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase:
lsst.obs.base.fitsExposureFormatter.FitsExposureFormatter lsst.obs.decam.rawFormatter.DarkEnergyCameraRawFormatter lsst.obs.decam.rawFormatter.DarkEnergyCameraCPCalibFormatter

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def fromMetadata (cls, metadata, obsInfo=None, storageClass=None, location=None)
 
def translatorClass (self)
 
def filterDefinitions (self)
 
def readImage (self)
 
def readMask (self)
 
def readVariance (self)
 
def isOnSky (self)
 
def stripMetadata (self)
 
def makeVisitInfo (self)
 
def getDetector (self, id)
 
def makeWcs (self, visitInfo, detector)
 
def makeFilter (self)
 
def readComponent (self, component, parameters=None)
 
def readFull (self, parameters=None)
 
def readRawHeaderWcs (self, parameters=None)
 
def write (self, inMemoryDataset)
 
def observationInfo (self)
 
def metadata (self)
 
def readMetadata (self)
 
def read (self, component=None, parameters=None)
 

Static Public Attributes

string extension = ".fits"
 

Detailed Description

Abstract base class for reading and writing raw data to and from
FITS files.

Definition at line 39 of file fitsRawFormatterBase.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.__init__ (   self,
args,
**  kwargs 
)

Definition at line 44 of file fitsRawFormatterBase.py.

44  def __init__(self, *args, **kwargs):
45  self.filterDefinitions.reset()
46  self.filterDefinitions.defineFilters()
47  super().__init__(*args, **kwargs)
48 

Member Function Documentation

◆ filterDefinitions()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.filterDefinitions (   self)
`~lsst.obs.base.FilterDefinitions`, defining the filters for this
instrument.

Definition at line 93 of file fitsRawFormatterBase.py.

93  def filterDefinitions(self):
94  """`~lsst.obs.base.FilterDefinitions`, defining the filters for this
95  instrument.
96  """
97  return None
98 

◆ fromMetadata()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.fromMetadata (   cls,
  metadata,
  obsInfo = None,
  storageClass = None,
  location = None 
)
Construct a possibly-limited formatter from known metadata.

Parameters
----------
metadata : `lsst.daf.base.PropertyList`
    Raw header metadata, with any fixes (see
    `astro_metadata_translator.fix_header`) applied but nothing
    stripped.
obsInfo : `astro_metadata_translator.ObservationInfo`, optional
    Structured information already extracted from ``metadata``.
    If not provided, will be read from ``metadata`` on first use.
storageClass : `lsst.daf.butler.StorageClass`, optional
    StorageClass for this file.  If not provided, the formatter will
    only support `makeWcs`, `makeVisitInfo`, `makeFilter`, and other
    operations that operate purely on metadata and not the actual file.
location : `lsst.daf.butler.Location`, optional.
    Location of the file.  If not provided, the formatter will only
    support `makeWcs`, `makeVisitInfo`, `makeFilter`, and other
    operations that operate purely on metadata and not the actual file.

Returns
-------
formatter : `FitsRawFormatterBase`
    An instance of ``cls``.

Definition at line 50 of file fitsRawFormatterBase.py.

50  def fromMetadata(cls, metadata, obsInfo=None, storageClass=None, location=None):
51  """Construct a possibly-limited formatter from known metadata.
52 
53  Parameters
54  ----------
55  metadata : `lsst.daf.base.PropertyList`
56  Raw header metadata, with any fixes (see
57  `astro_metadata_translator.fix_header`) applied but nothing
58  stripped.
59  obsInfo : `astro_metadata_translator.ObservationInfo`, optional
60  Structured information already extracted from ``metadata``.
61  If not provided, will be read from ``metadata`` on first use.
62  storageClass : `lsst.daf.butler.StorageClass`, optional
63  StorageClass for this file. If not provided, the formatter will
64  only support `makeWcs`, `makeVisitInfo`, `makeFilter`, and other
65  operations that operate purely on metadata and not the actual file.
66  location : `lsst.daf.butler.Location`, optional.
67  Location of the file. If not provided, the formatter will only
68  support `makeWcs`, `makeVisitInfo`, `makeFilter`, and other
69  operations that operate purely on metadata and not the actual file.
70 
71  Returns
72  -------
73  formatter : `FitsRawFormatterBase`
74  An instance of ``cls``.
75  """
76  self = cls(FileDescriptor(location, storageClass))
77  self._metadata = metadata
78  self._observationInfo = obsInfo
79  return self
80 

◆ getDetector()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.getDetector (   self,
  id 
)
Return the detector that acquired this raw exposure.

Parameters
----------
id : `int`
    The identifying number of the detector to get.

Returns
-------
detector : `~lsst.afw.cameraGeom.Detector`
    The detector associated with that ``id``.

Reimplemented in lsst.obs.decam.rawFormatter.DarkEnergyCameraRawFormatter.

Definition at line 179 of file fitsRawFormatterBase.py.

179  def getDetector(self, id):
180  """Return the detector that acquired this raw exposure.
181 
182  Parameters
183  ----------
184  id : `int`
185  The identifying number of the detector to get.
186 
187  Returns
188  -------
189  detector : `~lsst.afw.cameraGeom.Detector`
190  The detector associated with that ``id``.
191  """
192  raise NotImplementedError("Must be implemented by subclasses.")
193 

◆ isOnSky()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.isOnSky (   self)
Boolean to determine if the exposure is thought to be on the sky.

Returns
-------
onSky : `bool`
    Returns `True` if the observation looks like it was taken on the
    sky.  Returns `False` if this observation looks like a calibration
    observation.

Notes
-----
If there is tracking RA/Dec information associated with the
observation it is assumed that the observation is on sky.
Currently the observation type is not checked.

Definition at line 139 of file fitsRawFormatterBase.py.

139  def isOnSky(self):
140  """Boolean to determine if the exposure is thought to be on the sky.
141 
142  Returns
143  -------
144  onSky : `bool`
145  Returns `True` if the observation looks like it was taken on the
146  sky. Returns `False` if this observation looks like a calibration
147  observation.
148 
149  Notes
150  -----
151  If there is tracking RA/Dec information associated with the
152  observation it is assumed that the observation is on sky.
153  Currently the observation type is not checked.
154  """
155  if self.observationInfo.tracking_radec is None:
156  return False
157  return True
158 

◆ makeFilter()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.makeFilter (   self)
Construct a Filter from metadata.

Returns
-------
filter : `~lsst.afw.image.Filter`
    Object that identifies the filter for this image.

Raises
------
NotFoundError
    Raised if the physical filter was not registered via
    `~lsst.afw.image.utils.defineFilter`.

Definition at line 258 of file fitsRawFormatterBase.py.

258  def makeFilter(self):
259  """Construct a Filter from metadata.
260 
261  Returns
262  -------
263  filter : `~lsst.afw.image.Filter`
264  Object that identifies the filter for this image.
265 
266  Raises
267  ------
268  NotFoundError
269  Raised if the physical filter was not registered via
270  `~lsst.afw.image.utils.defineFilter`.
271  """
272  return lsst.afw.image.Filter(self.observationInfo.physical_filter)
273 

◆ makeVisitInfo()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.makeVisitInfo (   self)
Construct a VisitInfo from metadata.

Returns
-------
visitInfo : `~lsst.afw.image.VisitInfo`
    Structured metadata about the observation.

Definition at line 168 of file fitsRawFormatterBase.py.

168  def makeVisitInfo(self):
169  """Construct a VisitInfo from metadata.
170 
171  Returns
172  -------
173  visitInfo : `~lsst.afw.image.VisitInfo`
174  Structured metadata about the observation.
175  """
176  return MakeRawVisitInfoViaObsInfo.observationInfo2visitInfo(self.observationInfo)
177 

◆ makeWcs()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.makeWcs (   self,
  visitInfo,
  detector 
)
Create a SkyWcs from information about the exposure.

If VisitInfo is not None, use it and the detector to create a SkyWcs,
otherwise return the metadata-based SkyWcs (always created, so that
the relevant metadata keywords are stripped).

Parameters
----------
visitInfo : `~lsst.afw.image.VisitInfo`
    The information about the telescope boresight and camera
    orientation angle for this exposure.
detector : `~lsst.afw.cameraGeom.Detector`
    The detector used to acquire this exposure.

Returns
-------
skyWcs : `~lsst.afw.geom.SkyWcs`
    Reversible mapping from pixel coordinates to sky coordinates.

Raises
------
InitialSkyWcsError
    Raised if there is an error generating the SkyWcs, chained from the
    lower-level exception if available.

Definition at line 194 of file fitsRawFormatterBase.py.

194  def makeWcs(self, visitInfo, detector):
195  """Create a SkyWcs from information about the exposure.
196 
197  If VisitInfo is not None, use it and the detector to create a SkyWcs,
198  otherwise return the metadata-based SkyWcs (always created, so that
199  the relevant metadata keywords are stripped).
200 
201  Parameters
202  ----------
203  visitInfo : `~lsst.afw.image.VisitInfo`
204  The information about the telescope boresight and camera
205  orientation angle for this exposure.
206  detector : `~lsst.afw.cameraGeom.Detector`
207  The detector used to acquire this exposure.
208 
209  Returns
210  -------
211  skyWcs : `~lsst.afw.geom.SkyWcs`
212  Reversible mapping from pixel coordinates to sky coordinates.
213 
214  Raises
215  ------
216  InitialSkyWcsError
217  Raised if there is an error generating the SkyWcs, chained from the
218  lower-level exception if available.
219  """
220  if not self.isOnSky():
221  # This is not an on-sky observation
222  return None
223 
224  skyWcs = self._createSkyWcsFromMetadata()
225 
226  log = lsst.log.Log.getLogger("fitsRawFormatter")
227  if visitInfo is None:
228  msg = "No VisitInfo; cannot access boresight information. Defaulting to metadata-based SkyWcs."
229  log.warn(msg)
230  if skyWcs is None:
231  raise InitialSkyWcsError("Failed to create both metadata and boresight-based SkyWcs."
232  "See warnings in log messages for details.")
233  return skyWcs
234  skyWcs = createInitialSkyWcs(visitInfo, detector)
235 
236  return skyWcs
237 

◆ metadata()

def lsst.obs.base.fitsExposureFormatter.FitsExposureFormatter.metadata (   self)
inherited
The metadata read from this file. It will be stripped as
components are extracted from it
(`lsst.daf.base.PropertyList`).

Definition at line 36 of file fitsExposureFormatter.py.

36  def metadata(self):
37  """The metadata read from this file. It will be stripped as
38  components are extracted from it
39  (`lsst.daf.base.PropertyList`).
40  """
41  if self._metadata is None:
42  self._metadata = self.readMetadata()
43  return self._metadata
44 

◆ observationInfo()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.observationInfo (   self)
The `~astro_metadata_translator.ObservationInfo` extracted from
this file's metadata (`~astro_metadata_translator.ObservationInfo`,
read-only).

Definition at line 364 of file fitsRawFormatterBase.py.

364  def observationInfo(self):
365  """The `~astro_metadata_translator.ObservationInfo` extracted from
366  this file's metadata (`~astro_metadata_translator.ObservationInfo`,
367  read-only).
368  """
369  if self._observationInfo is None:
370  self._observationInfo = ObservationInfo(self.metadata, translator_class=self.translatorClass)
371  return self._observationInfo

◆ read()

def lsst.obs.base.fitsExposureFormatter.FitsExposureFormatter.read (   self,
  component = None,
  parameters = None 
)
inherited
Read data from a file.

Parameters
----------
component : `str`, optional
    Component to read from the file. Only used if the `StorageClass`
    for reading differed from the `StorageClass` used to write the
    file.
parameters : `dict`, optional
    If specified, a dictionary of slicing parameters that
    overrides those in ``fileDescriptor``.

Returns
-------
inMemoryDataset : `object`
    The requested data as a Python object. The type of object
    is controlled by the specific formatter.

Raises
------
ValueError
    Component requested but this file does not seem to be a concrete
    composite.
KeyError
    Raised when parameters passed with fileDescriptor are not
    supported.

Definition at line 166 of file fitsExposureFormatter.py.

166  def read(self, component=None, parameters=None):
167  """Read data from a file.
168 
169  Parameters
170  ----------
171  component : `str`, optional
172  Component to read from the file. Only used if the `StorageClass`
173  for reading differed from the `StorageClass` used to write the
174  file.
175  parameters : `dict`, optional
176  If specified, a dictionary of slicing parameters that
177  overrides those in ``fileDescriptor``.
178 
179  Returns
180  -------
181  inMemoryDataset : `object`
182  The requested data as a Python object. The type of object
183  is controlled by the specific formatter.
184 
185  Raises
186  ------
187  ValueError
188  Component requested but this file does not seem to be a concrete
189  composite.
190  KeyError
191  Raised when parameters passed with fileDescriptor are not
192  supported.
193  """
194  fileDescriptor = self.fileDescriptor
195  if fileDescriptor.readStorageClass != fileDescriptor.storageClass:
196  if component == "metadata":
197  self.stripMetadata()
198  return self.metadata
199  elif component is not None:
200  return self.readComponent(component, parameters)
201  else:
202  raise ValueError("Storage class inconsistency ({} vs {}) but no"
203  " component requested".format(fileDescriptor.readStorageClass.name,
204  fileDescriptor.storageClass.name))
205  return self.readFull()
206 

◆ readComponent()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.readComponent (   self,
  component,
  parameters = None 
)
Read a component held by the Exposure.

Parameters
----------
component : `str`, optional
    Component to read from the file.
parameters : `dict`, optional
    If specified, a dictionary of slicing parameters that
    overrides those in ``fileDescriptor``.

Returns
-------
obj : component-dependent
    In-memory component object.

Raises
------
KeyError
    Raised if the requested component cannot be handled.

Reimplemented from lsst.obs.base.fitsExposureFormatter.FitsExposureFormatter.

Definition at line 274 of file fitsRawFormatterBase.py.

274  def readComponent(self, component, parameters=None):
275  """Read a component held by the Exposure.
276 
277  Parameters
278  ----------
279  component : `str`, optional
280  Component to read from the file.
281  parameters : `dict`, optional
282  If specified, a dictionary of slicing parameters that
283  overrides those in ``fileDescriptor``.
284 
285  Returns
286  -------
287  obj : component-dependent
288  In-memory component object.
289 
290  Raises
291  ------
292  KeyError
293  Raised if the requested component cannot be handled.
294  """
295  if component == "image":
296  return self.readImage()
297  elif component == "mask":
298  return self.readMask()
299  elif component == "variance":
300  return self.readVariance()
301  elif component == "filter":
302  return self.makeFilter()
303  elif component == "visitInfo":
304  return self.makeVisitInfo()
305  elif component == "wcs":
306  detector = self.getDetector(self.observationInfo.detector_num)
307  visitInfo = self.makeVisitInfo()
308  return self.makeWcs(visitInfo, detector)
309  return None
310 

◆ readFull()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.readFull (   self,
  parameters = None 
)
Read the full Exposure object.

Parameters
----------
parameters : `dict`, optional
    If specified, a dictionary of slicing parameters that overrides
    those in the `fileDescriptor` attribute.

Returns
-------
exposure : `~lsst.afw.image.Exposure`
    Complete in-memory exposure.

Reimplemented from lsst.obs.base.fitsExposureFormatter.FitsExposureFormatter.

Definition at line 311 of file fitsRawFormatterBase.py.

311  def readFull(self, parameters=None):
312  """Read the full Exposure object.
313 
314  Parameters
315  ----------
316  parameters : `dict`, optional
317  If specified, a dictionary of slicing parameters that overrides
318  those in the `fileDescriptor` attribute.
319 
320  Returns
321  -------
322  exposure : `~lsst.afw.image.Exposure`
323  Complete in-memory exposure.
324  """
325  from lsst.afw.image import makeExposure, makeMaskedImage
326  full = makeExposure(makeMaskedImage(self.readImage()))
327  mask = self.readMask()
328  if mask is not None:
329  full.setMask(mask)
330  variance = self.readVariance()
331  if variance is not None:
332  full.setVariance(variance)
333  full.setDetector(self.getDetector(self.observationInfo.detector_num))
334  info = full.getInfo()
335  info.setFilter(self.makeFilter())
336  info.setVisitInfo(self.makeVisitInfo())
337  info.setWcs(self.makeWcs(info.getVisitInfo(), info.getDetector()))
338  # We don't need to call stripMetadata() here because it has already
339  # been stripped during creation of the ObservationInfo, WCS, etc.
340  full.setMetadata(self.metadata)
341  return full
342 

◆ readImage()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.readImage (   self)
Read just the image component of the Exposure.

Returns
-------
image : `~lsst.afw.image.Image`
    In-memory image component.

Reimplemented in lsst.obs.decam.rawFormatter.DarkEnergyCameraCPCalibFormatter, and lsst.obs.decam.rawFormatter.DarkEnergyCameraRawFormatter.

Definition at line 99 of file fitsRawFormatterBase.py.

99  def readImage(self):
100  """Read just the image component of the Exposure.
101 
102  Returns
103  -------
104  image : `~lsst.afw.image.Image`
105  In-memory image component.
106  """
107  return lsst.afw.image.ImageU(self.fileDescriptor.location.path)
108 

◆ readMask()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.readMask (   self)
Read just the mask component of the Exposure.

May return None (as the default implementation does) to indicate that
there is no mask information to be extracted (at least not trivially)
from the raw data.  This will prohibit direct reading of just the mask,
and set the mask of the full Exposure to zeros.

Returns
-------
mask : `~lsst.afw.image.Mask`
    In-memory mask component.

Definition at line 109 of file fitsRawFormatterBase.py.

109  def readMask(self):
110  """Read just the mask component of the Exposure.
111 
112  May return None (as the default implementation does) to indicate that
113  there is no mask information to be extracted (at least not trivially)
114  from the raw data. This will prohibit direct reading of just the mask,
115  and set the mask of the full Exposure to zeros.
116 
117  Returns
118  -------
119  mask : `~lsst.afw.image.Mask`
120  In-memory mask component.
121  """
122  return None
123 

◆ readMetadata()

def lsst.obs.base.fitsExposureFormatter.FitsExposureFormatter.readMetadata (   self)
inherited
Read all header metadata directly into a PropertyList.

Returns
-------
metadata : `~lsst.daf.base.PropertyList`
    Header metadata.

Reimplemented in lsst.obs.decam.rawFormatter.DarkEnergyCameraRawFormatter.

Definition at line 45 of file fitsExposureFormatter.py.

45  def readMetadata(self):
46  """Read all header metadata directly into a PropertyList.
47 
48  Returns
49  -------
50  metadata : `~lsst.daf.base.PropertyList`
51  Header metadata.
52  """
53  from lsst.afw.image import readMetadata
54  md = readMetadata(self.fileDescriptor.location.path)
55  fix_header(md)
56  return md
57 

◆ readRawHeaderWcs()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.readRawHeaderWcs (   self,
  parameters = None 
)
Read the SkyWcs stored in the un-modified raw FITS WCS header keys.

Definition at line 343 of file fitsRawFormatterBase.py.

343  def readRawHeaderWcs(self, parameters=None):
344  """Read the SkyWcs stored in the un-modified raw FITS WCS header keys.
345  """
346  return lsst.afw.geom.makeSkyWcs(lsst.afw.fits.readMetadata(self.fileDescriptor))
347 

◆ readVariance()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.readVariance (   self)
Read just the variance component of the Exposure.

May return None (as the default implementation does) to indicate that
there is no variance information to be extracted (at least not
trivially) from the raw data.  This will prohibit direct reading of
just the variance, and set the variance of the full Exposure to zeros.

Returns
-------
image : `~lsst.afw.image.Image`
    In-memory variance component.

Definition at line 124 of file fitsRawFormatterBase.py.

124  def readVariance(self):
125  """Read just the variance component of the Exposure.
126 
127  May return None (as the default implementation does) to indicate that
128  there is no variance information to be extracted (at least not
129  trivially) from the raw data. This will prohibit direct reading of
130  just the variance, and set the variance of the full Exposure to zeros.
131 
132  Returns
133  -------
134  image : `~lsst.afw.image.Image`
135  In-memory variance component.
136  """
137  return None
138 

◆ stripMetadata()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.stripMetadata (   self)
Remove metadata entries that are parsed into components.

Reimplemented from lsst.obs.base.fitsExposureFormatter.FitsExposureFormatter.

Definition at line 159 of file fitsRawFormatterBase.py.

159  def stripMetadata(self):
160  """Remove metadata entries that are parsed into components.
161  """
162  # NOTE: makeVisitInfo() may not strip any metadata itself, but calling
163  # it ensures that ObservationInfo is created from the metadata, which
164  # will strip the VisitInfo keys and more.
165  self.makeVisitInfo()
166  self._createSkyWcsFromMetadata()
167 

◆ translatorClass()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.translatorClass (   self)
`~astro_metadata_translator.MetadataTranslator` to translate
metadata header to `~astro_metadata_translator.ObservationInfo`.

Definition at line 83 of file fitsRawFormatterBase.py.

83  def translatorClass(self):
84  """`~astro_metadata_translator.MetadataTranslator` to translate
85  metadata header to `~astro_metadata_translator.ObservationInfo`.
86  """
87  return None
88 

◆ write()

def lsst.obs.base.fitsRawFormatterBase.FitsRawFormatterBase.write (   self,
  inMemoryDataset 
)
Write a Python object to a file.

Parameters
----------
inMemoryDataset : `object`
    The Python object to store.

Returns
-------
path : `str`
    The `URI` where the primary file is stored.

Reimplemented from lsst.obs.base.fitsExposureFormatter.FitsExposureFormatter.

Definition at line 348 of file fitsRawFormatterBase.py.

348  def write(self, inMemoryDataset):
349  """Write a Python object to a file.
350 
351  Parameters
352  ----------
353  inMemoryDataset : `object`
354  The Python object to store.
355 
356  Returns
357  -------
358  path : `str`
359  The `URI` where the primary file is stored.
360  """
361  raise NotImplementedError("Raw data cannot be `put`.")
362 

Member Data Documentation

◆ extension

string lsst.obs.base.fitsExposureFormatter.FitsExposureFormatter.extension = ".fits"
staticinherited

Definition at line 32 of file fitsExposureFormatter.py.


The documentation for this class was generated from the following file:
lsst::afw::image
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
Definition: imageAlgorithm.dox:1
lsst::afw::image::Filter
Holds an integer identifier for an LSST filter.
Definition: Filter.h:141
lsst::afw::image::makeExposure
std::shared_ptr< Exposure< ImagePixelT, MaskPixelT, VariancePixelT > > makeExposure(MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > &mimage, std::shared_ptr< geom::SkyWcs const > wcs=std::shared_ptr< geom::SkyWcs const >())
A function to return an Exposure of the correct type (cf.
Definition: Exposure.h:442
pex.config.history.format
def format(config, name=None, writeSourceLine=True, prefix="", verbose=False)
Definition: history.py:174
lsst::log::Log::getLogger
static Log getLogger(Log const &logger)
Definition: Log.h:760
lsst::afw::geom.transform.transformContinued.cls
cls
Definition: transformContinued.py:33
lsst.pipe.tasks.mergeDetections.write
def write(self, patchRef, catalog)
Write the output.
Definition: mergeDetections.py:388
lsst::afw::geom::makeSkyWcs
std::shared_ptr< SkyWcs > makeSkyWcs(TransformPoint2ToPoint2 const &pixelsToFieldAngle, lsst::geom::Angle const &orientation, bool flipX, lsst::geom::SpherePoint const &boresight, std::string const &projection="TAN")
Construct a FITS SkyWcs from camera geometry.
Definition: SkyWcs.cc:536
lsst::afw::image.readMetadata.readMetadataContinued.readMetadata
readMetadata
Definition: readMetadataContinued.py:28
lsst::afw::fits::readMetadata
std::shared_ptr< daf::base::PropertyList > readMetadata(fits::Fits &fitsfile, bool strip=false)
Read FITS header.
Definition: fits.cc:1669
lsst::meas::astrom::makeWcs
std::shared_ptr< afw::geom::SkyWcs > makeWcs(SipForwardTransform const &sipForward, SipReverseTransform const &sipReverse, geom::SpherePoint const &skyOrigin)
Create a new TAN SIP Wcs from a pair of SIP transforms and the sky origin.
Definition: SipTransform.cc:148
lsst.obs.base.utils.createInitialSkyWcs
def createInitialSkyWcs(visitInfo, detector, flipX=False)
Definition: utils.py:44
lsst::afw::image::makeMaskedImage
MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > * makeMaskedImage(typename std::shared_ptr< Image< ImagePixelT >> image, typename std::shared_ptr< Mask< MaskPixelT >> mask=Mask< MaskPixelT >(), typename std::shared_ptr< Image< VariancePixelT >> variance=Image< VariancePixelT >())
A function to return a MaskedImage of the correct type (cf.
Definition: MaskedImage.h:1279