lsst.ip.diffim  13.0-19-g373a351+2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Functions | Variables
lsst.ip.diffim.utils Namespace Reference

Classes

class  DipoleTestImage
 Utility class for dipole measurement testing. More...
 

Functions

def showSourceSet
 
def showKernelSpatialCells
 
def showDiaSources
 
def showKernelCandidates
 
def showKernelBasis
 
def plotKernelSpatialModel
 
def showKernelMosaic
 
def plotPixelResiduals
 
def calcCentroid
 
def calcWidth
 
def printSkyDiffs
 
def makeRegions
 
def showSourceSetSky
 
def plotWhisker
 

Variables

tuple __all__ = ("DipoleTestImage")
 
 keptPlots = False
 

Function Documentation

def lsst.ip.diffim.utils.calcCentroid (   arr)
Calculate first moment of a (kernel) image

Definition at line 640 of file utils.py.

def lsst.ip.diffim.utils.calcWidth (   arr,
  centx,
  centy 
)
Calculate second moment of a (kernel) image

Definition at line 654 of file utils.py.

def lsst.ip.diffim.utils.makeRegions (   sources,
  outfilename,
  wcs = None 
)
Create regions file for ds9 from input source list

Definition at line 682 of file utils.py.

def lsst.ip.diffim.utils.plotKernelSpatialModel (   kernel,
  kernelCellSet,
  showBadCandidates = True,
  numSample = 128,
  keepPlots = True,
  maxCoeff = 10 
)
Plot the Kernel spatial model.

Definition at line 272 of file utils.py.

def lsst.ip.diffim.utils.plotPixelResiduals (   exposure,
  warpedTemplateExposure,
  diffExposure,
  kernelCellSet,
  kernel,
  background,
  testSources,
  config,
  origVariance = False,
  nptsFull = 1e6,
  keepPlots = True,
  titleFs = 14 
)
Plot diffim residuals for LOCAL and SPATIAL models

Definition at line 499 of file utils.py.

def lsst.ip.diffim.utils.plotWhisker (   results,
  newWcs 
)
Plot whisker diagram of astromeric offsets between results.matches

Definition at line 708 of file utils.py.

def lsst.ip.diffim.utils.printSkyDiffs (   sources,
  wcs 
)
Print differences in sky coordinates between source Position and its Centroid mapped through Wcs

Definition at line 669 of file utils.py.

def lsst.ip.diffim.utils.showDiaSources (   sources,
  exposure,
  isFlagged,
  isDipole,
  frame = None 
)
Display Dia Sources

Definition at line 105 of file utils.py.

def lsst.ip.diffim.utils.showKernelBasis (   kernel,
  frame = None 
)
Display a Kernel's basis images

Definition at line 255 of file utils.py.

def lsst.ip.diffim.utils.showKernelCandidates (   kernelCellSet,
  kernel,
  background,
  frame = None,
  showBadCandidates = True,
  resids = False,
  kernels = False 
)
Display the Kernel candidates.
If kernel is provided include spatial model and residuals;
If chi is True, generate a plot of residuals/sqrt(variance), i.e. chi

Definition at line 141 of file utils.py.

def lsst.ip.diffim.utils.showKernelMosaic (   bbox,
  kernel,
  nx = 7,
  ny = None,
  frame = None,
  title = None,
  showCenter = True,
  showEllipticity = True 
)
Show a mosaic of Kernel images.

Definition at line 422 of file utils.py.

def lsst.ip.diffim.utils.showKernelSpatialCells (   maskedIm,
  kernelCellSet,
  showChi2 = False,
  symb = "o",
  ctype = None,
  ctypeUnused = None,
  ctypeBad = None,
  size = 3,
  frame = None,
  title = "Spatial Cells" 
)
Show the SpatialCells.  If symb is something that ds9.dot
understands (e.g. "o"), the top nMaxPerCell candidates will be
indicated with that symbol, using ctype and size

Definition at line 71 of file utils.py.

def lsst.ip.diffim.utils.showSourceSet (   sSet,
  xy0 = (0, 0,
  frame = 0,
  ctype = ds9.GREEN,
  symb = "+",
  size = 2 
)
Draw the (XAstrom, YAstrom) positions of a set of Sources.  Image has the given XY0

Definition at line 52 of file utils.py.

def lsst.ip.diffim.utils.showSourceSetSky (   sSet,
  wcs,
  xy0,
  frame = 0,
  ctype = ds9.GREEN,
  symb = "+",
  size = 2 
)
Draw the (RA, Dec) positions of a set of Sources. Image has the XY0.

Definition at line 698 of file utils.py.

Variable Documentation

tuple lsst.ip.diffim.utils.__all__ = ("DipoleTestImage")

Definition at line 46 of file utils.py.

lsst.ip.diffim.utils.keptPlots = False

Definition at line 49 of file utils.py.