- Timestamp:
- Aug 26, 2010, 9:18:39 AM (16 years ago)
- Location:
- branches/sc_branches/trunkTest
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/sc_branches/trunkTest
- Property svn:mergeinfo changed
-
branches/sc_branches/trunkTest/Ohana
- Property svn:mergeinfo deleted
-
branches/sc_branches/trunkTest/Ohana/src/addstar/src/ReadStarsFITS.c
r27435 r29060 49 49 if (stars == NULL) { 50 50 fprintf (stderr, "ERROR: invalid table type %s\n", type); 51 exit (1);51 return (NULL); 52 52 } 53 53 // Nstars is not necessarily == *nstars (The former is the number of detections, the … … 69 69 swapped = FALSE; 70 70 smpdata = gfits_table_get_SMPData (table, &Nstars, &swapped); 71 if (!smpdata) { 72 fprintf (stderr, "skipping inconsistent entry\n"); 73 return (NULL); 74 } 71 75 ZeroPt = GetZeroPoint(); 72 76 … … 108 112 109 113 ps1data = gfits_table_get_PS1_DEV_0 (table, &Nstars, NULL); 114 if (!ps1data) { 115 fprintf (stderr, "skipping inconsistent entry\n"); 116 return (NULL); 117 } 110 118 ZeroPt = GetZeroPoint(); 111 119 … … 153 161 154 162 ps1data = gfits_table_get_PS1_DEV_1 (table, &Nstars, NULL); 163 if (!ps1data) { 164 fprintf (stderr, "skipping inconsistent entry\n"); 165 return (NULL); 166 } 155 167 ZeroPt = GetZeroPoint(); 156 168 … … 212 224 213 225 ps1data = gfits_table_get_CMF_PS1_V1 (table, &Nstars, NULL); 226 if (!ps1data) { 227 fprintf (stderr, "skipping inconsistent entry\n"); 228 return (NULL); 229 } 214 230 ZeroPt = GetZeroPoint(); 215 231 … … 284 300 285 301 ps1data = gfits_table_get_CMF_PS1_V1_Alt (table, &Nstars, NULL); 302 if (!ps1data) { 303 fprintf (stderr, "skipping inconsistent entry\n"); 304 return (NULL); 305 } 286 306 ZeroPt = GetZeroPoint(); 287 307 … … 348 368 349 369 ps1data = gfits_table_get_CMF_PS1_V2 (table, &Nstars, NULL); 370 if (!ps1data) { 371 fprintf (stderr, "skipping inconsistent entry\n"); 372 return (NULL); 373 } 350 374 ZeroPt = GetZeroPoint(); 351 375
Note:
See TracChangeset
for help on using the changeset viewer.
