lsst.afw  13.0-91-g2a3e2ee
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
lsst.afw.image.utils Namespace Reference

Classes

class  CalibNoThrow
 

Functions

def clipImage
 
def getDistortedWcs
 Get a WCS from an exposureInfo, with distortion terms if possible. More...
 
def resetFilters
 
def defineFilter
 
def defineFiltersFromPolicy
 

Variables

list __all__
 

Function Documentation

def lsst.afw.image.utils.clipImage (   im,
  minClip,
  maxClip 
)
Clip an image to lie between minClip and maxclip (None to ignore)

Definition at line 41 of file utils.py.

def lsst.afw.image.utils.defineFilter (   name,
  lambdaEff,
  alias = [],
  force = False 
)
Define a filter and its properties in the filter registry

Definition at line 108 of file utils.py.

def lsst.afw.image.utils.defineFiltersFromPolicy (   filterPolicy,
  reset = False 
)
Process a Policy and define the filters

Definition at line 119 of file utils.py.

def lsst.afw.image.utils.getDistortedWcs (   exposureInfo,
  log = None 
)

Get a WCS from an exposureInfo, with distortion terms if possible.

If the WCS in the exposure is a pure TAN WCS and distortion information is available in the exposure's Detector, then return a DistortedTanWcs that combines the distortion information with the pure TAN WCS. Otherwise return the WCS in the exposureInfo without modification.

This function is intended as a temporary workaround until ISR puts a WCS with distortion information into its exposures.

Parameters
[in]exposureInfoexposure information (an lsst.afw.image.ExposureInfo), e.g. from exposure.getInfo()
[in]logan lsst.log.Log or None; if specified then a warning is logged if:
  • the exposureInfo's WCS has no distortion and cannot be cast to a TanWcs
  • the expousureInfo's detector has no TAN_PIXELS transform (distortion information)
Exceptions
RuntimeErrorif exposureInfo has no WCS.

Definition at line 60 of file utils.py.

def lsst.afw.image.utils.resetFilters ( )
Reset registry of filters and filter properties

Definition at line 102 of file utils.py.

Variable Documentation

list lsst.afw.image.utils.__all__
Initial value:
1 = ["clipImage", "getDistortedWcs", "resetFilters", "defineFilter",
2  "defineFiltersFromPolicy", "CalibNoThrow"]

Definition at line 24 of file utils.py.