Changeset 12332 for trunk/Ohana/src/getstar
- Timestamp:
- Mar 8, 2007, 12:21:18 PM (19 years ago)
- Location:
- trunk/Ohana/src/getstar/src
- Files:
-
- 3 edited
-
ConfigInit.c (modified) (3 diffs)
-
select_by_image.c (modified) (2 diffs)
-
select_by_region.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/getstar/src/ConfigInit.c
r6968 r12332 4 4 5 5 char *config, *file; 6 char PhotCodeFile[256]; 6 char CatdirPhotcodeFile[256]; 7 char MasterPhotcodeFile[256]; 7 8 8 9 /*** load configuration info ***/ … … 20 21 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 21 22 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 22 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, PhotCodeFile);23 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile); 23 24 if (!ScanConfig (config, "SKY_DEPTH", "%d", 0, &SKY_DEPTH)) { 24 25 SKY_DEPTH = 2; … … 31 32 if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR"); 32 33 33 if (!LoadPhotcodes (PhotCodeFile)) { 34 fprintf (stderr, "error loading photcodes\n"); 34 /* XXX this does not yet write out the master photcode table */ 35 sprintf (MasterPhotcodeFile, "%s/Photcodes.dat", CATDIR); 36 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile)) { 37 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile); 35 38 exit (1); 36 39 } -
trunk/Ohana/src/getstar/src/select_by_image.c
r6812 r12332 21 21 start = image[0].tzero; 22 22 end = image[0].tzero + 1e-4*image[0].NY*image[0].trate; /* trate is in 0.1 msec / row */ 23 photcode = image[0]. source;23 photcode = image[0].photcode; 24 24 } 25 25 if (VERBOSE) fprintf (stderr, "extracting for range %d to %d (photcode %s)\n", start, end, photcode); … … 27 27 for (i = 0; (i < catalog[0].Nmeasure); i++) { 28 28 if ((i % 10000) == 0) fprintf (stderr, ". "); 29 if ((catalog[0].measure[i].t >= start) && (catalog[0].measure[i].t <= end) && (photcode == catalog[0].measure[i]. source)) {29 if ((catalog[0].measure[i].t >= start) && (catalog[0].measure[i].t <= end) && (photcode == catalog[0].measure[i].photcode)) { 30 30 n = catalog[0].measure[i].averef; 31 31 stars[N].R = catalog[0].average[n].R - catalog[0].measure[i].dR / 360000.0; -
trunk/Ohana/src/getstar/src/select_by_region.c
r9630 r12332 38 38 if (D > region[0].Dmax) continue; 39 39 40 if (MagLimitUse && (catalog[0].average[i].M > MagLimitValue)) continue; 40 /* XXX add photcode as argument to MagLimitUse */ 41 if (MagLimitUse && (catalog[0].secfilt[Nsecfilt*i].M > MagLimitValue)) continue; 41 42 42 43 output[0].average[Nave] = catalog[0].average[i];
Note:
See TracChangeset
for help on using the changeset viewer.
