IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11227


Ignore:
Timestamp:
Jan 21, 2007, 3:12:06 PM (19 years ago)
Author:
magnier
Message:

fix output errMag to return an appropriate value if out of range

File:
1 edited

Legend:

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

    r10854 r11227  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-12-29 18:32:01 $
     5 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-01-22 01:12:06 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    126126        axes = psEllipseShapeToAxes (shape, 20.0);
    127127
     128        float errMag = isfinite(source->errMag) ? source->errMag : 999;
     129
    128130        psLineInit (line);
    129131        psLineAdd (line, "%6.1f ",  PAR[PM_PAR_XPOS]);
    130132        psLineAdd (line, "%6.1f ",  PAR[PM_PAR_YPOS]);
    131133        psLineAdd (line, "%6.3f ",  PS_MIN (99.0, source->psfMag + ZERO_POINT));
    132         psLineAdd (line, "%03d ",   PS_MIN (999, (int)(1000*source->errMag)));
     134        psLineAdd (line, "%03d ",   PS_MIN (999, (int)errMag));
    133135        psLineAdd (line, "%2d ",    type);
    134136        psLineAdd (line, "%3.1f ",  lsky);
Note: See TracChangeset for help on using the changeset viewer.