Changeset 9602
- Timestamp:
- Oct 16, 2006, 5:16:59 PM (20 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 2 edited
-
pmFPAWrite.c (modified) (3 diffs)
-
pmFPAWrite.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAWrite.c
r9570 r9602 15 15 #include "pmFPAWrite.h" 16 16 17 bool pmReadoutWriteNext(pmReadout *readout, // Readout to write 18 psFits *fits, // FITS file to which to write 19 int z // Image plane to write 20 ) 17 bool pmReadoutWriteNext(pmReadout *readout, psFits *fits, int z) 21 18 { 22 19 PS_ASSERT_PTR_NON_NULL(readout, false); … … 133 130 134 131 135 bool pmChipWrite(pmChip *chip, // Chip to write 136 psFits *fits, // FITS file to which to write 137 psDB *db, // Database handle for "concepts" update 138 bool blank, // Write a blank PHU? 139 bool recurse // Recurse to lower levels? 140 ) 132 bool pmChipWrite(pmChip *chip, psFits *fits, psDB *db, bool blank, bool recurse) 141 133 { 142 134 PS_ASSERT_PTR_NON_NULL(chip, false); … … 193 185 194 186 195 bool pmFPAWrite(pmFPA *fpa, // FPA to write 196 psFits *fits, // FITS file to which to write 197 psDB *db, // Database handle for "concepts" update 198 bool blank, // Write a blank PHU? 199 bool recurse // Recurse to lower levels? 200 ) 187 bool pmFPAWrite(pmFPA *fpa, psFits *fits, psDB *db, bool blank, bool recurse) 201 188 { 202 189 PS_ASSERT_PTR_NON_NULL(fpa, false); -
trunk/psModules/src/camera/pmFPAWrite.h
r7249 r9602 1 /// @file pmFPAWrite.h 2 /// 3 /// @brief Write FPA components to a FITS file 4 /// 5 /// @ingroup Camera 6 /// 7 /// @author Paul Price, IfA 8 /// 9 /// @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 10 /// @date $Date: 2006-10-17 03:16:59 $ 11 /// 12 /// Copyright 2005-2006 Institute for Astronomy, University of Hawaii 13 /// 14 1 15 #ifndef PM_FPA_WRITE_H 2 16 #define PM_FPA_WRITE_H 3 17 4 #include "pslib.h"18 #include <pslib.h> 5 19 #include "pmFPA.h" 6 20 7 bool pmReadoutWriteNext(pmReadout *readout, // Readout to write 8 psFits *fits, // FITS file to which to write 9 int z // Image plane to write 21 22 /// Write a readout incrementally 23 /// 24 /// Writes a readout to a FITS file, perhaps incrementally (if it has been read in using pmReadoutReadNext). 25 /// Relies on the FITS header to specify how many image planes there are, and the width and height. 26 bool pmReadoutWriteNext(pmReadout *readout, ///< Readout to write 27 psFits *fits, ///< FITS file to which to write 28 int z ///< Image plane to write 10 29 ); 11 30 12 bool pmCellWrite(pmCell *cell, // Cell to write 13 psFits *fits, // FITS file to which to write 14 psDB *db, // Database handle for "concepts" update 15 bool pixels // Write the pixels, or only the PHU header? 31 /// Write a cell to a FITS file 32 /// 33 /// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU pixels if required. A blank (i.e., image-less header) is 34 /// written only if specifically requested. Writes the concepts to the various locations, and then the HDU to 35 /// the FITS file. This function should be called at the beginning of the output cell loop with blank=true in 36 /// order to produce the correct file structure. 37 bool pmCellWrite(pmCell *cell, ///< Cell to write 38 psFits *fits, ///< FITS file to which to write 39 psDB *db, ///< Database handle for "concepts" update 40 bool blank ///< Write a blank PHU? 16 41 ); 17 bool pmChipWrite(pmChip *chip, // Chip to write 18 psFits *fits, // FITS file to which to write 19 psDB *db, // Database handle for "concepts" update 20 bool pixels, // Write the pixels, or only the PHU header? 21 bool recurse // Recurse to lower levels? 42 43 /// Write a chip to a FITS file 44 /// 45 /// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU pixels if required. A blank (i.e., image-less header) is 46 /// written only if specifically requested. Writes the concepts to the various locations, and then the HDU to 47 /// the FITS file, optionally recursing to lower levels. This function should be called at the beginning of 48 /// the output chip loop with blank=true and recurse=false in order to produce the correct file structure. 49 bool pmChipWrite(pmChip *chip, ///< Chip to write 50 psFits *fits, ///< FITS file to which to write 51 psDB *db, ///< Database handle for "concepts" update 52 bool blank, ///< Write a blank PHU? 53 bool recurse ///< Recurse to lower levels? 22 54 ); 23 bool pmFPAWrite(pmFPA *fpa, // FPA to write 24 psFits *fits, // FITS file to which to write 25 psDB *db, // Database handle for "concepts" update 26 bool pixels, // Write the pixels, or only the PHU header? 27 bool recurse // Recurse to lower levels? 55 /// Write a cell to a FITS file 56 /// 57 /// Generates CELL.TRIMSEC, CELL.BIASSEC and the HDU pixels if required. A blank (i.e., image-less header) is 58 /// written only if specifically requested. Writes the concepts to the various locations, and then the HDU to 59 /// the FITS file, optionally recursing to lower levels. This function should be called at the beginning of 60 /// the output FPA loop with blank=true and recurse=false in order to produce the correct file structure. 61 bool pmFPAWrite(pmFPA *fpa, ///< FPA to write 62 psFits *fits, ///< FITS file to which to write 63 psDB *db, ///< Database handle for "concepts" update 64 bool blank, ///< Write a blank PHU? 65 bool recurse ///< Recurse to lower levels? 28 66 ); 29 67
Note:
See TracChangeset
for help on using the changeset viewer.
