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 | Public Attributes | List of all members
lsst.meas.algorithms.brightStarStamps.BrightStarStamps Class Reference
Inheritance diagram for lsst.meas.algorithms.brightStarStamps.BrightStarStamps:
lsst.meas.algorithms.stamps.Stamps lsst.meas.algorithms.stamps.StampsBase

Public Member Functions

def __init__ (self, starStamps, innerRadius=None, outerRadius=None, nb90Rots=None, metadata=None, use_mask=True, use_variance=False, use_archive=False)
 
def initAndNormalize (cls, starStamps, innerRadius, outerRadius, nb90Rots=None, metadata=None, use_mask=True, use_variance=False, use_archive=False, imCenter=None, discardNanFluxObjects=True, statsControl=afwMath.StatisticsControl(), statsFlag=afwMath.stringToStatisticsProperty("MEAN"), badMaskPlanes=('BAD', 'SAT', 'NO_DATA'))
 
def readFits (cls, filename)
 
def readFitsWithOptions (cls, filename, options)
 
def append (self, item, innerRadius=None, outerRadius=None)
 
def extend (self, bss)
 
def getMagnitudes (self)
 
def getGaiaIds (self)
 
def getAnnularFluxes (self)
 
def selectByMag (self, magMin=None, magMax=None)
 
def getPositions (self)
 
def append (self, item)
 
def writeFits (self, filename)
 
def __len__ (self)
 
def __getitem__ (self, index)
 
def __iter__ (self)
 
def getMaskedImages (self)
 
def getArchiveElements (self)
 
def metadata (self)
 

Public Attributes

 normalized
 
 nb90Rots
 
 use_mask
 
 use_variance
 
 use_archive
 

Detailed Description

Collection of bright star stamps and associated metadata.

Parameters
----------
starStamps : `collections.abc.Sequence` [`BrightStarStamp`]
    Sequence of star stamps. Cannot contain both normalized and
    unnormalized stamps.
innerRadius : `int`, optional
    Inner radius value, in pixels. This and ``outerRadius`` define the
    annulus used to compute the ``"annularFlux"`` values within each
    ``starStamp``. Must be provided if ``normalize`` is True.
outerRadius : `int`, optional
    Outer radius value, in pixels. This and ``innerRadius`` define the
    annulus used to compute the ``"annularFlux"`` values within each
    ``starStamp``. Must be provided if ``normalize`` is True.
nb90Rots : `int`, optional
    Number of 90 degree rotations required to compensate for detector
    orientation.
metadata : `lsst.daf.base.PropertyList`, optional
    Metadata associated with the bright stars.
use_mask : `bool`
    If `True` read and write mask data. Default `True`.
use_variance : `bool`
    If ``True`` read and write variance data. Default ``False``.
use_archive : `bool`
    If ``True`` read and write an Archive that contains a Persistable
    associated with each stamp. In the case of bright stars, this is
    usually a ``TransformPoint2ToPoint2``, used to warp each stamp
    to the same pixel grid before stacking.

Raises
------
ValueError
    Raised if one of the star stamps provided does not contain the
    required keys.
AttributeError
    Raised if there is a mix-and-match of normalized and unnormalized
    stamps, stamps normalized with different annulus definitions, or if
    stamps are to be normalized but annular radii were not provided.


Notes
-----
A butler can be used to read only a part of the stamps, specified by a
bbox:

>>> starSubregions = butler.get("brightStarStamps", dataId, parameters={'bbox': bbox})

Definition at line 151 of file brightStarStamps.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.meas.algorithms.brightStarStamps.BrightStarStamps.__init__ (   self,
  starStamps,
  innerRadius = None,
  outerRadius = None,
  nb90Rots = None,
  metadata = None,
  use_mask = True,
  use_variance = False,
  use_archive = False 
)

Definition at line 201 of file brightStarStamps.py.

202  metadata=None, use_mask=True, use_variance=False, use_archive=False):
203  super().__init__(starStamps, metadata, use_mask, use_variance, use_archive)
204  # Ensure stamps contain a flux measurement if and only if they are
205  # already expected to be normalized
206  self._checkNormalization(False, innerRadius, outerRadius)
207  self._innerRadius, self._outerRadius = innerRadius, outerRadius
208  if innerRadius is not None and outerRadius is not None:
209  self.normalized = True
210  else:
211  self.normalized = False
212  self.nb90Rots = nb90Rots
213 

