Changeset 7973 for trunk/Ohana/src/addstar
- Timestamp:
- Jul 25, 2006, 8:13:36 AM (20 years ago)
- Location:
- trunk/Ohana/src/addstar/src
- Files:
-
- 2 edited
-
find_matches_refstars.c (modified) (1 diff)
-
gettycho.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/find_matches_refstars.c
r7691 r7973 41 41 Nmiss = catalog[0].Nmissing; 42 42 NMISS = Nmiss + 1000; 43 if ((NMISS < 1) || (NMISS > 1e10)) { 44 fprintf (stderr, "weird value for NMISS: %d\n", NMISS); 45 } 43 46 ALLOCATE (next_miss, int, NMISS); 44 47 REALLOCATE (catalog[0].missing, Missing, NMISS); -
trunk/Ohana/src/addstar/src/gettycho.c
r7966 r7973 63 63 nitems = fread (buffer, NBYTE, NITEM, f); 64 64 if (nitems == 0) break; 65 if (nitems != NITEM) {66 fprintf (stderr, "ERROR: failure reading data from file %s\n", filename);67 exit (1);68 }69 65 70 for (j = 0; j < NITEM; j++) {66 for (j = 0; j < nitems; j++) { 71 67 line = &buffer[j*NBYTE]; 72 68 stars[Ntycho].R = atof (&line[15]); … … 115 111 CHECK_REALLOCATE (stars, Stars, NTYCHO, Ntycho, 5000); 116 112 } 113 114 if (nitems != NITEM) break; 117 115 } 118 116 next_section:
Note:
See TracChangeset
for help on using the changeset viewer.
