00001 /* @file pmFPAview.h 00002 * @brief Tools to manipulate the FPA structure elements. 00003 * 00004 * @author EAM, IfA 00005 * @author PAP, IfA 00006 * 00007 * @version $Revision: 1.6 $ $Name: $ 00008 * @date $Date: 2007/01/27 03:33:37 $ 00009 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii 00010 */ 00011 00012 #ifndef PM_FPA_FILE_FITS_IO_H 00013 #define PM_FPA_FILE_FITS_IO_H 00014 00015 /// @addtogroup Camera Camera Layout 00016 /// @{ 00017 00018 /// Read an image into the current view 00019 bool pmFPAviewReadFitsImage(const pmFPAview *view, ///< View specifying level of interest 00020 pmFPAfile *file ///< FPA file into which to read 00021 ); 00022 00023 /// Read a mask into the current view 00024 bool pmFPAviewReadFitsMask(const pmFPAview *view, ///< View specifying level of interest 00025 pmFPAfile *file ///< FPA file into which to read 00026 ); 00027 /// Read a weight map into the current view 00028 bool pmFPAviewReadFitsWeight(const pmFPAview *view, ///< View specifying level of interest 00029 pmFPAfile *file ///< FPA file into which to read 00030 ); 00031 00032 /// Write the image for the specified view 00033 bool pmFPAviewWriteFitsImage(const pmFPAview *view, ///< View specifying level of interest 00034 pmFPAfile *file, ///< FPA file to write 00035 pmConfig *config ///< Configuration 00036 ); 00037 00038 /// Write the mask for the specified view 00039 bool pmFPAviewWriteFitsMask(const pmFPAview *view, ///< View specifying level of interest 00040 pmFPAfile *file, ///< FPA file to write 00041 pmConfig *config ///< Configuration 00042 ); 00043 00044 /// Write the weight map for the specified view 00045 bool pmFPAviewWriteFitsWeight(const pmFPAview *view, ///< View specifying level of interest 00046 pmFPAfile *file, ///< FPA file to write 00047 pmConfig *config ///< Configuration 00048 ); 00049 00050 /// Free the data for the specified view 00051 bool pmFPAviewFreeData(const pmFPAview *view, ///< View specifying level of interest 00052 pmFPAfile *file ///< FPA file to free data 00053 ); 00054 00055 /// Read a table into the current view 00056 bool pmFPAviewReadFitsTable(const pmFPAview *view, ///< View specifying level of interest 00057 pmFPAfile *file, ///< FPA file into which to read 00058 const char *name ///< Name of table 00059 ); 00060 00061 /// Write the table for the specified view 00062 bool pmFPAviewWriteFitsTable(const pmFPAview *view, ///< View specifying level of interest 00063 pmFPAfile *file, ///< FPA file to write 00064 const char *name ///< Name of table 00065 ); 00066 00067 /// Produce a suitable FPA for writing, on the basis of the input FPAfile 00068 /// 00069 /// A new FPA with a changed format is generated if required (file->format is set and file->camera is equal to 00070 /// the default, indicating a change in the format without changing the camera --- changes to the camera are 00071 /// handled using other systems --- see pmFPAfileDefineChipMosaic, pmFPAfileDefineFPAMosaic). Otherwise the 00072 /// file->fpa is returned (incremented). 00073 pmFPA *pmFPAfileSuitableFPA(const pmFPAfile *file,///< File containing the fpa 00074 const pmFPAview *view, ///< View at which to produce the fpa 00075 const pmConfig *config ///< Configuration 00076 ); 00077 00078 /// @} 00079 00080 # endif
1.5.1