Member Function Documentation

◆ __getitem__()

def lsst.meas.algorithms.stamps.StampsBase.__getitem__ (   self,
  index 
)
inherited

Definition at line 379 of file stamps.py.

379  def __getitem__(self, index):
380  return self._stamps[index]
381 

◆ __iter__()

def lsst.meas.algorithms.stamps.StampsBase.__iter__ (   self)
inherited

Definition at line 382 of file stamps.py.

382  def __iter__(self):
383  return iter(self._stamps)
384 

◆ __len__()

def lsst.meas.algorithms.stamps.StampsBase.__len__ (   self)
inherited

Definition at line 376 of file stamps.py.

376  def __len__(self):
377  return len(self._stamps)
378 

◆ append() [1/2]

def lsst.meas.algorithms.stamps.Stamps.append (   self,
  item 
)
inherited
Add an additional stamp.

Parameters
----------
item : `Stamp`
    Stamp object to append.

Definition at line 419 of file stamps.py.

419  def append(self, item):
420  """Add an additional stamp.
421 
422  Parameters
423  ----------
424  item : `Stamp`
425  Stamp object to append.
426  """
427  if not isinstance(item, Stamp):
428  raise ValueError("Objects added must be a Stamp object.")
429  self._stamps.append(item)
430  return None
431 
std::shared_ptr< FrameSet > append(FrameSet const &first, FrameSet const &second)
Construct a FrameSet that performs two transformations in series.
Definition: functional.cc:33

◆ append() [2/2]

def lsst.meas.algorithms.brightStarStamps.BrightStarStamps.append (   self,
  item,
  innerRadius = None,
  outerRadius = None 
)
Add an additional bright star stamp.

Parameters
----------
item : `BrightStarStamp`
    Bright star stamp to append.
innerRadius : `int`, optional
    Inner radius value, in pixels. This and ``outerRadius`` define the
    annulus used to compute the ``"annularFlux"`` values within each
    ``BrightStarStamp``.
outerRadius : `int`, optional
    Outer radius value, in pixels. This and ``innerRadius`` define the
    annulus used to compute the ``"annularFlux"`` values within each
    ``BrightStarStamp``.

Definition at line 364 of file brightStarStamps.py.

364  def append(self, item, innerRadius=None, outerRadius=None):
365  """Add an additional bright star stamp.
366 
367  Parameters
368  ----------
369  item : `BrightStarStamp`
370  Bright star stamp to append.
371  innerRadius : `int`, optional
372  Inner radius value, in pixels. This and ``outerRadius`` define the
373  annulus used to compute the ``"annularFlux"`` values within each
374  ``BrightStarStamp``.
375  outerRadius : `int`, optional
376  Outer radius value, in pixels. This and ``innerRadius`` define the
377  annulus used to compute the ``"annularFlux"`` values within each
378  ``BrightStarStamp``.
379  """
380  if not isinstance(item, BrightStarStamp):
381  raise ValueError(f"Can only add instances of BrightStarStamp, got {type(item)}.")
382  if (item.annularFlux is None) == self.normalized:
383  raise AttributeError("Trying to append an unnormalized stamp to a normalized BrightStarStamps "
384  "instance, or vice-versa.")
385  else:
386  self._checkRadius(innerRadius, outerRadius)
387  self._stamps.append(item)
388  return None
389 

◆ extend()

def lsst.meas.algorithms.brightStarStamps.BrightStarStamps.extend (   self,
  bss 
)
Extend BrightStarStamps instance by appending elements from another
instance.

Parameters
----------
bss : `BrightStarStamps`
    Other instance to concatenate.

Reimplemented from lsst.meas.algorithms.stamps.Stamps.

Definition at line 390 of file brightStarStamps.py.

