BackgroundList¶
- class lsst.afw.math.BackgroundList(*args)¶
Bases:
objectA list-like class to contain a list of (
lsst.afw.math.Background,lsst.afw.math.Interpolate.Style,UndersampleStyle) tuples.- Parameters:
- *args
tupleorBackground A sequence of arguments, each of which becomes an element of the list. We also accept a single
lsst.afw.math.Backgroundand extract theinterpStyleandundersampleStylefrom the as-used values.
- *args
Methods Summary
append(val)clone()Return a shallow copy
getImage()Compute and return a full-resolution image from our list of (Background, interpStyle, undersampleStyle).
readFits(fileName[, hdu, flags])Read our list of Backgrounds from a file.
writeFits(fileName[, flags])Save our list of Backgrounds to a file.
Methods Documentation
- append(val)¶
- clone()¶
Return a shallow copy
Shallow copies do not share backgrounds that are appended after copying, but do share changes to contained background objects.
- getImage()¶
Compute and return a full-resolution image from our list of (Background, interpStyle, undersampleStyle).
- static readFits(fileName, hdu=0, flags=0)¶
Read our list of Backgrounds from a file.
- Parameters:
- fileName
str FITS file to read
- hdu
int First Header/Data Unit to attempt to read from
- flags
int Flags to control details of reading; currently unused, but present for consistency with
lsst.afw.table.BaseCatalog.readFits.
- fileName
See also
- writeFits(fileName, flags=0)¶
Save our list of Backgrounds to a file.
- Parameters:
- fileName
str FITS file to write
- flags
int Flags to control details of writing; currently unused, but present for consistency with
lsst.afw.table.BaseCatalog.writeFits.
- fileName