lsst.afw  14.0-25-g0e8fc950e+7
Classes | Functions
lsst.afw.image.utils Namespace Reference

Classes

class  CalibNoThrow
 

Functions

def clipImage (im, minClip, maxClip)
 
def getDistortedWcs (exposureInfo, log=None)
 Get a WCS from an exposureInfo, with distortion terms if possible. More...
 
def resetFilters ()
 
def defineFilter (name, lambdaEff, alias=[], force=False)
 
def defineFiltersFromPolicy (filterPolicy, reset=False)
 

Function Documentation

◆ clipImage()

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.

◆ defineFilter()

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.

◆ defineFiltersFromPolicy()

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

Definition at line 119 of file utils.py.

◆ getDistortedWcs()

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.

◆ resetFilters()

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

Definition at line 102 of file utils.py.