390  def extend(self, bss):
391  """Extend BrightStarStamps instance by appending elements from another
392  instance.
393 
394  Parameters
395  ----------
396  bss : `BrightStarStamps`
397  Other instance to concatenate.
398  """
399  if not isinstance(bss, BrightStarStamps):
400  raise ValueError('Can only extend with a BrightStarStamps object. '
401  f'Got {type(bss)}.')
402  self._checkRadius(bss._innerRadius, bss._outerRadius)
403  self._stamps += bss._stamps
404 

◆ getAnnularFluxes()

def lsst.meas.algorithms.brightStarStamps.BrightStarStamps.getAnnularFluxes (   self)
Retrieve normalization factors for each star.

These are computed by integrating the flux in annulus centered on the
bright star, far enough from center to be beyond most severe ghosts and
saturation. The inner and outer radii that define the annulus can be
recovered from the metadata.

Returns
-------
annularFluxes : `list` [`float`]

Definition at line 423 of file brightStarStamps.py.

423  def getAnnularFluxes(self):
424  """Retrieve normalization factors for each star.
425 
426  These are computed by integrating the flux in annulus centered on the
427  bright star, far enough from center to be beyond most severe ghosts and
428  saturation. The inner and outer radii that define the annulus can be
429  recovered from the metadata.
430 
431  Returns
432  -------
433  annularFluxes : `list` [`float`]
434  """
435  return [stamp.annularFlux for stamp in self._stamps]
436 

◆ getArchiveElements()

def lsst.meas.algorithms.stamps.StampsBase.getArchiveElements (   self)
inherited
Retrieve archive elements associated with each stamp.

Returns
-------
archiveElements :
    `list` [`lsst.afwTable.io.Persistable`]

Definition at line 395 of file stamps.py.

395  def getArchiveElements(self):
396  """Retrieve archive elements associated with each stamp.
397 
398  Returns
399  -------
400  archiveElements :
401  `list` [`lsst.afwTable.io.Persistable`]
402  """
403  return [stamp.archive_element for stamp in self._stamps]
404 

◆ getGaiaIds()

def lsst.meas.algorithms.brightStarStamps.BrightStarStamps.getGaiaIds (   self)
Retrieve Gaia IDs for each star.

Returns
-------
gaiaIds : `list` [`int`]

Definition at line 414 of file brightStarStamps.py.

414  def getGaiaIds(self):
415  """Retrieve Gaia IDs for each star.
416 
417  Returns
418  -------
419  gaiaIds : `list` [`int`]
420  """
421  return [stamp.gaiaId for stamp in self._stamps]
422 

◆ getMagnitudes()

def lsst.meas.algorithms.brightStarStamps.BrightStarStamps.getMagnitudes (   self)
Retrieve Gaia G magnitudes for each star.

Returns
-------
gaiaGMags : `list` [`float`]

Definition at line 405 of file brightStarStamps.py.

405  def getMagnitudes(self):
406  """Retrieve Gaia G magnitudes for each star.
407 
408  Returns
409  -------
410  gaiaGMags : `list` [`float`]
411  """
412  return [stamp.gaiaGMag for stamp in self._stamps]
413 

◆ getMaskedImages()

def lsst.meas.algorithms.stamps.StampsBase.getMaskedImages (   self)
inherited
Retrieve star images.

Returns
-------
maskedImages :
    `list` [`lsst.afw.image.maskedImage.maskedImage.MaskedImageF`]

Definition at line 385 of file stamps.py.

385  def getMaskedImages(self):
386  """Retrieve star images.
387 
388  Returns
389  -------
390  maskedImages :
391  `list` [`lsst.afw.image.maskedImage.maskedImage.MaskedImageF`]
392  """
393  return [stamp.stamp_im for stamp in self._stamps]
394 

◆ getPositions()

def lsst.meas.algorithms.stamps.Stamps.getPositions (   self)
inherited

Definition at line 416 of file stamps.py.

416  def getPositions(self):
417  return [s.position for s in self._stamps]
418 

◆ initAndNormalize()

def lsst.meas.algorithms.brightStarStamps.BrightStarStamps.initAndNormalize (   cls,
  starStamps,
  innerRadius,
  outerRadius,
  nb90Rots = None,
  metadata = None,
  use_mask = True,
  use_variance = False,
  use_archive = False,
  imCenter = None,
  discardNanFluxObjects = True,
  statsControl = afwMath.StatisticsControl(),
  statsFlag = afwMath.stringToStatisticsProperty("MEAN"),
  badMaskPlanes = ('BAD', 'SAT', 'NO_DATA') 
)
Normalize a set of bright star stamps and initialize a
BrightStarStamps instance.

