Changeset 38654
- Timestamp:
- Jul 30, 2015, 6:01:10 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/ReadXradFITS.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/ReadXradFITS.c
r38570 r38654 14 14 /* load the table data */ 15 15 if (!gfits_fread_ftable_data (f, &table, FALSE)) { 16 fprintf (stderr, "ERROR: can't read table header\n"); 17 exit (1); 16 fprintf (stderr, "WARNING: no xrad data, skipping\n"); 17 return TRUE; 18 } 19 20 if (theader[0].Naxis[1] == 0) { 21 fprintf (stderr, "WARNING: no xrad data, skipping\n"); 22 return TRUE; 18 23 } 19 24 … … 65 70 for (i = 0; i < catalog->Nmeasure; i++) { 66 71 if (catalog->measure[i].detID < RadID[Nap]) { 67 Nap ++;68 72 continue; 73 // this is a psf measurement which does not have a radial aperture 69 74 } 70 75 if (catalog->measure[i].detID > RadID[Nap]) { 71 76 myAbort("radial apertures out of order? seems like a bug\n"); 77 // this would be a radial aperture which does not have a radial aperture 72 78 } 73 79 … … 95 101 Nap ++; 96 102 } 97 catalog->Nlensing = Nap;103 myAssert (Nap == Nrow, "did we go too far???"); 98 104 99 105 gfits_free_table (&table);
Note:
See TracChangeset
for help on using the changeset viewer.
