Changeset 8458
- Timestamp:
- Aug 21, 2006, 4:00:28 PM (20 years ago)
- Location:
- trunk/Ohana/src/addstar/src
- Files:
-
- 7 edited
-
Shutdown.c (modified) (1 diff)
-
addstar.c (modified) (4 diffs)
-
find_matches.c (modified) (2 diffs)
-
find_matches_refstars.c (modified) (1 diff)
-
getgsc.c (modified) (1 diff)
-
gettycho.c (modified) (1 diff)
-
gstars.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/Shutdown.c
r7691 r8458 12 12 char *formatplus; 13 13 14 ALLOCATE (formatplus, char, strlen(format) );14 ALLOCATE (formatplus, char, strlen(format) + 2); 15 15 strcpy (formatplus, format); 16 16 strcat (formatplus, "\n"); -
trunk/Ohana/src/addstar/src/addstar.c
r8386 r8458 94 94 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 95 95 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 96 catalog.filename = skylist[0].filename[i];96 catalog.filename = skylist[0].filename[i]; 97 97 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 98 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;98 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 99 99 if (options.update) catalog.catflags = LOAD_AVES | LOAD_MEAS_META | LOAD_MISS | LOAD_SECF; 100 100 … … 104 104 exit (2); 105 105 } 106 dvo_catalog_test (&catalog, TRUE);107 108 106 // Nave_disk == 0 implies an empty catalog file 109 107 // for only_match, skip empty catalogs … … 143 141 break; 144 142 } 145 dvo_catalog_test (&catalog, TRUE);146 143 147 144 // write out catalog, if appropriate … … 151 148 SetProtect (FALSE); 152 149 } 153 dvo_catalog_test (&catalog, TRUE);154 150 dvo_catalog_unlock (&catalog); 155 151 dvo_catalog_free (&catalog); -
trunk/Ohana/src/addstar/src/find_matches.c
r8328 r8458 18 18 19 19 /* photcode data - must by of type DEP, (PRI, SEC) - probably should restrict to DEP */ 20 // XXX : rely on catalog[0].Nsecfilt or GetPhotcodeNsecfilt?? 20 21 Nsecfilt = GetPhotcodeNsecfilt (); 21 22 Nsec = (code[0].type == PHOT_DEP) ? GetPhotcodeNsec (code[0].equiv) : GetPhotcodeNsec (code[0].code); … … 333 334 } 334 335 335 free (catalog[0].found);336 336 REALLOCATE (catalog[0].average, Average, Nave); 337 337 REALLOCATE (catalog[0].measure, Measure, Nmeas); -
trunk/Ohana/src/addstar/src/find_matches_refstars.c
r7973 r8458 283 283 free (catalog[0].found); 284 284 REALLOCATE (catalog[0].average, Average, Nave); 285 REALLOCATE (catalog[0].measure, Measure, Nmeas);286 285 287 286 /* fix order of Measure (memory intensive, but fast) */ -
trunk/Ohana/src/addstar/src/getgsc.c
r5945 r8458 25 25 26 26 for (i = 0; i < skylist[0].Nregions; i++) { 27 // XXX : get from table gsc = rd_gsc ((char *)skylist[0].regions[i][0].filename, &Ngsc);27 gsc = rd_gsc (skylist[0].filename[i], &Ngsc); 28 28 29 29 REALLOCATE (stars, Stars, MAX (1, Nstars + Ngsc)); -
trunk/Ohana/src/addstar/src/gettycho.c
r7973 r8458 34 34 sprintf (filename, "%s/index.dat", TYCHO_DIR); 35 35 tychoTable = SkyTableFromTychoIndex (filename, VERBOSE); 36 if (tychoTable == NULL) { 37 fprintf (stderr, "ERROR: problem loading tycho data\n"); 38 exit (2); 39 } 36 40 } 37 41 -
trunk/Ohana/src/addstar/src/gstars.c
r8428 r8458 5 5 FILE *f; 6 6 int j, N, Nbytes, naxis; 7 int itmp, hour, min ;7 int itmp, hour, min, simple; 8 8 char *name, *c, photname[64], line[80]; 9 9 double tmp, sec, dMs; … … 181 181 naxis = 2; 182 182 gfits_scan (&header, "NAXIS", "%d", 1, &naxis); 183 if ((naxis == 0) && !TEXTMODE) { 183 gfits_scan (&header, "SIMPLE", "%t", 1, &simple); 184 if ((naxis == 0) && !TEXTMODE && simple) { 184 185 Nbytes = gfits_matrix_size (&header); 185 186 fseek (f, Nbytes, SEEK_CUR);
Note:
See TracChangeset
for help on using the changeset viewer.
