FgcmOutputProductsTask¶
FgcmOutputProductsTask uses the output from FgcmFitCycleTask to generate a full suite of output products (photometric calibration files, fgcm_photoCalib; atmosphere transmissions, transmission_atmosphere_fgcm; and standard star calibrated reference catalogs ref_cat) for use in downstream processing.
This is the fourth and final task in a typical fgcmcal processing chain. The first is FgcmMakeLutTask, the second is FgcmBuildStarsTableTask or FgcmBuildStarsTask, and the third is FgcmFitCycleTask.
FgcmOutputProductsTask is available as a command-line task, fgcmOutputProducts.py.
Processing summary¶
FgcmOutputProductsTask reads in outputs from FgcmFitCycleTask, with the cycleNumber specified in the config file, translates these tables to formats used by coaddition and other downstream processing.
fgcmOutputProducts.py command-line interface¶
Note that no --id arguments are used by fgcmOutputProducts.py.
fgcmOutputProducts.py REPOPATH [@file [@file2 ...]] [--output OUTPUTREPO | --rerun RERUN] [--config cycleNumber=finalCycleNumber] [other options]
Key arguments:
REPOPATHThe input Butler repository’s URI or file path.
Key options:
--config cycleNumber=finalCycleNumer:The
cycleNumberused for theisFinalCyclerun of FgcmFitCycleTask
See also
See Command-line task argument reference for details and additional options.
Python API summary¶
from lsst.fgcmcal.fgcmOutputProducts import FgcmOutputProductsTask
-
class
(butler=None, **kwargs)FgcmOutputProductsTask Output products from FGCM global calibration
...
-
attribute
config Access configuration fields and retargetable subtasks.
-
method
(dataRefDict, physicalFilterMap, returnCatalogs=True, butler=None)run Run the output products task
...
-
method
(butler)runDataRef Make FGCM output products for use in the stack
...
See also
See the FgcmOutputProductsTask API reference for complete details.
Butler datasets¶
When run as the fgcmOutputProducts.py command-line task, or directly through the runDataRef method, FgcmOutputProductsTask obtains datasets from the input Butler data repository and persists outputs to the output Butler data repository.
Note that configurations for FgcmOutputProductsTask, and its subtasks, affect what datasets are persisted and what their content is.
Input datasets¶
fgcmStandardStarsCatalog of standard stars from fit.
fgcmZeropointsCatalog of zero-point information.
fgcmAtmosphereParametersCatalog of atmosphere parameters.
fgcmBuildStars_configorfgcmBuildStarsTable_configConfiguration of task used to build stars for the
fgcmcalrun. Only one should be available depending on the specific task used.fgcmFitCycle_configConfiguration of FgcmFitCycleTask used for the final fit cycle.
Output datasets¶
fgcm_starsReference catalog of standard stars.
fgcm_photoCalibOne
fgcm_photoCalibphotometric calibration file is output for each visit / ccd.transmission_atmosphere_fgcmOne atmospheric transmission curve is output for each visit.
The reference catalog (fgcm_stars) is an lsst.afw.table.SimpleCatalog that can be used as a reference catalog, including band_flux and band_fluxErr measurements per band (in nJy), as well as additional information including band_nGood (the number of photometric observations per band), band_nTotal (the total number of observations per band), and band_nPsfCandidate (the number of observations per band that were flagged as PSF candidates).
Retargetable subtasks¶
photoCal¶
- Default
- Field type
task to perform ‘absolute’ calibration
refObjLoader¶
- Default
lsst.meas.algorithms.loadIndexedReferenceObjects.LoadIndexedReferenceObjectsTask- Field type
reference object loader for ‘absolute’ photometric calibration
Configuration fields¶
connections¶
- Data type
lsst.pipe.base.config.Connections- Field type
Configurations describing the connections of the PipelineTask to datatypes
cycleNumber¶
Final fit cycle from FGCM fit
datasetConfig¶
- Data type
lsst.meas.algorithms.ingestIndexReferenceTask.DatasetConfig- Field type
Configuration for writing/reading ingested catalog
doApplyMeanChromaticCorrection¶
Apply the mean chromatic correction to the zeropoints?
doAtmosphereOutput¶
Output atmospheres in transmission_atmosphere_fgcm format
doComposeWcsJacobian¶
Compose Jacobian of WCS with fgcm calibration for output photoCalib?
doRefcatOutput¶
Output standard stars in reference catalog format
doReferenceCalibration¶
Transfer ‘absolute’ calibration from reference catalog? This afterburner step is unnecessary if reference stars were used in the full fit in FgcmFitCycleTask.
doZeropointOutput¶
Output zeropoints in fgcm_photoCalib format
physicalFilterMap¶
Mapping from ‘physicalFilter’ to band.
referenceMinMatch¶
Minimum number of stars matched to reference catalog to be used in statistics
referencePixelizationMinStars¶
Minimum number of stars per healpix pixel to select for comparisonto the specified reference catalog
referencePixelizationNPixels¶
Number of healpix pixels to sample to do comparison. Doing too many will take a long time and not yield any more precise results because the final number is the median offset (per band) from the set of pixels.
referencePixelizationNside¶
Healpix nside to pixelize catalog to compare to reference catalog
saveMetadata¶
Flag to enable/disable metadata saving for a task, enabled by default.
Examples¶
See the cookbook for worked examples.