BackgroundList¶
- class lsst.afw.math.BackgroundList(*args)¶
- Bases: - object- A list-like class to contain a list of ( - lsst.afw.math.Background,- lsst.afw.math.Interpolate.Style,- UndersampleStyle) tuples.- Parameters:
- *argstupleorBackground
- A sequence of arguments, each of which becomes an element of the list. We also accept a single - lsst.afw.math.Backgroundand extract the- interpStyleand- undersampleStylefrom 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:
- fileNamestr
- FITS file to read 
- hduint
- First Header/Data Unit to attempt to read from 
- flagsint
- 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:
- fileNamestr
- FITS file to write 
- flagsint
- Flags to control details of writing; currently unused, but present for consistency with - lsst.afw.table.BaseCatalog.writeFits.
 
- fileName