Changeset 9603
- Timestamp:
- Oct 16, 2006, 5:29:08 PM (20 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 2 edited
-
pmHDUGenerate.c (modified) (5 diffs)
-
pmHDUGenerate.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmHDUGenerate.c
r9584 r9603 449 449 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 450 450 451 // Generate an HDU from a cell with pixels 452 bool pmHDUGenerateForCell(pmCell *cell // The cell 453 ) 451 bool pmHDUGenerateForCell(pmCell *cell) 454 452 { 455 453 PS_ASSERT_PTR_NON_NULL(cell, false); … … 496 494 return pmHDUGenerateForChip(cell->parent); 497 495 default: 498 psAbort(__func__, "Shouldn't ever get here .\n");496 psAbort(__func__, "Shouldn't ever get here: check your camera format configuration.\n"); 499 497 } 500 498 return false; 501 499 } 502 500 503 // Generate an HDU from a chip with pixels 504 bool pmHDUGenerateForChip(pmChip *chip // The chip 505 ) 501 bool pmHDUGenerateForChip(pmChip *chip) 506 502 { 507 503 PS_ASSERT_PTR_NON_NULL(chip, false); … … 546 542 return pmHDUGenerateForFPA(chip->parent); 547 543 default: 548 psAbort(__func__, "Shouldn't ever get here .\n");544 psAbort(__func__, "Shouldn't ever get here: check your camera format configuration.\n"); 549 545 } 550 546 return false; … … 552 548 553 549 554 // Generate an HDU from an FPA with pixels 555 bool pmHDUGenerateForFPA(pmFPA *fpa // The fpa 556 ) 550 bool pmHDUGenerateForFPA(pmFPA *fpa) 557 551 { 558 552 PS_ASSERT_PTR_NON_NULL(fpa, false); … … 590 584 } 591 585 default: 592 psAbort(__func__, "Shouldn't ever get here .\n");586 psAbort(__func__, "Shouldn't ever get here: check your camera format configuration.\n"); 593 587 } 594 588 return false; -
trunk/psModules/src/camera/pmHDUGenerate.h
r7168 r9603 1 /// @file pmHDUGenerate.h 2 /// 3 /// @brief Generate HDU pixels from FPA components that have pixels 4 /// 5 /// @ingroup Camera 6 /// 7 /// @author Paul Price, IfA 8 /// 9 /// @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 10 /// @date $Date: 2006-10-17 03:29:08 $ 11 /// 12 /// Copyright 2005-2006 Institute for Astronomy, University of Hawaii 13 /// 14 1 15 #ifndef PM_HDU_GENERATE_H 2 16 #define PM_HDU_GENERATE_H … … 4 18 #include "pmFPA.h" 5 19 6 // Generate an HDU for a cell with pixels 7 bool pmHDUGenerateForCell(pmCell *cell // The cell for which to generate an HDU 20 /// Generate an HDU (with CELL.TRIMSEC, CELL.BIASSEC and pixels) for a cell with pixels 21 /// 22 /// The write functions for the FPA hierarchy use pmHDUWrite, which assumes that the images in the readouts 23 /// are subimages of the pixels in the HDU structure. If this is not the case, the HDU pixels can be 24 /// generated using some simple assumptions. Splices the images and overscans together without regard for 25 /// CELL.X0 and CELL.Y0 (for a proper mosaic, see pmFPAMosaic), though it should respect CELL.READDIR (so that 26 /// the bias and trim sections match properly). A warning may be generated after running this function if the 27 /// bias and trim sections are specified in the camera format by default values rather than in the header. 28 /// Failure of this function is often due to a bad camera format file. 29 bool pmHDUGenerateForCell(pmCell *cell ///< The cell for which to generate an HDU 8 30 ); 9 31 10 // Generate an HDU for a cell with pixels 11 bool pmHDUGenerateForChip(pmChip *chip // The chip for which to generate an HDU 32 /// Generate an HDU (with CELL.TRIMSEC, CELL.BIASSEC and pixels) for a cell with pixels 33 /// 34 /// The write functions for the FPA hierarchy use pmHDUWrite, which assumes that the images in the readouts 35 /// are subimages of the pixels in the HDU structure. If this is not the case, the HDU pixels can be 36 /// generated using some simple assumptions. Splices the images and overscans together without regard for 37 /// CELL.X0 and CELL.Y0 (for a proper mosaic, see pmFPAMosaic), though it should respect CELL.READDIR (so that 38 /// the bias and trim sections match properly). A warning may be generated after running this function if the 39 /// bias and trim sections are specified in the camera format by default values rather than in the header. 40 /// Failure of this function is often due to a bad camera format file. 41 bool pmHDUGenerateForChip(pmChip *chip ///< The chip for which to generate an HDU 12 42 ); 13 43 14 // Generate an HDU from an FPA with pixels 15 bool pmHDUGenerateForFPA(pmFPA *fpa // The fpa for which to generate an HDU 44 // Generate an HDU (with CELL.TRIMSEC, CELL.BIASSEC and pixels) from an FPA with pixels 45 /// 46 /// The write functions for the FPA hierarchy use pmHDUWrite, which assumes that the images in the readouts 47 /// are subimages of the pixels in the HDU structure. If this is not the case, the HDU pixels can be 48 /// generated using some simple assumptions. Splices the images and overscans together without regard for 49 /// CELL.X0 and CELL.Y0 (for a proper mosaic, see pmFPAMosaic), though it should respect CELL.READDIR (so that 50 /// the bias and trim sections match properly). A warning may be generated after running this function if the 51 /// bias and trim sections are specified in the camera format by default values rather than in the header. 52 /// Failure of this function is often due to a bad camera format file. 53 bool pmHDUGenerateForFPA(pmFPA *fpa ///< The fpa for which to generate an HDU 16 54 ); 17 55
Note:
See TracChangeset
for help on using the changeset viewer.
