IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2007, 3:09:20 PM (19 years ago)
Author:
eugene
Message:

updating all changes from from eam_branch_20071023

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmModelUtils.c

    r14938 r15562  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-09-21 00:04:30 $
     7 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-11-10 01:09:20 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3636pmModel *pmModelFromPSF (pmModel *modelEXT, pmPSF *psf)
    3737{
     38    PS_ASSERT_PTR_NON_NULL(psf, NULL);
     39    PS_ASSERT_PTR_NON_NULL(modelEXT, NULL);
     40
    3841    // allocate a new pmModel to hold the PSF version
    3942    pmModel *modelPSF = pmModelAlloc (psf->type);
     
    5356// instantiate a model for the PSF at this location with peak flux
    5457// NOTE: psf and (Xo,Yo) are defined wrt chip coordinates
    55 pmModel *pmModelFromPSFforXY (pmPSF *psf, float Xo, float Yo, float Io) {
    56 
    57     assert (psf);
     58pmModel *pmModelFromPSFforXY (pmPSF *psf, float Xo, float Yo, float Io)
     59{
     60    PS_ASSERT_PTR_NON_NULL(psf, NULL);
    5861
    5962    // allocate a new pmModel to hold the PSF version
     
    7578// set this model to have the requested flux
    7679bool pmModelSetFlux (pmModel *model, float flux) {
     80    PS_ASSERT_PTR_NON_NULL(model, NULL);
     81    PS_ASSERT_PTR_NON_NULL(model->params, NULL);
    7782
    7883    // set Io to be 1.0
Note: See TracChangeset for help on using the changeset viewer.