IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 22, 2006, 2:29:31 AM (20 years ago)
Author:
rhl
Message:

[Start to] provide symbolic names for parameters

File:
1 edited

Legend:

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

    r8815 r8882  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-09-15 09:49:01 $
     5 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-09-22 12:24:38 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    116116
    117117        type = pmSourceDophotType (source);
    118         lsky = (PAR[0] < 1.0) ? 0.0 : log10(PAR[0]);
    119 
    120         shape.sx  = PAR[4];
    121         shape.sy  = PAR[5];
    122         shape.sxy = PAR[6];
     118        lsky = (PAR[PM_PAR_SKY] < 1.0) ? 0.0 : log10(PAR[PM_PAR_SKY]);
     119
     120        shape.sx  = PAR[PM_PAR_SXX];
     121        shape.sy  = PAR[PM_PAR_SYY];
     122        shape.sxy = PAR[PM_PAR_SXY];
    123123        axes = psEllipseShapeToAxes (shape);
    124124
    125125        psLineInit (line);
    126         psLineAdd (line, "%6.1f ",  PAR[2]);
    127         psLineAdd (line, "%6.1f ",  PAR[3]);
     126        psLineAdd (line, "%6.1f ",  PAR[PM_PAR_XPOS]);
     127        psLineAdd (line, "%6.1f ",  PAR[PM_PAR_YPOS]);
    128128        psLineAdd (line, "%6.3f ",  PS_MIN (99.0, source->psfMag + ZERO_POINT));
    129129        psLineAdd (line, "%03d ",   PS_MIN (999, (int)(1000*source->errMag)));
     
    253253            dPAR = model->dparams->data.F32;
    254254
    255             PAR[0]        = pow (atof (array->data[5]), 10.0);
    256             PAR[2]        = atof (array->data[0]);
    257             PAR[3]        = atof (array->data[1]);
     255            PAR[PM_PAR_SKY] = pow (atof (array->data[5]), 10.0);
     256            PAR[PM_PAR_XPOS] = atof (array->data[0]);
     257            PAR[PM_PAR_YPOS] = atof (array->data[1]);
    258258            source->psfMag = atof (array->data[2]);
    259259            source->extMag = atof (array->data[6]);
Note: See TracChangeset for help on using the changeset viewer.