Since the center of bright stars are saturated and/or heavily affected
by ghosts, we measure their flux in an annulus with a large enough
inner radius to avoid the most severe ghosts and contain enough
non-saturated pixels.

Parameters
----------
starStamps : `collections.abc.Sequence` [`BrightStarStamp`]
    Sequence of star stamps. Cannot contain both normalized and
    unnormalized stamps.
innerRadius : `int`
    Inner radius value, in pixels. This and ``outerRadius`` define the
    annulus used to compute the ``"annularFlux"`` values within each
    ``starStamp``.
outerRadius : `int`
    Outer radius value, in pixels. This and ``innerRadius`` define the
    annulus used to compute the ``"annularFlux"`` values within each
    ``starStamp``.
nb90Rots : `int`, optional
    Number of 90 degree rotations required to compensate for detector
    orientation.
metadata : `lsst.daf.base.PropertyList`, optional
    Metadata associated with the bright stars.
use_mask : `bool`
    If `True` read and write mask data. Default `True`.
use_variance : `bool`
    If ``True`` read and write variance data. Default ``False``.
use_archive : `bool`
    If ``True`` read and write an Archive that contains a Persistable
    associated with each stamp. In the case of bright stars, this is
    usually a ``TransformPoint2ToPoint2``, used to warp each stamp
    to the same pixel grid before stacking.
imCenter : `collections.abc.Sequence`, optional
    Center of the object, in pixels. If not provided, the center of the
    first stamp's pixel grid will be used.
discardNanFluxObjects : `bool`
    Whether objects with NaN annular flux should be discarded.
    If False, these objects will not be normalized.
statsControl : `lsst.afw.math.statistics.StatisticsControl`, optional
    StatisticsControl to be used when computing flux over all pixels
    within the annulus.
statsFlag : `lsst.afw.math.statistics.Property`, optional
    statsFlag to be passed on to ``afwMath.makeStatistics`` to compute
    annularFlux. Defaults to a simple MEAN.
badMaskPlanes : `collections.abc.Collection` [`str`]
    Collection of mask planes to ignore when computing annularFlux.

Raises
------
ValueError
    Raised if one of the star stamps provided does not contain the
    required keys.
AttributeError
    Raised if there is a mix-and-match of normalized and unnormalized
    stamps, stamps normalized with different annulus definitions, or if
    stamps are to be normalized but annular radii were not provided.

Definition at line 215 of file brightStarStamps.py.

