/* @file  pmAstrometryTable.h
 * @brief Astrometry table I/O functions
 *
 * @author EAM, IfA
 *
 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
 * @date $Date: 2007-12-22 17:53:27 $
 * Copyright 2006 Institute for Astronomy, University of Hawaii
 */

#ifndef PM_ASTROMETRY_TABLE_H
#define PM_ASTROMETRY_TABLE_H

/// @addtogroup Astrometry
/// @{

bool pmAstromCheckDataStatusForView (const pmFPAview *view, pmFPAfile *file);
bool pmAstromCheckDataStatusForFPA (const pmFPA *fpa);
bool pmAstromCheckDataStatusForChip (const pmChip *chip);

bool pmAstromWriteForView (const pmFPAview *view, pmFPAfile *file, const pmConfig *config);
bool pmAstromWriteFPA (pmFPAfile *file);
bool pmAstromWritePHU (pmFPAfile *file);
bool pmAstromWriteSky (pmFPAfile *file);
bool pmAstromWriteTP (pmFPAfile *file);
bool pmAstromWriteFP (pmFPAfile *file);
bool pmAstromWriteChips (pmFPAfile *file);

int pmConceptsChipNumberFromName (pmFPA *fpa, char *name);
pmChip *pmConceptsChipFromName (pmFPA *fpa, char *name);

bool pmAstromReadForView (const pmFPAview *view, pmFPAfile *file, const pmConfig *config);
bool pmAstromReadFPA (pmFPAfile *file);
bool pmAstromReadPHU (pmFPAfile *file);
bool pmAstromReadChips (pmFPAfile *file);
bool pmAstromReadFP (pmFPAfile *file);
bool pmAstromReadTP (pmFPAfile *file);
bool pmAstromReadSky (pmFPAfile *file);

bool pmAstromSetTP (pmFPAfile *file, psMetadata *concepts);

/// @}
#endif
