lsst.fgcmcal g741ed703d4+07c6f2a639
Loading...
Searching...
No Matches
lsst.fgcmcal.fgcmBuildFromIsolatedStars.FgcmBuildFromIsolatedStarsTask Class Reference
Inheritance diagram for lsst.fgcmcal.fgcmBuildFromIsolatedStars.FgcmBuildFromIsolatedStarsTask:
lsst.fgcmcal.fgcmBuildStarsBase.FgcmBuildStarsBaseTask

Public Member Functions

 __init__ (self, initInputs=None, **kwargs)
 runQuantum (self, butlerQC, inputRefs, outputRefs)
 run (self, *, camera, visit_summary_handle_dict, isolated_star_cat_handle_dict, isolated_star_source_handle_dict, lookup_table_handle)
Public Member Functions inherited from lsst.fgcmcal.fgcmBuildStarsBase.FgcmBuildStarsBaseTask
 __init__ (self, initInputs=None, **kwargs)
 fgcmMakeAllStarObservations (self, groupedHandles, visitCat, sourceSchema, camera, calibFluxApertureRadius=None)
 fgcmMakeVisitCatalog (self, camera, groupedHandles, useScienceDetectors=False)
 fgcmMatchStars (self, visitCat, obsCat, lutHandle=None)

Static Public Attributes

 ConfigClass = FgcmBuildFromIsolatedStarsConfig
bool canMultiprocess = False

Protected Member Functions

 _make_all_star_obs_from_isolated_stars (self, isolated_star_cat_handle_dict, isolated_star_source_handle_dict, visit_cat, camera, calib_flux_aperture_radius=None, use_science_detectors=False, input_star_ids=None, return_observations=False)
 _density_downsample (self, fgcm_obj)
 _mark_reserve_stars (self, fgcm_obj)
 _associate_reference_stars (self, lookup_table_handle, visit_cat, fgcm_obj)
 _compute_delta_aper_summary_statistics (self, visit_cat, star_obs)
Protected Member Functions inherited from lsst.fgcmcal.fgcmBuildStarsBase.FgcmBuildStarsBaseTask
 _fillVisitCatalog (self, visitCat, groupedHandles, defaultPixelScale)
 _makeSourceMapper (self, sourceSchema)
 _makeFgcmVisitSchema (self, nCcd)
 _makeFgcmObjSchema (self)
 _makeFgcmObsSchema (self)
 _makeFgcmRefSchema (self, nReferenceBands)
 _getReferenceFilterNames (self, visitCat, stdFilterDict, stdLambdaDict)

Static Protected Attributes

str _DefaultName = "fgcmBuildFromIsolatedStars"

Additional Inherited Members

Public Attributes inherited from lsst.fgcmcal.fgcmBuildStarsBase.FgcmBuildStarsBaseTask
 fgcmLoadReferenceCatalog

Detailed Description

Build star catalog for FGCM global calibration, using the isolated star catalogs.

Member Function Documentation

◆ _associate_reference_stars()

lsst.fgcmcal.fgcmBuildFromIsolatedStars.FgcmBuildFromIsolatedStarsTask._associate_reference_stars ( self,
lookup_table_handle,
visit_cat,
fgcm_obj )
protected
Associate fgcm isolated stars with reference stars.

Parameters
----------
lookup_table_handle : `lsst.daf.butler.DeferredDatasetHandle`, optional
    Data reference to fgcm look-up table (used if matching reference stars).
visit_cat : `lsst.afw.table.ExposureCatalog`
    Catalog of per-visit data.
fgcm_obj : `astropy.table.Table`
    Catalog of per-star ids and positions

Returns
-------
ref_cat : `astropy.table.Table`
    Catalog of reference stars matched to fgcm stars.

◆ _compute_delta_aper_summary_statistics()

lsst.fgcmcal.fgcmBuildFromIsolatedStars.FgcmBuildFromIsolatedStarsTask._compute_delta_aper_summary_statistics ( self,
visit_cat,
star_obs )
protected
Compute delta aperture summary statistics (per visit).

Parameters
----------
visit_cat : `lsst.afw.table.ExposureCatalog`
    Catalog of per-visit data.
star_obs : `astropy.table.Table`
    Catalog of individual star observations.

◆ _density_downsample()

