lsst.meas.algorithms  13.0-18-gc4ad422+4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
lsst.meas.algorithms.readFitsCatalogTask.ReadFitsCatalogTask Class Reference

Read an object catalog from a FITS table. More...

Inheritance diagram for lsst.meas.algorithms.readFitsCatalogTask.ReadFitsCatalogTask:

Public Member Functions

def run
 

Static Public Attributes

 ConfigClass = ReadFitsCatalogConfig
 

Detailed Description

Read an object catalog from a FITS table.

Contents

Description

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.

Task initialisation

Configuration parameters

See ReadFitsCatalogConfig

A complete example of using ReadFitsCatalogTask

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 57 of file readFitsCatalogTask.py.

Member Function Documentation

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 98 of file readFitsCatalogTask.py.

Member Data Documentation

lsst.meas.algorithms.readFitsCatalogTask.ReadFitsCatalogTask.ConfigClass = ReadFitsCatalogConfig
static

Definition at line 96 of file readFitsCatalogTask.py.


The documentation for this class was generated from the following file: