IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 19, 2007, 3:58:16 PM (19 years ago)
Author:
magnier
Message:

defining new pmSourceFitSet APIs which can use variable models; adding functions to add sources to cell (not chips)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20070817/psModules/src/camera/pmFPA.h

    r14201 r14546  
    66 * @author Eugene Magnier, IfA
    77 *
    8  * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2007-07-14 03:17:18 $
     8 * @version $Revision: 1.15.4.1 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2007-08-20 01:58:16 $
    1010 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    1111 */
     
    1818
    1919#define FPA_ASTROM 1                    ///< Include astrometry information in the structures?
     20
     21// Return chip position, given FPA position; calculations are all done in pixel units
     22#define PM_FPA_TO_CHIP(pos, chip0, chipParity) \
     23    (((pos) - (chip0))*(chipParity))
     24
     25// Return cell position, given chip position; calculations are all done in pixel units
     26#define PM_CHIP_TO_CELL(pos, cell0, cellParity, binning) \
     27    (((pos) - (cell0))*(cellParity)/(binning))
     28
     29// Return chip position, given a cell position; calculations are all done in pixel units
     30#define PM_CELL_TO_CHIP(pos, cell0, cellParity, binning) \
     31    ((pos)*(binning)*(cellParity) + (cell0))
     32
     33// Return FPA position, given a chip position; calculations are all done in pixel units
     34#define PM_CHIP_TO_FPA(pos, chip0, chipParity) \
     35    ((pos)*(chipParity) + (chip0))
    2036
    2137/// Focal plane array (the entirety of the camera)
Note: See TracChangeset for help on using the changeset viewer.