lsst.fgcmcal.fgcmBuildFromIsolatedStars.FgcmBuildFromIsolatedStarsTask._density_downsample ( self,
fgcm_obj )
protected
Downsample stars according to density.

Parameters
----------
fgcm_obj : `astropy.table.Table`
    Catalog of per-star ids and positions.

Returns
-------
star_ids : `np.ndarray`
    Array of downsampled isolated star ids.

◆ _make_all_star_obs_from_isolated_stars()

lsst.fgcmcal.fgcmBuildFromIsolatedStars.FgcmBuildFromIsolatedStarsTask._make_all_star_obs_from_isolated_stars ( self,
isolated_star_cat_handle_dict,
isolated_star_source_handle_dict,
visit_cat,
camera,
calib_flux_aperture_radius = None,
use_science_detectors = False,
input_star_ids = None,
return_observations = False )
protected
Make all the star observations from isolated star catalogs.

This is intended to be run in two passes. In the first pass, a limited
set of columns is read in (only what is required to select potential
"good stars") and the stars are returned. In the second pass, the full
set of columns is read and only stars that are in input_star_ids
are put into the aggregated tables.

Parameters
----------
isolated_star_cat_handle_dict : `dict` [`int`, `lsst.daf.butler.DeferredDatasetHandle`]
    Isolated star catalog dataset handles, with the tract as key.
isolated_star_source_handle_dict : `dict` [`int`, `lsst.daf.butler.DeferredDatasetHandle`]
    Isolated star source dataset handles, with the tract as key.
visit_cat : `lsst.afw.table.ExposureCatalog`
    Catalog of per-visit data.
camera : `lsst.afw.cameraGeom.Camera`
    The camera object.
calib_flux_aperture_radius : `float`, optional
    Radius for the calibration flux aperture.
use_science_detectors : `bool`, optional
    Only use science detectors?
input_star_ids : `np.ndarray`, optional
    Array of star IDs to use. Used for second pass and
    full load.
return_observations : `bool`, optional
    Return the observations? Should be False for first pass.

Returns
-------
fgcm_obj : `astropy.table.Table`
    Catalog of ids and positions for each star.
star_obs : `astropy.table.Table`
    Catalog of individual star observations if
    return_observations is True.

◆ _mark_reserve_stars()

lsst.fgcmcal.fgcmBuildFromIsolatedStars.FgcmBuildFromIsolatedStarsTask._mark_reserve_stars ( self,
fgcm_obj )
protected
Run the star reservation task to flag reserved stars.

Parameters
----------
fgcm_obj : `astropy.table.Table`
    Catalog of per-star ids and positions.

◆ run()

lsst.fgcmcal.fgcmBuildFromIsolatedStars.FgcmBuildFromIsolatedStarsTask.run ( self,
* ,
camera,
visit_summary_handle_dict,
isolated_star_cat_handle_dict,
isolated_star_source_handle_dict,
lookup_table_handle )
Run the fgcmBuildFromIsolatedStarsTask.

Parameters
----------
camera : `lsst.afw.cameraGeom.Camera`
    Camera object.
visit_summary_handle_dict : `dict` [`int`, [`lsst.daf.butler.DeferredDatasetHandle`]]
    Visit summary dataset handles, with the visit as key.
isolated_star_cat_handle_dict : `dict` [`int`, `lsst.daf.butler.DeferredDatasetHandle`]
    Isolated star catalog dataset handles, with the tract as key.
isolated_star_source_handle_dict : `dict` [`int`, `lsst.daf.butler.DeferredDatasetHandle`]
    Isolated star source dataset handles, with the tract as key.
lookup_table_handle : `lsst.daf.butler.DeferredDatasetHandle`
    Data reference to fgcm look-up table.

Returns
-------
struct : `lsst.pipe.base.struct`
    Catalogs for persistence, with attributes:

    ``fgcm_visit_catalog``
        Catalog of per-visit data (`lsst.afw.table.ExposureCatalog`).
    ``fgcm_star_observations``
        Catalog of individual star observations (`astropy.table.Table`).
    ``fgcm_star_ids``
        Catalog of per-star ids and positions (`astropy.table.Table`).
    ``fgcm_reference_stars``
        Catalog of reference stars matched to fgcm stars (`astropy.table.Table`).

The documentation for this class was generated from the following file:
  • python/lsst/fgcmcal/fgcmBuildFromIsolatedStars.py