GbdesAstrometricFitTask#

class lsst.drp.tasks.gbdesAstrometricFit.GbdesAstrometricFitTask(**kwargs)#

Bases: PipelineTask

Calibrate the WCS across multiple visits of the same field using the GBDES package.

Methods Summary

make_yaml(inputVisitSummary[, inputFile, ...])

Make a YAML-type object that describes the parameters of the fit model.

run(inputCatalogRefs, inputVisitSummaries[, ...])

Run the WCS fit for a given set of visits

runQuantum(butlerQC, inputRefs, outputRefs)

Do butler IO and transform to provide in memory objects for tasks run method.

Methods Documentation

make_yaml(inputVisitSummary, inputFile=None, inputCameraModel=None)#

Make a YAML-type object that describes the parameters of the fit model.

Parameters#

inputVisitSummarylsst.afw.table.ExposureCatalog

Catalog with per-detector summary information.

inputFilestr

Path to a file that contains a basic model.

inputCameraModeldict [str, np.ndarray], optional

Parameters to use for the device part of the model.

Returns#

inputYamlwcsfit.YAMLCollector

YAML object containing the model description.

inputDictdict [str, str]

Dictionary containing the model description.

run(inputCatalogRefs, inputVisitSummaries, instrumentName='', refEpoch=None, refObjectLoader=None, inputCameraModel=None, colorCatalog=None, inputCamera=None, nCores=1)#

Run the WCS fit for a given set of visits

Parameters#

inputCatalogRefslist [DeferredDatasetHandle]

List of handles pointing to visit-level source tables.

inputVisitSummarieslist [lsst.afw.table.ExposureCatalog]

List of catalogs with per-detector summary information.

instrumentNamestr, optional

Name of the instrument used. This is only used for labelling.

refEpochfloat

Epoch of the reference objects in MJD.

refObjectLoaderinstance of

lsst.meas.algorithms.loadReferenceObjects.ReferenceObjectLoader Reference object loader instance.

inputCameraModeldict [str, np.ndarray], optional

Parameters to use for the device part of the model.

colorCataloglsst.afw.table.SimpleCatalog

Catalog containing object coordinates and magnitudes.

inputCameralsst.afw.cameraGeom.Camera, optional

Camera to be used as template when constructing new camera.

nCoresint, optional

Number of cores to use during WCS fit.

Returns#

resultlsst.pipe.base.Struct
outputWcsslist [lsst.afw.table.ExposureCatalog]

List of exposure catalogs (one per visit) with the WCS for each detector set by the new fitted WCS.

fitModelwcsfit.WCSFit

Model-fitting object with final model parameters.

outputCatalogpyarrow.Table

Catalog with fit residuals of all sources used.

starCatalogpyarrow.Table

Catalog with best-fit positions of the objects fit.

modelParamsdict

Parameters and covariance of the best-fit WCS model.

cameraModelParamsdict [str, np.ndarray]

Parameters of the device part of the model, in the format needed as input for future runs.

colorParamsdict [int, np.ndarray]

DCR parameters fit in RA and Dec directions for each visit.

cameralsst.afw.cameraGeom.Camera

Camera object constructed from the per-detector model.

runQuantum(butlerQC, inputRefs, outputRefs)#

Do butler IO and transform to provide in memory objects for tasks run method.

Parameters#

butlerQCQuantumContext

A butler which is specialized to operate in the context of a lsst.daf.butler.Quantum.

inputRefsInputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined input/prerequisite connections.

outputRefsOutputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined output connections.