- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Ohana/src/addstar/src/addstar.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/Ohana/src/addstar/src/addstar.c
r29938 r34041 34 34 SkyTableSetFilenames (sky, CATDIR, "cpt"); 35 35 36 if (options.mode == M_RESORT) {36 if (options.mode == ADDSTAR_MODE_RESORT) { 37 37 if (NTHREADS == 0) { 38 resort_unthreaded (&options, sky );38 resort_unthreaded (&options, sky, 0, NULL); 39 39 } else { 40 40 resort_threaded (&options, sky); … … 47 47 /*** load in the new data (images, stars) ***/ 48 48 switch (options.mode) { 49 case M_IMAGE:49 case ADDSTAR_MODE_IMAGE: 50 50 stars = LoadStars (argv[1], &Nstars, &images, &Nimages, &options); 51 51 … … 62 62 ImageOptions (&options, images, Nimages); 63 63 break; 64 case M_REFLIST:64 case ADDSTAR_MODE_REFLIST: 65 65 stars = grefstars (argv[1], options.photcode, &Nstars); 66 66 skylist = SkyListForStars (sky, -1, stars, Nstars); 67 67 break; 68 case M_RESORT:69 case M_REFCAT:68 case ADDSTAR_MODE_RESORT: 69 case ADDSTAR_MODE_REFCAT: 70 70 skylist = SkyListByPatch (sky, -1, &UserPatch); 71 71 break; 72 case M_FAKEIMAGE:72 case ADDSTAR_MODE_FAKEIMAGE: 73 73 images = fakeimage (argv[1], &Nimages, options.photcode); 74 74 ALLOCATE (skylist, SkyList, 1); … … 137 137 138 138 switch (options.mode) { 139 case M_IMAGE:139 case ADDSTAR_MODE_IMAGE: 140 140 Nsubset = Nstars; 141 141 if (options.closest) { … … 145 145 } 146 146 break; 147 case M_REFCAT:147 case ADDSTAR_MODE_REFCAT: 148 148 stars = greference (argv[1], skylist[0].regions[i], options.photcode, &Nstars); 149 case M_REFLIST:149 case ADDSTAR_MODE_REFLIST: 150 150 subset = find_subset (skylist[0].regions[i], stars, Nstars, &Nsubset); 151 151 if (options.closest) { … … 156 156 if (Nsubset) free (subset); 157 157 break; 158 case M_RESORT:158 case ADDSTAR_MODE_RESORT: 159 159 if (options.nosort == 3) catalog.sorted = FALSE; 160 160 … … 192 192 dvo_catalog_free (&catalog); 193 193 194 if (options.mode == M_REFCAT) free (stars);194 if (options.mode == ADDSTAR_MODE_REFCAT) free (stars); 195 195 } 196 196 … … 216 216 217 217 /* add the new images and save */ 218 if (options.mode == M_IMAGE) {218 if (options.mode == ADDSTAR_MODE_IMAGE) { 219 219 dvo_image_addrows (&db, images, Nimages); 220 220 SetProtect (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
