Changeset 37429
- Timestamp:
- Sep 23, 2014, 5:42:05 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904/Ohana/src/addstar/src
- Files:
-
- 4 edited
-
addstar.c (modified) (3 diffs)
-
args_loadstarpar.c (modified) (1 diff)
-
find_matches_starpar.c (modified) (7 diffs)
-
loadstarpar_readstars.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/addstar/src/addstar.c
r37357 r37429 132 132 } 133 133 } 134 MARKTIME ("load cpt: %f sec\n", dtime); RESETTIME;134 if (VERBOSE) MARKTIME ("load cpt: %f sec\n", dtime); RESETTIME; 135 135 136 136 // Naves_disk == 0 implies an empty catalog file … … 163 163 break; 164 164 } 165 MARKTIME ("match stars: %f sec\n", dtime); RESETTIME;165 if (VERBOSE) MARKTIME ("match stars: %f sec\n", dtime); RESETTIME; 166 166 167 167 /* report total updated values */ … … 183 183 dvo_catalog_unlock (&catalog); 184 184 dvo_catalog_free (&catalog); 185 MARKTIME ("save cpt: %f sec\n", dtime); RESETTIME;185 if (VERBOSE) MARKTIME ("save cpt: %f sec\n", dtime); RESETTIME; 186 186 187 187 if (options.mode == ADDSTAR_MODE_REFCAT) free (stars); -
branches/eam_branches/ipp-20140904/Ohana/src/addstar/src/args_loadstarpar.c
r37422 r37429 97 97 98 98 if (argc < 2) { 99 fprintf (stderr, "USAGE: loadstarpar [options] ( wisefile) [..more files]\n");99 fprintf (stderr, "USAGE: loadstarpar [options] (fitsfile) [..more files]\n"); 100 100 exit (2); 101 101 } -
branches/eam_branches/ipp-20140904/Ohana/src/addstar/src/find_matches_starpar.c
r37422 r37429 22 22 ALLOCATE (Y2, double, NAVE); 23 23 ALLOCATE (N2, off_t, NAVE); 24 25 ALLOCATE (catalog[0].found_t, off_t, NAVE);26 24 27 25 /* internal counters */ … … 57 55 RD_to_XY (&X2[i], &Y2[i], catalog[0].average[i].R, catalog[0].average[i].D, &tcoords); 58 56 N2[i] = i; 59 catalog[0].found_t[N2[i]] = -1;60 57 } 61 58 sort_coords_index (X2, Y2, N2, Nave); … … 88 85 } 89 86 90 if (stars[N1[i]].found != -1) {87 if (stars[N1[i]].found) { 91 88 /* this star has already been assigned to an object in this or another catalog */ 92 89 i++; … … 144 141 // XXX if I add R,D to starpar, I should rationalize R,D to the same boundary? 145 142 146 stars[N].found = Nstarpar; 147 catalog[0].found_t[n] = Nstarpar; 143 stars[N].found = TRUE; 148 144 catalog[0].average[n].Nstarpar ++; 149 145 Nstarpar ++; … … 156 152 157 153 // skip already matched stars 158 if (stars[i].found != -1) continue;154 if (stars[i].found) continue; 159 155 if (!IN_REGION (stars[i].R, stars[i].D)) continue; 160 156 … … 194 190 catalog[0].starpar[Nstarpar].catID = catID; 195 191 196 stars[i].found = Nstarpar;192 stars[i].found = TRUE; 197 193 Nstarpar ++; 198 194 Nave ++; … … 204 200 205 201 catalog[0].sorted = FALSE; 206 207 /* note stars which have been found in this catalog */208 for (i = 0; i < Nstars; i++) {209 if (stars[i].found > -1) {210 stars[i].found = -2;211 }212 }213 202 214 203 /* check if the catalog has changed? if no change, no need to write */ -
branches/eam_branches/ipp-20140904/Ohana/src/addstar/src/loadstarpar_readstars.c
r37422 r37429 49 49 GET_COLUMN (glat, "l", float); 50 50 GET_COLUMN (glon, "b", float); 51 GET_COLUMN (conv, "conv", char);51 GET_COLUMN (conv, "conv", byte); 52 52 GET_COLUMN (lnZ, "lnZ", float); 53 53 GET_COLUMN (DistMag, "DM", float); … … 113 113 float dEbv = 0.5*(errImage[i*20 + 5*0 + 3] - errImage[i*20 + 5*0 + 1]); 114 114 float dDistMag = 0.5*(errImage[i*20 + 5*1 + 3] - errImage[i*20 + 5*1 + 1]); 115 float d FeH= 0.5*(errImage[i*20 + 5*2 + 3] - errImage[i*20 + 5*2 + 1]);116 float d M_r= 0.5*(errImage[i*20 + 5*3 + 3] - errImage[i*20 + 5*3 + 1]);115 float dM_r = 0.5*(errImage[i*20 + 5*2 + 3] - errImage[i*20 + 5*2 + 1]); 116 float dFeH = 0.5*(errImage[i*20 + 5*3 + 3] - errImage[i*20 + 5*3 + 1]); 117 117 118 118 stars[Nstars].R = R;
Note:
See TracChangeset
for help on using the changeset viewer.
