#ifndef PM_FPA_READ_H
#define PM_FPA_READ_H

#include "pslib.h"
#include "pmFPA.h"

bool pmFPARead(pmFPA *fpa,              // FPA to read into
               psFits *fits,            // FITS file from which to read
               psMetadata *phu,         // Primary header
               psDB *db                 // Database handle, for concept ingest
              );

psString p_pmFPATranslateName(const psString name, // The name to translate
                              const pmCell *cell // The cell for which to translate
                             );

psString p_pmFPATranslateFileExt(psString *extName, // Extension name, to be returned
                                 const psString filenameExt, // The string to parse into filename and ext
                                 const pmCell *cell // The cell
                                );

bool pmFPAReadMask(pmFPA *fpa,          // FPA to read into
                   psFits *source       // Source FITS file (for the original data)
                  );

bool pmFPAReadWeight(pmFPA *fpa,        // FPA to read into
                     psFits *source     // Source FITS file (for the original data)
                    );


#endif
