BrightStarStamps

class lsst.meas.algorithms.BrightStarStamps(brightStarStamps: Sequence[BrightStarStamp], metadata: PropertyList | None = None)

Bases: Sequence[BrightStarStamp]

A collection of bright star stamps.

Parameters:
brightStarStampsIterable [BrightStarStamp]

Collection of BrightStarStamp instances.

metadataPropertyList, optional

Global metadata associated with the collection.

Attributes Summary

metadata

Return the collection's global metadata as a PropertyList.

Methods Summary

count(value)

index(value, [start, [stop]])

Raises ValueError if the value is not present.

readFits(filename)

Make a BrightStarStamps object from a FITS file.

readFitsWithOptions(filename, options)

Make a BrightStarStamps object from a FITS file, with options.

writeFits(filename)

Write this BrightStarStamps object to a FITS file.

Attributes Documentation

metadata

Return the collection’s global metadata as a PropertyList.

Methods Documentation

count(value) integer -- return number of occurrences of value
index(value[, start[, stop]]) integer -- return first index of value.

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.

classmethod readFits(filename: str) BrightStarStamps

Make a BrightStarStamps object from a FITS file.

Parameters:
filenamestr

Name of the FITS file to read.

Returns:
brightStarStampsBrightStarStamps

The constructed BrightStarStamps instance.

classmethod readFitsWithOptions(filename: str, options: PropertyList | None) BrightStarStamps

Make a BrightStarStamps object from a FITS file, with options.

Parameters:
filenamestr

Name of the FITS file to read.

optionsPropertyList, optional

Options for reading the FITS file. Not currently used.

Returns:
brightStarStampsBrightStarStamps

The constructed BrightStarStamps instance.

writeFits(filename: str)

Write this BrightStarStamps object to a FITS file.

Parameters:
filenamestr

Name of the FITS file to write.