Changeset 15743 for trunk/Ohana/src/addstar
- Timestamp:
- Dec 5, 2007, 3:29:29 PM (19 years ago)
- Location:
- trunk/Ohana/src/addstar/src
- Files:
-
- 10 edited
-
SEDfit.c (modified) (1 diff)
-
UpdateDatabase_Image.c (modified) (4 diffs)
-
UpdateDatabase_Refcat.c (modified) (3 diffs)
-
UpdateDatabase_Reflist.c (modified) (3 diffs)
-
addstar.c (modified) (3 diffs)
-
find_matches.c (modified) (1 diff)
-
find_matches_closest.c (modified) (1 diff)
-
find_matches_refstars.c (modified) (1 diff)
-
load2mass_catalog.c (modified) (1 diff)
-
sedstar.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/SEDfit.c
r15509 r15743 210 210 } 211 211 } 212 outcat[0].Naverage = Nave; 213 outcat[0].Nmeasure = Nmeas; 212 outcat[0].Naverage = Nave; 213 outcat[0].Nmeasure = Nmeas; 214 outcat[0].Nsecf_mem = Nave*Nsec; 214 215 215 216 free (sourceValue.mags); -
trunk/Ohana/src/addstar/src/UpdateDatabase_Image.c
r15036 r15743 13 13 14 14 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 15 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_M EAS_META | LOAD_MISS | LOAD_SECF;15 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF; 16 16 17 17 // XXX this is probably not needed anymore … … 49 49 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 50 50 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 51 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_M EAS_META | LOAD_MISS | LOAD_SECF;51 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF; 52 52 53 53 // an error exit status here is a significant error … … 57 57 } 58 58 59 // Nave _disk == 0 implies an empty catalog file59 // Naves_disk == 0 implies an empty catalog file 60 60 // for only_match, skip empty catalogs 61 if ((catalog.Nave _disk == 0) && options[0].only_match) {61 if ((catalog.Naves_disk == 0) && options[0].only_match) { 62 62 dvo_catalog_unlock (&catalog); 63 63 dvo_catalog_free (&catalog); … … 73 73 if (!options[0].only_images) { 74 74 SetProtect (TRUE); 75 dvo_catalog_save (&catalog, VERBOSE); 75 if (options[0].update) { 76 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 77 dvo_catalog_update (&catalog, VERBOSE); 78 } else { 79 dvo_catalog_save (&catalog, VERBOSE); 80 } 76 81 SetProtect (FALSE); 77 82 } -
trunk/Ohana/src/addstar/src/UpdateDatabase_Refcat.c
r14401 r15743 37 37 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 38 38 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 39 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_M EAS_META | LOAD_MISS | LOAD_SECF;39 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF; 40 40 41 41 // an error exit status here is a significant error … … 45 45 } 46 46 47 // Nave _disk == 0 implies an empty catalog file47 // Naves_disk == 0 implies an empty catalog file 48 48 // for only_match, skip empty catalogs 49 if ((catalog.Nave _disk == 0) && options[0].only_match) {49 if ((catalog.Naves_disk == 0) && options[0].only_match) { 50 50 dvo_catalog_unlock (&catalog); 51 51 dvo_catalog_free (&catalog); … … 62 62 if (!options[0].only_images) { 63 63 SetProtect (TRUE); 64 dvo_catalog_save (&catalog, VERBOSE); 64 if (options[0].update) { 65 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 66 dvo_catalog_update (&catalog, VERBOSE); 67 } else { 68 dvo_catalog_save (&catalog, VERBOSE); 69 } 65 70 SetProtect (FALSE); 66 71 } -
trunk/Ohana/src/addstar/src/UpdateDatabase_Reflist.c
r14401 r15743 37 37 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 38 38 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 39 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_M EAS_META | LOAD_MISS | LOAD_SECF;39 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF; 40 40 41 41 // an error exit status here is a significant error … … 46 46 47 47 /* for only_match, skip empty catalogs XXX EAM : this leaves behind empty files */ 48 if ((catalog.Nave _disk == 0) && options[0].only_match) {48 if ((catalog.Naves_disk == 0) && options[0].only_match) { 49 49 dvo_catalog_unlock (&catalog); 50 50 dvo_catalog_free (&catalog); … … 58 58 if (!options[0].only_images) { 59 59 SetProtect (TRUE); 60 dvo_catalog_save (&catalog, VERBOSE); 60 if (options[0].update) { 61 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 62 dvo_catalog_update (&catalog, VERBOSE); 63 } else { 64 dvo_catalog_save (&catalog, VERBOSE); 65 } 61 66 SetProtect (FALSE); 62 67 } -
trunk/Ohana/src/addstar/src/addstar.c
r15209 r15743 90 90 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 91 91 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 92 if (options.update) catalog.catflags = LOAD_AVES | LOAD_M EAS_META | LOAD_MISS | LOAD_SECF;92 if (options.update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF; 93 93 94 94 // open as read or write, depending on desire … … 105 105 } 106 106 107 // Nave _disk == 0 implies an empty catalog file107 // Naves_disk == 0 implies an empty catalog file 108 108 // for only_match, skip empty catalogs 109 if ((catalog.Nave _disk == 0) && options.only_match) {109 if ((catalog.Naves_disk == 0) && options.only_match) { 110 110 dvo_catalog_unlock (&catalog); 111 111 dvo_catalog_free (&catalog); … … 142 142 if (Nsubset && !options.only_images) { 143 143 SetProtect (TRUE); 144 dvo_catalog_save (&catalog, VERBOSE); 144 if (options.update) { 145 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 146 dvo_catalog_update (&catalog, VERBOSE); 147 } else { 148 dvo_catalog_save (&catalog, VERBOSE); 149 } 145 150 SetProtect (FALSE); 146 151 } -
trunk/Ohana/src/addstar/src/find_matches.c
r15509 r15743 361 361 catalog[0].Naverage = Nave; 362 362 catalog[0].Nmeasure = Nmeas; 363 catalog[0].Nsecf_mem = Nave*Nsecfilt; 363 364 if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas: %d %d %d, (%d matches)\n", Nstars, Nave, Nmeas, Nmatch); 364 365 -
trunk/Ohana/src/addstar/src/find_matches_closest.c
r15509 r15743 362 362 catalog[0].Naverage = Nave; 363 363 catalog[0].Nmeasure = Nmeas; 364 catalog[0].Nsecf_mem = Nave*Nsecfilt; 364 365 if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas: %d %d %d, (%d matches)\n", Nstars, Nave, Nmeas, Nmatch); 365 366 -
trunk/Ohana/src/addstar/src/find_matches_refstars.c
r15509 r15743 372 372 catalog[0].Nmeasure = Nmeas; 373 373 catalog[0].Nmissing = Nmiss; 374 catalog[0].Nsecf_mem = Nave*Nsecfilt; 374 375 if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas, Nmiss: %d %d %d %d, (%d matches)\n", Nstars, Nave, Nmeas, Nmiss, Nmatch); 375 376 return (Nmatch); -
trunk/Ohana/src/addstar/src/load2mass_catalog.c
r15509 r15743 79 79 catalog[0].Naverage = Nave; 80 80 catalog[0].Nmeasure = Nmeas; 81 catalog[0].Nsecf_mem = Nave*Nsec; 81 82 return (TRUE); 82 83 } -
trunk/Ohana/src/addstar/src/sedstar.c
r8361 r15743 34 34 } 35 35 36 // Nave _disk == 0 implies an empty catalog file37 if ((incatalog.Nave _disk == 0) && options.only_match) {36 // Naves_disk == 0 implies an empty catalog file 37 if ((incatalog.Naves_disk == 0) && options.only_match) { 38 38 if (VERBOSE) fprintf (stderr, "skipping empty region\n"); 39 39 dvo_catalog_unlock (&incatalog);
Note:
See TracChangeset
for help on using the changeset viewer.
