IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 18, 2006, 1:43:28 PM (19 years ago)
Author:
Paul Price
Message:

Extensive changes to FPA reading/writing functions to support mask and weight map reading/writing. Actually, not so much changes as generalisations to the reading/writing functions. Moved the reading/writing functionality into file-static functions, which the higher level functions for reading/writing particular elements (image, mask, weight) call. Added additional pmFPAfile types for mask and weight, with supporting functionality to call the reading/writing functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileFitsIO.h

    r9950 r10081  
    66*
    77*  @author EAM, IfA
     8*  @author PAP, IfA
    89*
    9 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-11-13 22:15:55 $
     10*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2006-11-18 23:43:28 $
    1112*
    1213*  Copyright 2004-2005 Institute for Astronomy, University of Hawaii
     
    1617#define PM_FPA_FILE_FITS_IO_H
    1718
    18 // read an image into the current view
    19 bool pmFPAviewReadFitsImage (const pmFPAview *view, pmFPAfile *file);
     19/// Read an image into the current view
     20bool pmFPAviewReadFitsImage(const pmFPAview *view, ///< View specifying level of interest
     21                            pmFPAfile *file ///< FPA file into which to read
     22                           );
    2023
    21 // write the components for the specified view
    22 bool pmFPAviewWriteFitsImage (const pmFPAview *view, pmFPAfile *file);
     24/// Read a mask into the current view
     25bool pmFPAviewReadFitsMask(const pmFPAview *view, ///< View specifying level of interest
     26                           pmFPAfile *file ///< FPA file into which to read
     27                          );
     28/// Read a weight map into the current view
     29bool pmFPAviewReadFitsWeight(const pmFPAview *view,  ///< View specifying level of interest
     30                             pmFPAfile *file ///< FPA file into which to read
     31                            );
    2332
    24 // free the appropriate image containers
    25 bool pmFPAviewFreeFitsImage (const pmFPAview *view, pmFPAfile *file);
     33/// Write the image for the specified view
     34bool pmFPAviewWriteFitsImage(const pmFPAview *view, ///< View specifying level of interest
     35                             pmFPAfile *file ///< FPA file to write
     36                            );
    2637
     38/// Write the mask for the specified view
     39bool pmFPAviewWriteFitsMask(const pmFPAview *view, ///< View specifying level of interest
     40                            pmFPAfile *file ///< FPA file to write
     41                           );
    2742
    28 // read a table into the current view
    29 bool pmFPAviewReadFitsTable(const pmFPAview *view, pmFPAfile *file, const char *name);
     43/// Write the weight map for the specified view
     44bool pmFPAviewWriteFitsWeight(const pmFPAview *view, ///< View specifying level of interest
     45                              pmFPAfile *file ///< FPA file to write
     46                             );
    3047
    31 // write the table for the specified view
    32 bool pmFPAviewWriteFitsTable(const pmFPAview *view, pmFPAfile *file, const char *name);
     48/// Free the data for the specified view
     49bool pmFPAviewFreeData(const pmFPAview *view, ///< View specifying level of interest
     50                       pmFPAfile *file  ///< FPA file to free data
     51                      );
    3352
    34 // free the appropriate table containers
    35 bool pmFPAviewFreeFitsTable(const pmFPAview *view, pmFPAfile *file, const char *name);
     53/// Read a table into the current view
     54bool pmFPAviewReadFitsTable(const pmFPAview *view, ///<  View specifying level of interest
     55                            pmFPAfile *file, ///< FPA file into which to read
     56                            const char *name ///< Name of table
     57                           );
     58
     59/// Write the table for the specified view
     60bool pmFPAviewWriteFitsTable(const pmFPAview *view, ///<  View specifying level of interest
     61                             pmFPAfile *file, ///< FPA file to write
     62                             const char *name ///< Name of table
     63                            );
    3664
    3765# endif
Note: See TracChangeset for help on using the changeset viewer.