221  badMaskPlanes=('BAD', 'SAT', 'NO_DATA')):
222  """Normalize a set of bright star stamps and initialize a
223  BrightStarStamps instance.
224 
225  Since the center of bright stars are saturated and/or heavily affected
226  by ghosts, we measure their flux in an annulus with a large enough
227  inner radius to avoid the most severe ghosts and contain enough
228  non-saturated pixels.
229 
230  Parameters
231  ----------
232  starStamps : `collections.abc.Sequence` [`BrightStarStamp`]
233  Sequence of star stamps. Cannot contain both normalized and
234  unnormalized stamps.
235  innerRadius : `int`
236  Inner radius value, in pixels. This and ``outerRadius`` define the
237  annulus used to compute the ``"annularFlux"`` values within each
238  ``starStamp``.
239  outerRadius : `int`
240  Outer radius value, in pixels. This and ``innerRadius`` define the
241  annulus used to compute the ``"annularFlux"`` values within each
242  ``starStamp``.
243  nb90Rots : `int`, optional
244  Number of 90 degree rotations required to compensate for detector
245  orientation.
246  metadata : `lsst.daf.base.PropertyList`, optional
247  Metadata associated with the bright stars.
248  use_mask : `bool`
249  If `True` read and write mask data. Default `True`.
250  use_variance : `bool`
251  If ``True`` read and write variance data. Default ``False``.
252  use_archive : `bool`
253  If ``True`` read and write an Archive that contains a Persistable
254  associated with each stamp. In the case of bright stars, this is
255  usually a ``TransformPoint2ToPoint2``, used to warp each stamp
256  to the same pixel grid before stacking.
257  imCenter : `collections.abc.Sequence`, optional
258  Center of the object, in pixels. If not provided, the center of the
259  first stamp's pixel grid will be used.
260  discardNanFluxObjects : `bool`
261  Whether objects with NaN annular flux should be discarded.
262  If False, these objects will not be normalized.
263  statsControl : `lsst.afw.math.statistics.StatisticsControl`, optional
264  StatisticsControl to be used when computing flux over all pixels
265  within the annulus.
266  statsFlag : `lsst.afw.math.statistics.Property`, optional
267  statsFlag to be passed on to ``afwMath.makeStatistics`` to compute
268  annularFlux. Defaults to a simple MEAN.
269  badMaskPlanes : `collections.abc.Collection` [`str`]
270  Collection of mask planes to ignore when computing annularFlux.
271 
272  Raises
273  ------
274  ValueError
275  Raised if one of the star stamps provided does not contain the
276  required keys.
277  AttributeError
278  Raised if there is a mix-and-match of normalized and unnormalized
279  stamps, stamps normalized with different annulus definitions, or if
280  stamps are to be normalized but annular radii were not provided.
281  """
282  if imCenter is None:
283  stampSize = starStamps[0].stamp_im.getDimensions()
284  imCenter = stampSize[0]//2, stampSize[1]//2
285  # Create SpanSet of annulus
286  outerCircle = afwGeom.SpanSet.fromShape(outerRadius, afwGeom.Stencil.CIRCLE, offset=imCenter)
287  innerCircle = afwGeom.SpanSet.fromShape(innerRadius, afwGeom.Stencil.CIRCLE, offset=imCenter)
288  annulus = outerCircle.intersectNot(innerCircle)
289  # Initialize (unnormalized) brightStarStamps instance
290  bss = cls(starStamps, innerRadius=None, outerRadius=None, nb90Rots=nb90Rots,
291  metadata=metadata, use_mask=use_mask,
292  use_variance=use_variance, use_archive=use_archive)
293  # Ensure no stamps had already been normalized
294  bss._checkNormalization(True, innerRadius, outerRadius)
295  bss._innerRadius, bss._outerRadius = innerRadius, outerRadius
296  # Apply normalization
297  for j, stamp in enumerate(bss._stamps):
298  try:
299  stamp.measureAndNormalize(annulus, statsControl=statsControl, statsFlag=statsFlag,
300  badMaskPlanes=badMaskPlanes)
301  except RuntimeError:
302  # Optionally keep NaN flux objects, for bookkeeping purposes,
303  # and to avoid having to re-find and redo the preprocessing
304  # steps needed before bright stars can be subtracted.
305  if discardNanFluxObjects:
306  bss._stamps.pop(j)
307  else:
308  stamp.annularFlux = np.nan
309  bss.normalized = True
310  return bss
311 

◆ metadata()

def lsst.meas.algorithms.stamps.StampsBase.metadata (   self)
inherited

Definition at line 406 of file stamps.py.

406  def metadata(self):
407  return self._metadata
408 
409 

◆ readFits()

def lsst.meas.algorithms.brightStarStamps.BrightStarStamps.readFits (   cls,
  filename 
)
Build an instance of this class from a file.

Parameters
----------
filename : `str`
    Name of the file to read

Reimplemented from lsst.meas.algorithms.stamps.Stamps.

Definition at line 332 of file brightStarStamps.py.

332  def readFits(cls, filename):
333  """Build an instance of this class from a file.
334 
335  Parameters
336  ----------
337  filename : `str`
338  Name of the file to read
339  """
340  return cls.readFitsWithOptions(filename, None)
341 

◆ readFitsWithOptions()

def lsst.meas.algorithms.brightStarStamps.BrightStarStamps.readFitsWithOptions (   cls,
  filename,
  options 
)
Build an instance of this class with options.

Parameters
----------
filename : `str`
    Name of the file to read
options : `PropertyList`
    Collection of metadata parameters

