lsst.afw  13.0-109-g62eb66483
Public Member Functions | Static Public Member Functions | List of all members
lsst.afw.math.backgroundList.BackgroundList Class Reference
Inheritance diagram for lsst.afw.math.backgroundList.BackgroundList:

Public Member Functions

def __init__ (self, args)
 
def __getitem__ (self, args)
 
def __len__ (self, args)
 
def append (self, val)
 
def clone (self)
 
def writeFits (self, fileName, flags=0)
 
def getImage (self)
 
def __reduce__ (self)
 

Static Public Member Functions

def readFits (fileName, hdu=0, flags=0)
 

Detailed Description

A list-like class to contain a list of (afwMath.Background, interpStyle, undersampleStyle) tuples

In deference to the deprecated-but-not-yet-removed Background.getImage() API, we also accept a single
afwMath.Background and extract the interpStyle and undersampleStyle from the as-used values

Definition at line 32 of file backgroundList.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.afw.math.backgroundList.BackgroundList.__init__ (   self,
  args 
)

Definition at line 39 of file backgroundList.py.

Member Function Documentation

◆ __getitem__()

def lsst.afw.math.backgroundList.BackgroundList.__getitem__ (   self,
  args 
)
Return an item

Definition at line 44 of file backgroundList.py.

◆ __len__()

def lsst.afw.math.backgroundList.BackgroundList.__len__ (   self,
  args 
)

Definition at line 67 of file backgroundList.py.

◆ __reduce__()

def lsst.afw.math.backgroundList.BackgroundList.__reduce__ (   self)

Definition at line 230 of file backgroundList.py.

◆ append()

def lsst.afw.math.backgroundList.BackgroundList.append (   self,
  val 
)

Definition at line 70 of file backgroundList.py.

◆ clone()

def lsst.afw.math.backgroundList.BackgroundList.clone (   self)
Return a shallow copy

Shallow copies do not share backgrounds that are appended after copying,
but do share changes to contained background objects.

Definition at line 87 of file backgroundList.py.

◆ getImage()

def lsst.afw.math.backgroundList.BackgroundList.getImage (   self)
Compute and return a full-resolution image from our list of
(Background, interpStyle, undersampleStyle)

Definition at line 208 of file backgroundList.py.

◆ readFits()

def lsst.afw.math.backgroundList.BackgroundList.readFits (   fileName,
  hdu = 0,
  flags = 0 
)
static
Read a our list of Backgrounds from a file
@param fileName         FITS file to read
@param hdu              First Header/Data Unit to attempt to read from
@param flags            Flags to control details of reading; currently unused,
                but present for consistency with
                afw.table.BaseCatalog.readFits.

See also getImage()

Definition at line 127 of file backgroundList.py.

◆ writeFits()

def lsst.afw.math.backgroundList.BackgroundList.writeFits (   self,
  fileName,
  flags = 0 
)
Save our list of Backgrounds to a file
@param fileName         FITS file to write
@param flags            Flags to control details of writing; currently unused,
                but present for consistency with
                afw.table.BaseCatalog.writeFits.

Definition at line 95 of file backgroundList.py.


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