GbdesAstrometricFitTask#
- class lsst.drp.tasks.gbdesAstrometricFit.GbdesAstrometricFitTask(**kwargs)#
Bases:
PipelineTaskCalibrate 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
runmethod.Methods Documentation
- make_yaml(inputVisitSummary, inputFile=None, inputCameraModel=None)#
Make a YAML-type object that describes the parameters of the fit model.
Parameters#
- inputVisitSummary
lsst.afw.table.ExposureCatalog Catalog with per-detector summary information.
- inputFile
str Path to a file that contains a basic model.
- inputCameraModel
dict[str,np.ndarray], optional Parameters to use for the device part of the model.
Returns#
- inputYaml
wcsfit.YAMLCollector YAML object containing the model description.
- inputDict
dict[str,str] Dictionary containing the model description.
- inputVisitSummary
- 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#
- inputCatalogRefs
list[DeferredDatasetHandle] List of handles pointing to visit-level source tables.
- inputVisitSummaries
list[lsst.afw.table.ExposureCatalog] List of catalogs with per-detector summary information.
- instrumentName
str, optional Name of the instrument used. This is only used for labelling.
- refEpoch
float Epoch of the reference objects in MJD.
- refObjectLoaderinstance of
lsst.meas.algorithms.loadReferenceObjects.ReferenceObjectLoaderReference object loader instance.- inputCameraModel
dict[str,np.ndarray], optional Parameters to use for the device part of the model.
- colorCatalog
lsst.afw.table.SimpleCatalog Catalog containing object coordinates and magnitudes.
- inputCamera
lsst.afw.cameraGeom.Camera, optional Camera to be used as template when constructing new camera.
- nCores
int, optional Number of cores to use during WCS fit.
Returns#
- result
lsst.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.WCSFitModel-fitting object with final model parameters.
outputCatalogpyarrow.TableCatalog with fit residuals of all sources used.
starCatalogpyarrow.TableCatalog with best-fit positions of the objects fit.
modelParamsdictParameters 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.CameraCamera object constructed from the per-detector model.
- inputCatalogRefs
- runQuantum(butlerQC, inputRefs, outputRefs)#
Do butler IO and transform to provide in memory objects for tasks
runmethod.Parameters#
- butlerQC
QuantumContext A butler which is specialized to operate in the context of a
lsst.daf.butler.Quantum.- inputRefs
InputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined input/prerequisite connections.- outputRefs
OutputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined output connections.
- butlerQC