Reimplemented from lsst.meas.algorithms.stamps.Stamps.

Definition at line 343 of file brightStarStamps.py.

343  def readFitsWithOptions(cls, filename, options):
344  """Build an instance of this class with options.
345 
346  Parameters
347  ----------
348  filename : `str`
349  Name of the file to read
350  options : `PropertyList`
351  Collection of metadata parameters
352  """
353  stamps, metadata = readFitsWithOptions(filename, BrightStarStamp.factory, options)
354  nb90Rots = metadata["NB_90_ROTS"] if "NB_90_ROTS" in metadata else None
355  if metadata["NORMALIZED"]:
356  return cls(stamps,
357  innerRadius=metadata["INNER_RADIUS"], outerRadius=metadata["OUTER_RADIUS"],
358  nb90Rots=nb90Rots, metadata=metadata, use_mask=metadata['HAS_MASK'],
359  use_variance=metadata['HAS_VARIANCE'], use_archive=metadata['HAS_ARCHIVE'])
360  else:
361  return cls(stamps, nb90Rots=nb90Rots, metadata=metadata, use_mask=metadata['HAS_MASK'],
362  use_variance=metadata['HAS_VARIANCE'], use_archive=metadata['HAS_ARCHIVE'])
363 
def readFitsWithOptions(filename, stamp_factory, options)
Definition: stamps.py:101

◆ selectByMag()

def lsst.meas.algorithms.brightStarStamps.BrightStarStamps.selectByMag (   self,
  magMin = None,
  magMax = None 
)
Return the subset of bright star stamps for objects with specified
magnitude cuts (in Gaia G).

Parameters
----------
magMin : `float`, optional
    Keep only stars fainter than this value.
magMax : `float`, optional
    Keep only stars brighter than this value.

Definition at line 437 of file brightStarStamps.py.

437  def selectByMag(self, magMin=None, magMax=None):
438  """Return the subset of bright star stamps for objects with specified
439  magnitude cuts (in Gaia G).
440 
441  Parameters
442  ----------
443  magMin : `float`, optional
444  Keep only stars fainter than this value.
445  magMax : `float`, optional
446  Keep only stars brighter than this value.
447  """
448  subset = [stamp for stamp in self._stamps
449  if (magMin is None or stamp.gaiaGMag > magMin)
450  and (magMax is None or stamp.gaiaGMag < magMax)]
451  # This is an optimization to save looping over the init argument when
452  # it is already guaranteed to be the correct type
453  instance = BrightStarStamps((),
454  innerRadius=self._innerRadius, outerRadius=self._outerRadius,
455  metadata=self._metadata)
456  instance._stamps = subset
457  return instance
458 

◆ writeFits()

def lsst.meas.algorithms.stamps.StampsBase.writeFits (   self,
  filename 
)
inherited
Write this object to a file.

Parameters
----------
filename : `str`
    Name of file to write

Definition at line 363 of file stamps.py.

363  def writeFits(self, filename):
364  """Write this object to a file.
365 
366  Parameters
367  ----------
368  filename : `str`
369  Name of file to write
370  """
371  self._refresh_metadata()
372  type_name = get_full_type_name(self)
373  writeFits(filename, self._stamps, self._metadata, type_name, self.use_mask, self.use_variance,
374  self.use_archive)
375 
def writeFits(filename, stamps, metadata, type_name, write_mask, write_variance, write_archive=False)
Definition: stamps.py:42

Member Data Documentation

◆ nb90Rots

lsst.meas.algorithms.brightStarStamps.BrightStarStamps.nb90Rots

Definition at line 212 of file brightStarStamps.py.

◆ normalized

lsst.meas.algorithms.brightStarStamps.BrightStarStamps.normalized

Definition at line 209 of file brightStarStamps.py.

◆ use_archive

lsst.meas.algorithms.stamps.StampsBase.use_archive
inherited

Definition at line 310 of file stamps.py.

◆ use_mask

lsst.meas.algorithms.stamps.StampsBase.use_mask
inherited

Definition at line 308 of file stamps.py.

◆ use_variance

lsst.meas.algorithms.stamps.StampsBase.use_variance
inherited

Definition at line 309 of file stamps.py.


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