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_OBJ.c

    r8815 r8882  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-09-15 09:49:01 $
     5 *  @version $Revision: 1.5 $ $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
     
    6262        dPAR = model->dparams->data.F32;
    6363
    64         dmag = dPAR[1] / PAR[1];
     64        dmag = dPAR[PM_PAR_FLUX] / PAR[PM_PAR_FLUX];
    6565        type = pmSourceDophotType (source);
    6666        if ((source->apMag < 99.0) && (source->psfMag < 99.0)) {
     
    7070        }
    7171
    72         shape.sx  = PAR[4];
    73         shape.sy  = PAR[5];
    74         shape.sxy = PAR[6];
     72        shape.sx  = PAR[PM_PAR_SXX];
     73        shape.sy  = PAR[PM_PAR_SYY];
     74        shape.sxy = PAR[PM_PAR_SXY];
    7575        axes = psEllipseShapeToAxes (shape);
    7676
    7777        psLineInit (line);
    7878        psLineAdd (line, "%3d",   type);
    79         psLineAdd (line, "%8.2f", PAR[2]);
    80         psLineAdd (line, "%8.2f", PAR[3]);
     79        psLineAdd (line, "%8.2f", PAR[PM_PAR_XPOS]);
     80        psLineAdd (line, "%8.2f", PAR[PM_PAR_YPOS]);
    8181        psLineAdd (line, "%8.3f", source->psfMag);
    8282        psLineAdd (line, "%6.3f", dmag);
    83         psLineAdd (line, "%9.2f", PAR[0]);
     83        psLineAdd (line, "%9.2f", PAR[PM_PAR_SKY]);
    8484        psLineAdd (line, "%9.3f", axes.major);
    8585        psLineAdd (line, "%9.3f", axes.minor);
Note: See TracChangeset for help on using the changeset viewer.