Changeset 6556 for branches/rel10_ifa/psModules/src/objects/pmSourceIO.c
- Timestamp:
- Mar 8, 2006, 5:14:23 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/objects/pmSourceIO.c
r6545 r6556 1 /** @file pmSourceIO.c 2 * 3 * @author EAM, IfA 4 * 5 * @version $Revision: 1.1.2.2 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-03-09 03:14:23 $ 7 * 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 9 * 10 */ 11 12 #include <stdio.h> 13 #include <math.h> 14 #include <string.h> 15 #include "pslib.h" 16 #include "pmHDU.h" 17 #include "pmFPA.h" 18 #include "pmPeaks.h" 19 #include "pmMoments.h" 20 #include "pmGrowthCurve.h" 21 #include "pmModel.h" 22 #include "pmPSF.h" 23 #include "pmSource.h" 24 #include "pmModelGroup.h" 25 #include "pmSourceIO.h" 1 26 2 27 // translations between psphot object types and dophot object types … … 6 31 switch (source->type) { 7 32 8 case PM_SOURCE_ DEFECT:9 case PM_SOURCE_ SATURATED:33 case PM_SOURCE_TYPE_DEFECT: 34 case PM_SOURCE_TYPE_SATURATED: 10 35 return (8); 11 36 12 case PM_SOURCE_ STAR:13 if (source->mode & PM_SOURCE_ SATSTAR)37 case PM_SOURCE_TYPE_STAR: 38 if (source->mode & PM_SOURCE_MODE_SATSTAR) 14 39 return (10); 15 if (source->mode & PM_SOURCE_ POOR)40 if (source->mode & PM_SOURCE_MODE_POOR) 16 41 return (7); 17 if (source->mode & PM_SOURCE_ FAIL)42 if (source->mode & PM_SOURCE_MODE_FAIL) 18 43 return (4); 19 44 return (1); 20 45 21 case PM_SOURCE_ EXTENDED:46 case PM_SOURCE_TYPE_EXTENDED: 22 47 return (2); 23 48 … … 29 54 30 55 /***** Text Output Methods *****/ 31 32 bool pmSourcesWriteText (psArray *sources, char *filename)56 # if (0) 57 bool pmSourcesWriteText (psArray *sources, char *filename) 33 58 { 34 59 … … 50 75 return true; 51 76 } 52 77 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
