/** @file  pmPSF.h
 *
 * This file contains typedefs for the Point-Spread Function and prototypes
 * for functions that calculate the PSF.
 *
 *  @author EAM, IfA
 *
 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
 *  @date $Date: 2006-04-17 18:01:05 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
 *
 */

# ifndef PM_PSF_IO_H
# define PM_PSF_IO_H

psMetadata *pmPSFtoMD (psMetadata *metadata, pmPSF *psf);
pmPSF *pmPSFfromMD (psMetadata *metadata);
bool pmFPAviewWritePSFmodel (const pmFPAview *view, pmFPAfile *file);
bool pmFPAWritePSFmodel (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file);
bool pmChipWritePSFmodel (pmChip *chip, const pmFPAview *view, pmFPAfile *file);
bool pmCellWritePSFmodel (pmCell *cell, const pmFPAview *view, pmFPAfile *file);
bool pmReadoutWritePSFmodel (pmReadout *readout, const pmFPAview *view, pmFPAfile *file);

bool pmFPAviewReadPSFmodel (const pmFPAview *view, pmFPAfile *file);
bool pmFPAReadPSFmodel (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file);
bool pmChipReadPSFmodel (pmChip *chip, const pmFPAview *view, pmFPAfile *file);
bool pmCellReadPSFmodel (pmCell *cell, const pmFPAview *view, pmFPAfile *file);
bool pmReadoutReadPSFmodel (pmReadout *readout, const pmFPAview *view, pmFPAfile *file);

# endif
