lsst.afw  14.0-27-gbdf48f848+1
Classes | Functions
lsst.afw.geom.testUtils Namespace Reference

Classes

class  BoxGrid
 Divide a box into nx by ny sub-boxes that tile the region. More...
 
class  FrameSetInfo
 
class  PermutedFrameSet
 
class  TransformTestBaseClass
 

Functions

def makeFitsHeaderFromMetadata (metadata)
 
def makeSipPolyMapCoeffs (metadata, name)
 
def makeSipIwcToPixel (metadata)
 
def makeSipPixelToIwc (metadata)
 

Function Documentation

◆ makeFitsHeaderFromMetadata()

def lsst.afw.geom.testUtils.makeFitsHeaderFromMetadata (   metadata)
Make a FITS header string from metadata

Definition at line 138 of file testUtils.py.

◆ makeSipIwcToPixel()

def lsst.afw.geom.testUtils.makeSipIwcToPixel (   metadata)
Make an iwcToPixel transform witH SIP distortion from FITS-WCS metadata

pixelPos = crpix + uv + sipMatrix(uv)
where uv = inverseCdMatrix(iwcPos)

The transform has no inverse

Definition at line 188 of file testUtils.py.

◆ makeSipPixelToIwc()

def lsst.afw.geom.testUtils.makeSipPixelToIwc (   metadata)
Make a pixelToIwc transform with SIP distortion from FITS-WCS metadata

iwcPos = cdMatrix[dxy + sipMatrix(dxy)]
where dxy = pixelPos - crpix

The transform has no inverse

Definition at line 208 of file testUtils.py.

◆ makeSipPolyMapCoeffs()

def lsst.afw.geom.testUtils.makeSipPolyMapCoeffs (   metadata,
  name 
)
Return a list of ast.PolyMap coefficients for the specified SIP matrix

Include a term for out = in

This is an internal function for use by makeSipIwcToPixel and makeSipPixelToIwc

Definition at line 155 of file testUtils.py.