lsst.meas.algorithms g728939a55c+bb78fe68a6
Loading...
Searching...
No Matches
Classes | Functions | Variables
lsst.meas.algorithms.convertReferenceCatalog Namespace Reference

Classes

class  ConvertReferenceCatalogConfig
 
class  ConvertReferenceCatalogTask
 
class  DatasetConfig
 

Functions

 addRefCatMetadata (catalog)
 
 _makeSchema (filterNameList, *addCentroid=False, addIsPhotometric=False, addIsResolved=False, addIsVariable=False, fullPositionInformation=False)
 
 build_argparser ()
 
 run_convert (outputDir, configFile, fileglob)
 
 main ()
 

Variables

int LATEST_FORMAT_VERSION = 2
 

Detailed Description

Convert an external reference catalog into the hierarchical triangular mesh
(HTM) sharded LSST-style format, to be ingested into the butler.

Function Documentation

◆ _makeSchema()

lsst.meas.algorithms.convertReferenceCatalog._makeSchema (   filterNameList,
addCentroid = False,
  addIsPhotometric = False,
  addIsResolved = False,
  addIsVariable = False,
  fullPositionInformation = False 
)
protected
Make a standard schema for reference object catalogs.

Parameters
----------
filterNameList : `list` of `str`
    List of filter names. Used to create <filterName>_flux fields.
addCentroid : `bool`
    If True then add fields "centroid" and "hasCentroid".
addIsPhotometric : `bool`
    If True then add field "photometric".
addIsResolved : `bool`
    If True then add field "resolved".
addIsVariable : `bool`
    If True then add field "variable".
fullPositionInformation : `bool`
    If True then add epoch, proper motion, and parallax, along with the
    full five-dimensional covariance between ra and dec coordinates,
    proper motion in ra and dec, and parallax.

Returns
-------
schema : `lsst.afw.table.Schema`
    Schema for reference catalog, an
    `lsst.afw.table.SimpleCatalog`.

Definition at line 69 of file convertReferenceCatalog.py.

◆ addRefCatMetadata()

lsst.meas.algorithms.convertReferenceCatalog.addRefCatMetadata (   catalog)
Add metadata to a new (not yet populated) reference catalog.

Parameters
----------
catalog : `lsst.afw.table.SimpleCatalog`
    Catalog to which metadata should be attached.  Will be modified
    in-place.

Definition at line 53 of file convertReferenceCatalog.py.

◆ build_argparser()

lsst.meas.algorithms.convertReferenceCatalog.build_argparser ( )
Construct an argument parser for the ``convertReferenceCatalog`` script.

Returns
-------
argparser : `argparse.ArgumentParser`
    The argument parser that defines the ``convertReferenceCatalog``
    command-line interface.

Definition at line 615 of file convertReferenceCatalog.py.

◆ main()

lsst.meas.algorithms.convertReferenceCatalog.main ( )

Definition at line 676 of file convertReferenceCatalog.py.

◆ run_convert()

lsst.meas.algorithms.convertReferenceCatalog.run_convert (   outputDir,
  configFile,
  fileglob 
)
Run `ConvertReferenceCatalogTask` on the input arguments.

Parameters
----------
outputDir : `str`
    Path to write the output files to.
configFile : `str`
    File specifying the ``ConvertReferenceCatalogConfig`` fields.
fileglob : `str`
    Quoted glob for the files to be read in and converted.

Definition at line 642 of file convertReferenceCatalog.py.

Variable Documentation

◆ LATEST_FORMAT_VERSION

int lsst.meas.algorithms.convertReferenceCatalog.LATEST_FORMAT_VERSION = 2

Definition at line 50 of file convertReferenceCatalog.py.