Changeset 20906
- Timestamp:
- Dec 4, 2008, 6:06:38 PM (17 years ago)
- Location:
- branches/eam_branch_20081124/Ohana/src/addstar
- Files:
-
- 5 edited
-
include/addstar.h (modified) (1 diff)
-
src/ConfigInit.c (modified) (1 diff)
-
src/ReadImageHeader.c (modified) (2 diffs)
-
src/find_matches.c (modified) (1 diff)
-
src/find_matches_closest.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081124/Ohana/src/addstar/include/addstar.h
r20820 r20906 87 87 char STKeyword[64]; 88 88 char ExtnameKeyword[64]; 89 char ImageIDKeyword[64]; 90 char SourceIDKeyword[64]; 89 91 90 92 /* these globals modify the behavior of gstars (KEEP) */ -
branches/eam_branch_20081124/Ohana/src/addstar/src/ConfigInit.c
r20820 r20906 67 67 ScanConfig (config, "OBSERVATORY-LONGITUDE", "%lf", 0, &Longitude); 68 68 ScanConfig (config, "SUBPIX_DATAFILE", "%s", 0, SubpixDatafile); 69 70 ScanConfig (config, "IMAGE-ID-KEYWORD", "%s", 0, ImageIDKeyword); 71 ScanConfig (config, "SOURCE-ID-KEYWORD", "%s", 0, SourceIDKeyword); 69 72 70 73 if (!ScanConfig (config, "EXTNAME-KEYWORD", "%s", 0, ExtnameKeyword)) { -
branches/eam_branch_20081124/Ohana/src/addstar/src/ReadImageHeader.c
r20184 r20906 5 5 int ReadImageHeader (Header *header, Image *image, int photcode) { 6 6 7 int Nastro, ccdnum, hour, min, Nx, Ny, haveNx, haveNy ;7 int Nastro, ccdnum, hour, min, Nx, Ny, haveNx, haveNy, sourceID; 8 8 double tmp, sec, Cerror, ZeroPt, FWHM_X, FWHM_Y; 9 9 char *c, photname[64], line[80]; … … 178 178 } 179 179 180 if (!gfits_scan (header, ImageIDKeyword, "%d", 1, &image[0].externID)) { 181 image[0].externID = 0; 182 } 183 if (!gfits_scan (header, SourceIDKeyword, "%d", 1, &sourceID)) { 184 image[0].sourceID = 0; 185 } else { 186 if (sourceID > 0xffff) { 187 fprintf (stderr, "image source ID is surprisingly large: %d, skipping\n", sourceID); 188 return (FALSE); 189 } 190 image[0].sourceID = sourceID; 191 } 192 180 193 gfits_scan (header, "ZERO_PT", "%lf", 1, &ZeroPt); 181 194 if (ZeroPt != GetZeroPoint()) { -
branches/eam_branch_20081124/Ohana/src/addstar/src/find_matches.c
r17195 r20906 193 193 194 194 catalog[0].measure[Nmeas].detID = stars[N].detID; 195 catalog[0].measure[Nmeas].imageID = options.imageID;195 catalog[0].measure[Nmeas].imageID = stars[N].imageID; 196 196 197 197 catalog[0].measure[Nmeas].dXccd = stars[N].dX; -
branches/eam_branch_20081124/Ohana/src/addstar/src/find_matches_closest.c
r17194 r20906 215 215 216 216 catalog[0].measure[Nmeas].detID = stars[N].detID; 217 catalog[0].measure[Nmeas].imageID = options.imageID;217 catalog[0].measure[Nmeas].imageID = stars[N].imageID; 218 218 219 219 catalog[0].measure[Nmeas].dXccd = stars[N].dX; … … 327 327 328 328 catalog[0].measure[Nmeas].detID = stars[N].detID; 329 catalog[0].measure[Nmeas].imageID = options.imageID;329 catalog[0].measure[Nmeas].imageID = stars[N].imageID; 330 330 331 331 catalog[0].measure[Nmeas].dXccd = stars[N].dX;
Note:
See TracChangeset
for help on using the changeset viewer.
