Changeset 18845 for trunk/psModules/src/objects/pmSourceIO_SX.c
- Timestamp:
- Aug 1, 2008, 8:33:14 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceIO_SX.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO_SX.c
r15562 r18845 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $6 * @date $Date: 200 7-11-10 01:09:20$5 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-08-01 18:33:14 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 60 60 pmSource *source = (pmSource *) sources->data[i]; 61 61 62 // no difference between PSF and non-PSF model62 // no difference between PSF and non-PSF model 63 63 pmModel *model = pmSourceGetModel (NULL, source); 64 64 if (model == NULL) … … 70 70 // pmSourceSextractType (source, &type, &flags); 71 71 72 axes = pmPSF_ModelToAxes (PAR, 20.0);72 axes = pmPSF_ModelToAxes (PAR, 20.0); 73 73 74 74 psLineInit (line); … … 85 85 psLineAdd (line, "%9.4f", source->apMag); 86 86 psLineAdd (line, "%4d\n", 0); // should be flags 87 fwrite (line->line, 1, line->Nline, f); 87 if (fwrite(line->line, 1, line->Nline, f) < line->Nline) { 88 psError(PS_ERR_IO, true, "Unable to write SX sources file (%s)", filename); 89 fclose(f); 90 psFree(line); 91 return false; 92 } 88 93 } 89 94 fclose (f);
Note:
See TracChangeset
for help on using the changeset viewer.
