lsst.afw  16.0-43-gaa65a4573+2
Public Member Functions | Static Public Member Functions | List of all members
lsst.afw.math.backgroundList.BackgroundList Class Reference

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 30 of file backgroundList.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 37 of file backgroundList.py.

Member Function Documentation

◆ __getitem__()

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

Definition at line 42 of file backgroundList.py.

◆ __len__()

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

Definition at line 65 of file backgroundList.py.

◆ __reduce__()

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

Definition at line 227 of file backgroundList.py.

◆ append()

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

Definition at line 68 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 85 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 205 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 125 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 93 of file backgroundList.py.


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