- Timestamp:
- Apr 17, 2006, 7:10:08 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/objects/pmSourceIO_CMP.c
r6859 r6864 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.1.2. 5$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-04-1 4 21:43:59$5 * @version $Revision: 1.1.2.6 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-04-17 17:10:08 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 37 37 psMetadataItem *mdi; 38 38 psF32 *PAR, *dPAR; 39 float dmag, lsky;39 float lsky = 0; 40 40 bool status; 41 41 psEllipseShape shape; … … 99 99 psLineAdd (line, "%6.1f ", PAR[3]); 100 100 psLineAdd (line, "%6.3f ", PS_MIN (99.0, source->psfMag + ZERO_POINT)); 101 psLineAdd (line, "%03d ", PS_MIN (999, (int)(1000* dmag)));101 psLineAdd (line, "%03d ", PS_MIN (999, (int)(1000*source->errMag))); 102 102 psLineAdd (line, "%2d ", type); 103 103 psLineAdd (line, "%3.1f ", lsky); … … 249 249 return (sources); 250 250 } 251 252 # if (0)253 PAR = model->params->data.F32;254 dPAR = model->dparams->data.F32;255 256 dmag = dPAR[1] / PAR[1];257 type = pmSourceDophotType (source);258 lsky = (PAR[0] < 1.0) ? 0.0 : log10(PAR[0]);259 260 psLineInit (line);261 psLineAdd (line, "%6.1f ", PAR[2]);262 psLineAdd (line, "%6.1f ", PAR[3]);263 psLineAdd (line, "%6.3f ", PS_MIN (99.999, source->fitMag + ZERO_POINT));264 psLineAdd (line, "%03d ", PS_MIN (999, (int)(1000*dmag)));265 psLineAdd (line, "%2d ", type);266 psLineAdd (line, "%3.1f ", lsky);267 psLineAdd (line, "%6.3f ", 99.999); // should be 'Mgal268 psLineAdd (line, "%6.3f ", PS_MIN (99.999, source->apMag + ZERO_POINT));269 psLineAdd (line, "%6.2f ", PAR[4]); // should be 'FHWM x'270 psLineAdd (line, "%6.2f ", PAR[5]); // should be 'FHWM y'271 psLineAdd (line, "%5.1f\n", 0); // should be theta272 273 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
