WEP Developer Guide#
Wavefront estimation pipeline (WEP) calculates the wavefront error in annular Zernike polynomials based on the intra- and extra-focal donut images.
Main Classes#
Important classes:
WfEstimatorcalculates the wavefront error in annular Zernike polynomials based on the defocal donut images.
Important Pipeline Tasks:
task.GenerateDonutCatalogWcsTaskcreates a donut source catalog from available reference catalogs.task.CutOutDonutsScienceSensorTaskcuts out donuts stamps in image from LSSTFam or ComCam sensors when provided input exposures and source catalog.task.CutOutDonutsCwfsTaskcuts out donuts stamps in image from LSSTCam corner wavefront sensors when provided input exposures and source catalog.task.CalcZernikesTaskcalculates the Zernikes polynomials from donut stamps already stored in a butler repository.blitz.DonutBlitzCornerTaskruns the full corner-wavefront-sensor pipeline – detection, selection, cutout, and Zernike fitting – as a single visit-level task.blitz.DonutBlitzFamTaskruns the same end-to-end pipeline for the full-array-mode science sensors over an intra/extra-focal exposure pair.
Important enums:
BandLabeldefines the type of active filter.BscDbTypedefines the type of bright star catalog database.
Modules#
The classes and files for each module are listed below.
wep#
This module is a high-level module to use other modules.
classDiagram
class DonutImageCheck
class DonutDetector
class Instrument
class Image
ImageMapper *-- Instrument
ImageMapper *-- Image
Class diagram of wep#
Instrument: Class that defines the geometry, mask model, Batoid model, etc. for different telescopes.
Image: Image class to have the function to get the donut center.
ImageMapper: Class that maps images between the pupil and image planes, and creates masks.
DonutImageCheck: Donut image check class to judge the donut image is effective or not.
DonutDetector: Detect donuts directly from an out of focus image by convolution with a template image.
wep.centroid#
classDiagram
CentroidDefault <|-- CentroidRandomWalk
CentroidDefault <|-- CentroidOtsu
CentroidDefault <|-- CentroidConvolveTemplate
CentroidFindFactory ..> CentroidRandomWalk
CentroidFindFactory ..> CentroidOtsu
CentroidFindFactory ..> CentroidConvolveTemplate
CentroidConvolveTemplate *-- CentroidRandomWalk
Class diagram of wep.centroid#
This module finds the centroids of donuts.
CentroidFindFactory: Factory for creating the centroid find object to calculate the centroid of donut.
CentroidDefault: Default centroid class.
CentroidRandomWalk: CentroidDefault child class to get the centroid of donut by the random walk model.
CentroidOtsu: CentroidDefault child class to get the centroid of donut by Otsu’s method.
CentroidConvolveTemplate: CentroidDefault child class to get the centroids of one or more donuts in an image by convolution with a template donut.
wep.estimation#
classDiagram
WfAlgorithm <|-- TieAlgorithm
WfAlgorithmFactory ..> TieAlgorithm
WfEstimator *-- WfAlgorithmFactory
Class diagram of wep.estimation#
This module estimates the wavefront error.
WfEstimator: Calculate the wavefront error in annular Zernike polynomials based on the defocal donut images.
WfAlgorithm: Base class for algorithms that estimate Zernikes from donut images.
WfAlgorithmFactory: Factory for creating the algorithm classes
TieAlgorithm: Class that estimates Zernikes by solving the transport of intensity equation.
wep.deblend#
This module does the image deblending.
classDiagram
class nelderMeadModify
<<function>> nelderMeadModify
DeblendDefault <|-- DeblendAdapt
DeblendDonutFactory ..> DeblendAdapt
DeblendAdapt ..> nelderMeadModify
Class diagram of wep.deblend#
DeblendDonutFactory: Factory for creating the deblend donut object to deblend the bright star donut from neighboring stars.
DeblendDefault: Default deblend class.
DeblendAdapt: DeblendDefault child class to do the deblending by the adaptive threshold method.
nelderMeadModify: Do the numerical optimation according to the Nelder-Mead algorithm.
wep.task#
This module has the tasks to run WEP as a pipeline with Gen 3 LSST DM middleware.
classDiagram
class RefCatalogInterface
CombineZernikesBaseTask <|-- CombineZernikesMeanTask
CombineZernikesBaseTask <|-- CombineZernikesSigmaClipTask
CombineZernikesBaseTask *-- CombineZernikesBaseConfig
CombineZernikesBaseConfig <|-- CombineZernikesSigmaClipTaskConfig
CombineZernikesSigmaClipTask *-- CombineZernikesSigmaClipTaskConfig
DonutSourceSelectorTask *-- DonutSourceSelectorTaskConfig
DonutQuickMeasurementTask *-- DonutQuickMeasurementTaskConfig
GenerateDonutCatalogOnlineTaskConfig *-- DonutSourceSelectorTask
GenerateDonutCatalogOnlineTask *-- GenerateDonutCatalogOnlineTaskConfig
GenerateDonutDirectDetectTaskConfig *-- GenerateDonutDirectDetectTaskConnections
GenerateDonutDirectDetectTaskConfig *-- DonutSourceSelectorTask
GenerateDonutDirectDetectTaskConfig *-- DonutQuickMeasurementTask
GenerateDonutDirectDetectTask *-- GenerateDonutDirectDetectTaskConfig
GenerateDonutDirectDetectTask ..> DonutTemplateFactory
GenerateDonutCatalogWcsTaskConfig *-- DonutSourceSelectorTask
GenerateDonutCatalogWcsTaskConfig *-- GenerateDonutCatalogWcsTaskConnections
GenerateDonutCatalogWcsTask *-- GenerateDonutCatalogWcsTaskConfig
DonutStamps *-- DonutStamp
CutOutDonutsBaseTaskConfig <|-- CutOutDonutsUnpairedTaskConfig
CutOutDonutsBaseTask <|-- CutOutDonutsUnpairedTask
CutOutDonutsUnpairedTaskConfig *-- CutOutDonutsBaseTaskConnections
CutOutDonutsUnpairedTask *-- CutOutDonutsUnpairedTaskConfig
CutOutDonutsUnpairedTask ..> DonutStamps
CutOutDonutsBaseTaskConfig <|-- CutOutDonutsCwfsTaskConfig
CutOutDonutsBaseTask <|-- CutOutDonutsCwfsTask
CutOutDonutsCwfsTaskConfig *-- CutOutDonutsBaseTaskConnections
CutOutDonutsCwfsTask *-- CutOutDonutsCwfsTaskConfig
CutOutDonutsCwfsTask ..> DonutStamps
CutOutDonutsBaseTaskConfig <|-- CutOutDonutsScienceSensorTaskConfig
CutOutDonutsBaseTask <|-- CutOutDonutsScienceSensorTask
CutOutDonutsScienceSensorTaskConfig *-- CutOutDonutsBaseTaskConnections
CutOutDonutsScienceSensorTask *-- CutOutDonutsScienceSensorTaskConfig
CutOutDonutsBaseTaskConnections <|-- CutOutDonutsScienceSensorTaskConnections
CutOutDonutsScienceSensorTaskConfig *-- CutOutDonutsScienceSensorTaskConnections
CutOutDonutsScienceSensorTaskConfig *-- ExposurePairer
CutOutDonutsScienceSensorTask ..> DonutStamps
CutOutDonutsBaseTaskConfig *-- CutOutDonutsBaseTaskConnections
CutOutDonutsBaseTask *-- CutOutDonutsBaseTaskConfig
CutOutDonutsBaseTask ..> DonutStamps
CutOutDonutsBaseTask ..> DonutStamp
CalcZernikesTaskConfig *-- CombineZernikesSigmaClipTask
CalcZernikesTaskConfig *-- CalcZernikesTaskConnections
CalcZernikesTask *-- CalcZernikesTaskConfig
CalcZernikesTask ..> DonutStamps
CalcZernikesUnpairedTaskConfig *-- CombineZernikesSigmaClipTask
CalcZernikesUnpairedTaskConfig *-- CalcZernikesUnpairedTaskConnections
CalcZernikesUnpairedTask *-- CalcZernikesUnpairedTaskConfig
CalcZernikesUnpairedTask ..> DonutStamps
GenerateDonutFromRefitWcsTaskConfig *-- GenerateDonutFromRefitWcsTaskConnections
GenerateDonutCatalogWcsTaskConfig <|-- GenerateDonutFromRefitWcsTaskConfig
GenerateDonutFromRefitWcsTask *-- GenerateDonutFromRefitWcsTaskConfig
GenerateDonutCatalogWcsTask <|-- GenerateDonutFromRefitWcsTask
ExposurePairer *-- ExposurePairerConfig
TablePairer *-- TablePairerConfig
ReassignCwfsCutoutsTaskConfig *-- ReassignCwfsCutoutsTaskConnections
ReassignCwfsCutoutsTask *-- ReassignCwfsCutoutsTaskConfig
Class diagram of wep.task#
GenerateDonutDirectDetectTaskConnections: Connections setup for GenerateDonutDirectDetectTask to run in a pipeline with Gen 3 middleware.
GenerateDonutDirectDetectTaskConfig: Configuration setup for GenerateDonutDirectDetectTask.
GenerateDonutDirectDetectTask: Gen 3 middleware task to convolve the defocal postISRCCD exposure with a donut template and and create a catalog of donut sources for that exposure.
GenerateDonutCatalogOnlineTaskConfig: Configuration setup for GenerateDonutCatalogOnlineTask.
GenerateDonutCatalogOnlineTask: Task to take pointing information and create a catalog of donut sources in that pointing. Not a pipeline task.
GenerateDonutCatalogWcsTaskConnections: Connections setup for GenerateDonutCatalogWcsTask to run in a pipeline with Gen 3 middleware.
GenerateDonutCatalogWcsTaskConfig: Configuration setup for GenerateDonutCatalogWcsTask.
GenerateDonutCatalogWcsTask: Gen 3 middleware task to take the WCS from each detector in a postISRCCD exposure and create a catalog of donut sources for that exposure.
DonutSourceSelectorTaskConfig: Configuration setup for DonutSourceSelectorTask.
DonutSourceSelectorTask: Filter a reference catalog according to parameters specified in DonutSourceSelectorTaskConfig to create a catalog of donut sources acceptable for Zernike estimation.
DonutQuickMeasurementTaskConfig Configuration setup for DonutQuickMeasurementTask.
DonutQuickMeasurementTask: Run quick donut detection and measurement on exposures.
DonutStamp: Storage class for a single donut postage stamp and associated metadata.
DonutStamps: Gen 3 Butler readable storage class for a list of DonutStamp objects with helper functions to get metadata and to save DonutStamps object as FITS file.
RefCatalogInterface: Tools to pick out the pieces of a reference catalog in the Gen3 Butler that cover the sky area of a pointing.
CombineZernikesBaseTask: Base class for CombineZernikes tasks that combine the Zernike coefficients from multiple donuts on a detector into a single set of coefficients for the detector.
CombineZernikesBaseConfig: Configuration setup for CombineZernikesBaseTask.
CombineZernikesMeanTask: Gen 3 middleware task to combine the Zernike coefficients using an unweighted mean of coefficients from all donut pairs.
CombineZernikesSigmaClipTask: Gen 3 middleware task to combine the Zernike coefficients with a sigma clipping method that will remove donuts with outlier Zernike values from the final averaging of donut pairs.
CombineZernikesSigmaClipTaskConfig: Configuration setup for CombineZernikesSigmaClipTask.
EstimateZernikesBaseTask: Base class for EstimateZernikes subtasks that estimate the Zernike coefficients from donut images.
EstimateZernikesBaseConfig: Configuration for EstimateZernikesBase.
EstimateZernikesTieTask: Subtask that estimates Zernikes from stamps using the TIE algorithm.
EstimateZernikesTieConfig: Configuration for EstimateZernikesTieTask.
CalcZernikesTask: Gen 3 middleware task to calculate the zernikes from donut stamps that already exist in the butler.
CalcZernikesTaskConnections: Connections setup for CalcZernikesTask.
CalcZernikesTaskConfig: Configuration setup for CalcZernikesTask.
CutOutDonutsBaseTask: Base class for CutOutDonuts tasks.
CutOutDonutsBaseTaskConnections: Base connections class for CutOutDonuts tasks.
CutOutDonutsBaseTaskConfig: Base configuration class for CutOutDonuts tasks.
CutOutDonutsCwfsTask: Gen 3 middleware task to cut out donut stamps on LSST Corner Wavefront Sensors from donut catalogs produced by GenerateDonutCatalogs tasks.
CutOutDonutsCwfsTaskConfig: Configuration setup for CutOutDonutsCwfsTask.
CutOutDonutsScienceSensorTask: Gen 3 middleware task to cut out donut stamps on science sensors from donut catalogs produced by GenerateDonutCatalogs tasks.
CutOutDonutsScienceSensorTaskConnections: Connections setup for CutOutDonutsScienceSensorTask.
CutOutDonutsScienceSensorTaskConfig: Configuration setup for CutOutDonutsScienceSensorTask.
GenerateDonutFromRefitWcsTask: Optional pipeline task to take a catalog of detected donuts from GenerateDonutDirectDetectTask and fit a WCS to the input exposure and return a donut catalog using the new WCS and a reference catalog.
GenerateDonutFromRefitWcsTaskConnections: Connections setup for GenerateDonutFromRefitWcsTask.
GenerateDonutFromRefitWcsTaskConfig: Configuration setup for GenerateDonutFromRefitWcsTask.
GenerateDonutCatalogUtils: Common utility functions for the GenerateDonutCatalog…Tasks.
ExposurePairer: Subtask to pair intra- and extra-focal exposures heuristically.
TablePairer: Subtask to pair intra- and extra-focal exposures manually from a table. Use generatePairTable.py script as a useful starting point.
ReassignCwfsCutoutsTask: PipelineTask to pair intra and extra-focal donut stamps assigned to the same extra-focal dataId.
ReassignCwfsCutoutsTaskConfig: Configuration for ReassignCwfsCutoutsTask.
ReassignCwfsCutoutsTaskConnections: Connections for ReassignCwfsCutoutsTask.
wep.blitz#
classDiagram
DonutBlitzCornerTask *-- DonutBlitzCornerConfig
DonutBlitzCornerConfig *-- DonutBlitzCornerConnections
DonutBlitzCornerConfig *-- BlitzDetectTask
DonutBlitzCornerConfig *-- MeasureDonutCandidatesTask
DonutBlitzCornerConfig *-- CutDonutStampsTask
DonutBlitzCornerConfig *-- WavefrontFittingTask
DonutBlitzCornerConfig *-- DonutBlitzPlotTask
DonutBlitzCornerTask ..> CutoutResult
DonutBlitzCornerTask ..> WfGroupResult
DonutBlitzFamTask *-- DonutBlitzFamConfig
DonutBlitzFamConfig *-- DonutBlitzFamConnections
DonutBlitzFamConfig *-- BlitzDetectTask
DonutBlitzFamConfig *-- MeasureDonutCandidatesTask
DonutBlitzFamConfig *-- CutDonutStampsTask
DonutBlitzFamConfig *-- WavefrontFittingTask
DonutBlitzFamConfig *-- DonutBlitzPlotTask
DonutBlitzFamTask ..> FamDetectorResult
DonutBlitzPlotTask *-- DonutBlitzPlotConfig
DonutBlitzPlotConfig *-- DonutBlitzPlotConnections
DonutBlitzPlotOutputConnections <|-- DonutBlitzPlotConnections
DonutBlitzPlotOutputConnections <|-- DonutBlitzCornerConnections
DonutBlitzPlotOutputConnections <|-- DonutBlitzFamConnections
BlitzDetectTask *-- BlitzDetectConfig
MeasureDonutCandidatesTask *-- MeasureDonutCandidatesConfig
CutDonutStampsTask *-- CutDonutStampsConfig
WavefrontFittingTask *-- WavefrontFittingConfig
CutDonutStampsTask ..> Donut
WavefrontFittingTask ..> WfGroupResult
CutoutResult *-- Donut
CutoutResult *-- DetectorView
DetectorView *-- SourceSet
WfGroupResult *-- WfDonutResult
FamDetectorResult *-- CutoutResult
FamDetectorResult *-- WfGroupResult
FamDetectorResult *-- Donut
Class diagram of wep.blitz#
This module is a self-contained, LSSTCam-only wavefront estimation pipeline that fuses donut detection, source selection, stamp cutting, and Danish wavefront fitting into a single Gen 3 middleware task per operating mode.
Unlike the staged wep.task pipeline, which hands intermediate data products (catalogs, stamps) through the butler between separate tasks, blitz runs the whole chain in one quantum and parallelizes the per-detector and per-fit-group work across a fork-based process pool.
It emits a single per-donut catalog carrying selection metrics, fit results, Zernikes, stamp/model images, and all metadata needed to regenerate diagnostic plots.
Top-level pipeline tasks:
DonutBlitzCornerTask: Visit-level task that runs the end-to-end pipeline on whichever of the 8 corner wavefront sensors are present. All butler I/O happens in the parent process, and the loaded calibrations and reference catalogs are inherited by forked workers via copy-on-write.
DonutBlitzCornerConfig / DonutBlitzCornerConnections: Configuration and connections setup for
DonutBlitzCornerTask.DonutBlitzFamTask: Full-array-mode counterpart that processes the 189 science detectors of an intra/extra-focal exposure pair, one quantum per exposure
group. To bound memory, the parent resolves only deferred butler handles and each forked worker does its own I/O, fits, and frees the pixels.DonutBlitzFamConfig / DonutBlitzFamConnections: Configuration and connections setup for
DonutBlitzFamTask.DonutBlitzPlotTask: Subtask that draws the donut, wavefront, and focal-plane diagnostic plots, either inline during a run or standalone from a persisted
donutBlitzCornerResultscatalog.DonutBlitzPlotConfig / DonutBlitzPlotConnections / DonutBlitzPlotOutputConnections: Configuration and connections setup for
DonutBlitzPlotTask.
Pipeline stages (run as subtasks within the top-level tasks):
BlitzDetectTask: Template cross-correlation donut detection on a post-ISR exposure.
BlitzDetectConfig: Configuration setup for
BlitzDetectTask.MeasureDonutCandidatesTask: Aperture photometry and quality metrics for candidate donuts.
MeasureDonutCandidatesConfig: Configuration setup for
MeasureDonutCandidatesTask.CutDonutStampsTask: Cuts donut stamps and evaluates saturation, flux-fraction, and SNR rejection criteria.
CutDonutStampsConfig: Configuration setup for
CutDonutStampsTask.WavefrontFittingTask: Danish wavefront fitting, including donut grouping into joint fits and the per-group fitting worker.
WavefrontFittingConfig: Configuration setup for
WavefrontFittingTask.
Data structures passed between stages (in dataStructures):
Donut: One cut donut stamp with its selection and quality metrics.
CutoutResult: One exposure of one detector, as the cutout pipeline returns it.
DetectorView / SourceSet: One detector’s binned image and the per-stage overlay sources for the focal-plane selection plot.
WfDonutResult / WfGroupResult: The per-donut and per-group halves of a wavefront fit.
FamDetectorResult: The full-array per-detector work-unit envelope, bundling the cutout results, fit results, and timings a worker returns.
Internal support modules:
catalogBuilder: Assembles the per-donut output catalog and the focal-plane image and overlay tables shared by both modes.
cutoutPipeline: The per-detector cutout pipeline (ISR, background subtraction, detection, WCS refit, selection, stamp cutting) run inside each worker.
famPipeline: The full-array worker and the donut-pairing/grouping logic it uses.
zernikesTable: Rebuilds the legacy per-corner
zernikestable from blitz’s per-donut catalog for consumers of the non-blitz corner pipeline.forkPool: A fork-per-work-unit process pool plus the hang watchdog that guards it, surviving workers killed outright (e.g. by an OOM cgroup kill).
lsstCam: A frozen inventory of the LSSTCam geometry and model facts blitz depends on; imports nothing from blitz.
utils: Constants and helpers shared by more than one blitz module, including the copy-on-write store that passes preloaded inputs to forked workers.
wep.utils#
This module contains utility functions that are used elsewhere in WEP.
enumUtils: Enum definitions and related functions.
ioUtils: Functions for reading and writing files.
maskUtils: Functions for generating a mask model for an instrument.
taskUtils: Functions for running command line tasks from a python script.
zernikeUtils: Functions for evaluating and fitting Zernike polynomials.
plotUtils: Functions for plotting results.
miscUtils: Miscellaneous utility functions.
testUtils: Functions for testing.
Python API reference#
This section is autogenerated from docstrings.
lsst.ts.wep Package#
Classes#
Class to detect donuts directly from an out of focus image by convolution with a template image. |
|
A class estimating donut diameters directly from post_isr_image. |
|
|
Class to hold a donut image along with metadata. |
|
Class for mapping the pupil to the image plane, and vice versa. |
|
Object with relevant geometry of the primary mirror and focal plane. |
lsst.ts.wep.centroid Package#
Classes#
CentroidDefault child class to get the centroid of donut by convolution with a template donut image. |
|
Default Centroid class. |
|
Factory for creating the centroid find object to calculate the centroid of donut. |
|
CentroidDefault child class to get the centroid of donut by the Otsu's method. |
|
CentroidDefault child class to get the centroid of donut by the random walk model. |
lsst.ts.wep.estimation Package#
Classes#
|
Wavefront estimation using a PyTorch model. |
|
Wavefront estimation algorithm class for Danish. |
|
Per-observation telescope pointing state for wavefront estimation. |
|
Wavefront estimation algorithm class for the TIE solver. |
Base class for wavefront estimation algorithms |
|
Factory for loading different wavefront estimation algorithms. |
|
|
Class providing a high-level interface for wavefront estimation. |
lsst.ts.wep.deblend Package#
Functions#
|
Evaluate the function. |
|
Optimization of the Nelder-Mead algorithm. |
Classes#
DeblendDefault child class to do the deblending by the adaptive threshold method. |
|
Default deblend class. |
|
Factory for creating the deblend donut object to deblend the bright star donut from neighboring stars. |
lsst.ts.wep.task Package#
Functions#
|
Add visit info from the exposure object to the catalog QTable metadata. |
|
Sigma clip donuts whose blur (fwhm) is an outlier, then re-average. |
|
Reformat afwCatalog into an astropy QTable sorted by flux with the brightest objects at the top. |
|
Computes the inverse of |
|
kth-root-of-(1/innerFrac) geometric ladder, clipped to [dMin, dMax]. |
|
Calculate a multidimensional maximum filter. |
|
Find the next fast size of input data to |
|
Divide each stamp's |
|
Compute the N-D discrete Fourier Transform for real input. |
|
Match the detector area to the reference catalog and then run the LSST DM reference selection task. |
Classes#
|
Special type indicating an unconstrained type. |
|
|
|
Neural network-based Zernike estimation task using TARTS. |
|
Configuration for CalcZernikesNeuralTask. |
|
|
|
Base class for calculating Zernike coeffs from pairs of DonutStamps. |
|
|
|
|
|
Calculate Zernikes using unpaired donuts. |
|
|
|
|
|
|
|
Base class for algorithms that combine Zernikes from the individual pairs of donuts on a detector into a single array of Zernike values for that detector. |
|
Combine the raw Zernike measurements into an average measurement with an unweighted mean. |
|
Combine the raw Zernike measurements into an average measurement by rejecting outliers with sigma clipping. |
|
Configuration for combining Zernike coefficients with sigma clipping. |
|
Configuration for CombineZernikesWeightedTask. |
|
Combine Zernike coefficients using sigma clipping then weighted average. |
|
Base class for CutOutDonuts tasks. |
|
|
|
|
|
Cut out the donut postage stamps on corner wavefront sensors (CWFS) |
|
|
|
Run Zernike Estimation in full-array mode (FAM) |
|
|
|
Precomputed disk templates + FFTs for a fixed binned shape. |
|
Configuration for |
|
Detect donuts and estimate their diameters via disk cross-correlation. |
|
|
|
|
|
Donut Source Selector that uses a nearest neighbors radius query to find all donuts within the pixel radius set in the config. |
|
|
|
Single donut stamp |
|
Donut Stamp Selector uses information about donut stamp calculated at the stamp cutting out stage to select those that specified criteria. |
|
|
|
Holds a list of DonutStamp objects with additional functions to get metadata as well as save as FITS files. |
|
AiDonut-specific configuration parameters for Zernike estimation. |
|
Estimate Zernike coefficients using the AiDonut algorithm. |
|
|
|
Base class for estimating Zernike coefficients from DonutStamps. |
|
Danish-specific configuration parameters for Zernike estimation. |
|
Estimate Zernike coefficients using the TIE algorithm. |
|
TIE-specific configuration parameters for Zernike estimation. |
|
Estimate Zernike coefficients using the TIE algorithm. |
|
|
|
|
|
|
|
Construct a source catalog from reference catalogs and pointing information. |
|
Configuration for GenerateDonutCatalogOnlineTask. |
|
Create a WCS from boresight info and then use this with a reference catalog to select sources on the detectors for AOS. |
|
Configuration settings for GenerateDonutCatalogWcsTask. |
|
Specify the pipeline connections needed for GenerateDonutCatalogWcsTask. |
|
Generate donut template and convolve with the defocal image to detect sources on the detectors for AOS. |
|
Configuration settings for GenerateDonutDirectDetectTask. |
Specify the pipeline connections needed for GenerateDonutDirectDetectTask. |
|
|
Fit a new WCS to the image from a direct detect Donut Catalog and return the input exposure with the new WCS attached. |
|
Configuration settings for GenerateDonutCatalogWcsTask. |
Specify the pipeline inputs and outputs needed for FitDonutWcsTask. |
|
|
|
|
|
|
|
|
|
|
Estimate LATISS Zernikes from raws in a single quantum. |
|
Configuration for LatissMonolithTask. |
|
Connections for LatissMonolithTask. |
|
A class to represent tables of heterogeneous data. |
|
Cut out the donut postage stamps on corner wavefront sensors (CWFS) |
|
|
|
|
|
Class to provide tools to interact with reference catalog in Butler repository and select pieces of the catalog that cover the sky area of a pointing. |
|
All the operations on a read-only sequence. |
|
|
|
lsst.ts.wep.blitz Package#
Functions#
|
Build one |
Classes#
|
Config for template cross-correlation donut detection. |
|
Detect donuts via annular template cross-correlation. |
|
Config for cutting donut stamps and evaluating rejection criteria. |
|
Cut donut stamps and evaluate rejection criteria. |
|
One exposure of one detector, as |
|
One detector's binned image and overlay sources, for the plot task. |
|
One cut donut stamp with its selection/quality metrics. |
|
Configuration for DonutBlitzCornerTask. |
|
Pipeline connections for DonutBlitzCornerTask. |
|
Blitz WEP task for the corner wavefront sensors. |
|
Configuration for DonutBlitzFamTask. |
|
Pipeline connections for DonutBlitzFamTask. |
|
Full-array-mode WEP task: one intra/extra exposure pair, 189 detectors. |
|
Configuration for DonutBlitzPlotTask. |
|
Pipeline connections for DonutBlitzPlotTask. |
|
The three plot datasets, declared once for both of their producers. |
|
PipelineTask regenerating diagnostic plots from a blitz catalog. |
|
One full-array detector, as |
|
Config for donut candidate flux measurement and quality selection. |
|
Measure aperture flux and quality metrics for candidate donuts. |
|
One stage's source positions on one detector, for the overlay plot. |
|
Configuration for wavefront fitting via Danish algorithm. |
|
Fit wavefront aberrations from grouped donut stamps with danish. |
|
One donut's wavefront-fit outputs, produced by |
|
One fit group's outputs, produced by |
lsst.ts.wep.utils Package#
Functions#
|
Bin a 2d array by averaging over non-overlapping blocks. |
|
Calculate the power spectrum of the stamp image. |
|
Center the image by correlating with the template. |
|
Check that Noll indices meet requirements. |
|
Compute the SHA-256 hex digest of a file. |
|
Apply conditional sigma clipping to an array. |
|
Configure the class. |
|
Convert a dictionary (as from astropy metadata added by addVisitInfoToCatTable) back into a VisitInfo object. |
|
Convert algorithm history to be saved in task metadata. |
|
Convert the history from the metadata back to original format. |
|
Convert Zernike amplitudes to quadrature contribution to the PSF FWHM. |
|
Create a GalSim Zernike object with the given coefficients. |
|
Create a donut template for the given detector. |
|
Create a basis of Zernike polynomials. |
|
Create a basis of Zernike gradient polynomials. |
Set OpenBLAS, MKL, and OMP to use only one thread. |
|
|
Extract the central image. |
|
Fit the mask model for the telescope. |
|
Forward model a pair of donuts. |
|
Get the proper camera object for the donuts. |
Get the directory of configuration files. |
|
Get the path of module. |
|
|
Split Noll indices 1..jmax into azimuthal pairs and singles. |
Get the obs_lsst command line task configuration directory. |
|
|
Get the gradient of the PSF FWHM with respect to each Zernike. |
|
Get the instrument to use for the task. |
|
Return the parity of the Zernike polynomials (Noll index >= 4). |
|
Inserts sparse values into dense array of Zeroes. |
|
Down-select the values array according to requested Noll indices. |
|
Merge the passed keyword arguments with the values stored in the file. |
|
Extend the boundary of image. |
|
Plot the residuals between the ImageMapper and Batoid. |
|
Plot the results of the mask fitting. |
|
Plot the mask elements as circles. |
|
Plot a roundtrip of the ImageMapper |
|
Plot the convergence of Zernike coefficients stored in the history. |
|
Plot the Zernike polynomials (zk). |
|
Return mask indicating if each point in the grid is inside the polygon. |
|
Print the yaml-formatted mask model. |
|
Prune the mask model so only necessary elements remain. |
|
Read the config yaml file and return the corresponding dictionary. |
|
Read the PhoSim setting data (segmentation or focal plane layout). |
Resolve a relative config path into an absolute path. |
|
|
Create a 2-d rotation matrix for given angle. |
|
Run the program w/o arguments. |
|
Search the position of donut on image. |
|
Compute a model file's SHA-256 and verify it against an expected value. |
|
Format a command line call to clean up the data created by a pipeline. |
|
Write the content to file. |
|
Format a command line call to run a Gen 3 pipeline task. |
|
Evaluate the Zernike series. |
|
Fit Zernike polynomials to the surface. |
|
Evaluate the gradient of the Zernike series. |
Classes#
|
|
|
|
|
|
|
|
|
|
|
A dictionary that aliases Enums and their corresponding values. |
|
|
|
Specifies whether the image is on the image or pupil plane. |
|
Contributing#
To contribute, please start a new pull request on GitHub. Feature requests shall be filled in JIRA with ts_aos as the component. In all cases, reaching out to the contacts for this module is recommended.