IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 14, 2006, 11:43:59 AM (20 years ago)
Author:
magnier
Message:

added JPEG and PSF I/O methods to pmFPAfile, added pmSourcePixelWeights

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmFPA.c

    r6854 r6859  
    1212* XXX: Should we implement non-linear cell->chip transforms?
    1313*
    14 *  @version $Revision: 1.1.4.7 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2006-04-14 03:09:32 $
     14*  @version $Revision: 1.1.4.8 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2006-04-14 21:43:59 $
    1616*
    1717*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    512512
    513513/*****************************************************************************
     514XXX EAM : I've added the 'exclusive' option.  if true all other chips are de-selected
     515XXX EAM : a negative value is valid and, in combinations with exclusive, de-selects all chips
    514516 *****************************************************************************/
    515 bool pmFPASelectChip(
    516     pmFPA *fpa,
    517     int chipNum)
     517bool pmFPASelectChip(pmFPA *fpa, int chipNum, bool exclusive)
    518518{
    519519    PS_ASSERT_PTR_NON_NULL(fpa, false);
     
    533533            setCellsProcess(tmpChip, true);
    534534        } else {
    535             tmpChip->process = false;
    536             setCellsProcess(tmpChip, false);
    537         }
    538 
    539     }
    540 
    541     return true;
    542 }
    543 
    544 bool pmChipSelectCell(pmChip *chip,
    545                       int cellNum
    546                      )
     535            if (exclusive) {
     536                tmpChip->process = false;
     537                setCellsProcess(tmpChip, false);
     538            }
     539        }
     540
     541    }
     542
     543    return true;
     544}
     545
     546/*****************************************************************************
     547XXX EAM : I've added the 'exclusive' option.  if true all other chips are de-selected
     548XXX EAM : a negative value is valid and, in combinations with exclusive, de-selects all cells
     549XXX this function should probably be re-defined to merge with 'setCellsProcess'
     550 *****************************************************************************/
     551bool pmChipSelectCell(pmChip *chip, int cellNum, bool exclusive)
    547552{
    548553    assert(chip);
     
    558563            continue;
    559564        }
    560         cell->process = (i == cellNum);
    561     }
    562 
     565        if (i == cellNum) {
     566            cell->process = true;
     567        } else {
     568            if (exclusive) {
     569                cell->process = false;
     570            }
     571        }
     572    }
    563573    return true;
    564574}
Note: See TracChangeset for help on using the changeset viewer.