Changeset 7973
- Timestamp:
- Jul 25, 2006, 8:13:36 AM (20 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 6 edited
-
addstar/src/find_matches_refstars.c (modified) (1 diff)
-
addstar/src/gettycho.c (modified) (2 diffs)
-
gastro2/include/gastro2.h (modified) (1 diff)
-
gastro2/src/gargs.c (modified) (1 diff)
-
gastro2/src/getptolemy.c (modified) (1 diff)
-
gastro2/src/gptolemy2.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: -
trunk/Ohana/src/gastro2/include/gastro2.h
r7962 r7973 125 125 int GASTRO_MAX_NSTARS; 126 126 int TEXTMODE; 127 int PTOLEMY_FILL_FACTOR; 127 128 128 129 int FORCE; -
trunk/Ohana/src/gastro2/src/gargs.c
r7962 r7973 35 35 if ((N = get_argument (*argc, argv, "-textmode"))) { 36 36 TEXTMODE = TRUE; 37 remove_argument (N, argc, argv); 38 } 39 40 /* force read of image database with mismatched NSTARS & size */ 41 PTOLEMY_FILL_FACTOR = FALSE; 42 if ((N = get_argument (*argc, argv, "-ptolemy-fill-factor"))) { 43 PTOLEMY_FILL_FACTOR = TRUE; 37 44 remove_argument (N, argc, argv); 38 45 } -
trunk/Ohana/src/gastro2/src/getptolemy.c
r2442 r7973 18 18 if (Nptolemy == 0) continue; 19 19 20 FracArea = ptolemy_area (ptolemy, Nptolemy, ®ions[i]); 20 // XXX this measurement adjusts a DVO database for 21 // partial coverage; the correction is bogus if the 22 // sky density of the catalog is too low (<< 100 stars 23 // per field 24 FracArea = 1.0; 25 if (PTOLEMY_FILL_FACTOR) { 26 FracArea = ptolemy_area (ptolemy, Nptolemy, ®ions[i]); 27 } 21 28 22 29 Ns = Ref[0].N; -
trunk/Ohana/src/gastro2/src/gptolemy2.c
r6683 r7973 19 19 switch (lock_catalog (&catalog, LCK_SOFT)) { 20 20 case 0: 21 fprintf (stderr, "can't lock catalog %s\n", filename); 22 return ((GSCdata *)NULL); 21 23 case 2: 22 fprintf (stderr, "ca n't lock catalog data %s\n", filename);24 fprintf (stderr, "catalog %s is empty\n", filename); 23 25 return ((GSCdata *)NULL); 24 26 case 1: … … 40 42 ALLOCATE (stars, GSCdata, *Nstars); 41 43 42 /* select all entries, ignore magnitudes*/44 /* select all entries, use first magnitude */ 43 45 for (i = 0; i < catalog.Naverage; i++, nstar++) { 44 46 stars[nstar].R = catalog.average[i].R;
Note:
See TracChangeset
for help on using the changeset viewer.
