lsst.meas.algorithms
20.0.0-14-g05f4b37e+5ec167a87d
|
Read an object catalog from a FITS table. More...
Public Member Functions | |
def | run (self, filename) |
Static Public Attributes | |
ConfigClass = ReadFitsCatalogConfig | |
Read an object catalog from a FITS table.
Read an object catalog from a FITS table. Designed to read foreign catalogs so they can be written out in a form suitable for IngestIndexedReferenceTask.
Run the following code from the main directory of meas_algorithms:
from lsst.meas.algorithms.readFitsCatalogTask import ReadFitsCatalogTask filePath = "tests/data/testReadFitsCatalog.fits" task = ReadFitsCatalogTask() catalogArray = task.run(filePath)
The resulting catalogArray
is a numpy structured array containing fields such as "name", "ra" and "dec" and a few rows of data. For more complicated cases config parameters allow you to rename columns and choose which HDU to read.
Definition at line 54 of file readFitsCatalogTask.py.
def lsst.meas.algorithms.readFitsCatalogTask.ReadFitsCatalogTask.run | ( | self, | |
filename | |||
) |
Read an object catalog from the specified FITS file @param[in] filename path to FITS file @return a numpy structured array containing the specified columns
Definition at line 95 of file readFitsCatalogTask.py.
|
static |
Definition at line 93 of file readFitsCatalogTask.py.