IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9603


Ignore:
Timestamp:
Oct 16, 2006, 5:29:08 PM (20 years ago)
Author:
Paul Price
Message:

Documenting pmHDUGenerate.[ch]

Location:
trunk/psModules/src/camera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmHDUGenerate.c

    r9584 r9603  
    449449//////////////////////////////////////////////////////////////////////////////////////////////////////////////
    450450
    451 // Generate an HDU from a cell with pixels
    452 bool pmHDUGenerateForCell(pmCell *cell  // The cell
    453                          )
     451bool pmHDUGenerateForCell(pmCell *cell)
    454452{
    455453    PS_ASSERT_PTR_NON_NULL(cell, false);
     
    496494        return pmHDUGenerateForChip(cell->parent);
    497495    default:
    498         psAbort(__func__, "Shouldn't ever get here.\n");
     496        psAbort(__func__, "Shouldn't ever get here: check your camera format configuration.\n");
    499497    }
    500498    return false;
    501499}
    502500
    503 // Generate an HDU from a chip with pixels
    504 bool pmHDUGenerateForChip(pmChip *chip  // The chip
    505                          )
     501bool pmHDUGenerateForChip(pmChip *chip)
    506502{
    507503    PS_ASSERT_PTR_NON_NULL(chip, false);
     
    546542        return pmHDUGenerateForFPA(chip->parent);
    547543    default:
    548         psAbort(__func__, "Shouldn't ever get here.\n");
     544        psAbort(__func__, "Shouldn't ever get here: check your camera format configuration.\n");
    549545    }
    550546    return false;
     
    552548
    553549
    554 // Generate an HDU from an FPA with pixels
    555 bool pmHDUGenerateForFPA(pmFPA *fpa     // The fpa
    556                         )
     550bool pmHDUGenerateForFPA(pmFPA *fpa)
    557551{
    558552    PS_ASSERT_PTR_NON_NULL(fpa, false);
     
    590584        }
    591585    default:
    592         psAbort(__func__, "Shouldn't ever get here.\n");
     586        psAbort(__func__, "Shouldn't ever get here: check your camera format configuration.\n");
    593587    }
    594588    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
    115#ifndef PM_HDU_GENERATE_H
    216#define PM_HDU_GENERATE_H
     
    418#include "pmFPA.h"
    519
    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.
     29bool pmHDUGenerateForCell(pmCell *cell  ///< The cell for which to generate an HDU
    830                         );
    931
    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.
     41bool pmHDUGenerateForChip(pmChip *chip  ///< The chip for which to generate an HDU
    1242                         );
    1343
    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.
     53bool pmHDUGenerateForFPA(pmFPA *fpa     ///< The fpa for which to generate an HDU
    1654                        );
    1755
Note: See TracChangeset for help on using the changeset viewer.