- 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/photdbc/src/initialize.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/Ohana/src/photdbc/src/initialize.c
r30616 r34041 2 2 3 3 void initialize (int argc, char **argv) { 4 5 int NPHOTCODES;6 char *codename, *ptr, *list;7 4 8 5 /* are these set correctly? */ … … 15 12 args (argc, argv); 16 13 17 NphotcodesDrop = 0; 18 photcodesDrop = NULL; 19 if (PHOTCODE_DROP_LIST != NULL) { 20 NPHOTCODES = 10; 21 ALLOCATE (photcodesDrop, PhotCode *, NPHOTCODES); 22 23 /* parse the comma-separated list of photcodesDrop */ 24 list = PHOTCODE_DROP_LIST; 25 while ((codename = strtok_r (list, ",", &ptr)) != NULL) { 26 list = NULL; // pass NULL on successive strtok_r calls 27 fprintf (stderr, "PHOTCODE_LIST: %s\n", PHOTCODE_DROP_LIST); 28 fprintf (stderr, "codename: %s\n", codename); 29 if ((photcodesDrop[NphotcodesDrop] = GetPhotcodebyName (codename)) == NULL) { 30 fprintf (stderr, "ERROR: photcode %s not found in photcode table\n", codename); 31 exit (1); 32 } 33 NphotcodesDrop ++; 34 CHECK_REALLOCATE (photcodesDrop, PhotCode *, NPHOTCODES, NphotcodesDrop, 10); 35 } 36 } 37 38 NphotcodesSkip = 0; 39 photcodesSkip = NULL; 40 if (PHOTCODE_SKIP_LIST != NULL) { 41 NPHOTCODES = 10; 42 ALLOCATE (photcodesSkip, PhotCode *, NPHOTCODES); 43 44 /* parse the comma-separated list of photcodesSkip */ 45 list = PHOTCODE_SKIP_LIST; 46 while ((codename = strtok_r (list, ",", &ptr)) != NULL) { 47 list = NULL; // pass NULL on successive strtok_r calls 48 fprintf (stderr, "PHOTCODE_LIST: %s\n", PHOTCODE_SKIP_LIST); 49 fprintf (stderr, "codename: %s\n", codename); 50 if ((photcodesSkip[NphotcodesSkip] = GetPhotcodebyName (codename)) == NULL) { 51 fprintf (stderr, "ERROR: photcode %s not found in photcode table\n", codename); 52 exit (1); 53 } 54 NphotcodesSkip ++; 55 CHECK_REALLOCATE (photcodesSkip, PhotCode *, NPHOTCODES, NphotcodesSkip, 10); 56 } 57 } 14 photcodesDrop = ParsePhotcodeList (PHOTCODE_DROP_LIST, &NphotcodesDrop, FALSE); 15 photcodesSkip = ParsePhotcodeList (PHOTCODE_SKIP_LIST, &NphotcodesSkip, FALSE); 58 16 59 17 if (SHOW_PARAMS) { … … 84 42 } 85 43 44 void initialize_client (int argc, char **argv) { 45 46 /* are these set correctly? */ 47 if (get_argument (argc, argv, "-h")) usage(); 48 if (get_argument (argc, argv, "--h")) usage(); 49 if (get_argument (argc, argv, "-help")) usage(); 50 if (get_argument (argc, argv, "--help")) usage(); 51 52 ConfigInit (&argc, argv); 53 args_client (argc, argv); 54 55 photcodesDrop = ParsePhotcodeList (PHOTCODE_DROP_LIST, &NphotcodesDrop, FALSE); 56 photcodesSkip = ParsePhotcodeList (PHOTCODE_SKIP_LIST, &NphotcodesSkip, FALSE); 57 58 if (SHOW_PARAMS) { 59 fprintf (stderr, "current parameter settings:\n"); 60 fprintf (stderr, "VERBOSE: %d\n", VERBOSE); 61 fprintf (stderr, "JOIN_RADIUS: %lf\n", JOIN_RADIUS); 62 fprintf (stderr, "UNIQ_RADIUS: %lf\n", UNIQ_RADIUS); 63 64 fprintf (stderr, "XMIN: %lf\n", XMIN); 65 fprintf (stderr, "XMAX: %lf\n", XMAX); 66 fprintf (stderr, "YMIN: %lf\n", YMIN); 67 fprintf (stderr, "YMAX: %lf\n", YMAX); 68 fprintf (stderr, "MMIN: %lf\n", MMIN); 69 fprintf (stderr, "MMAX: %lf\n", MMAX); 70 fprintf (stderr, "DMCAL_MIN: %lf\n", DMCAL_MIN); 71 fprintf (stderr, "DMSYS: %lf\n", DMSYS); 72 73 fprintf (stderr, "CHISQ_MAX: %lf\n", CHISQ_MAX); 74 fprintf (stderr, "NMEAS_MIN: %d\n", NMEAS_MIN); 75 76 fprintf (stderr, "IMAGE_CATALOG %s\n", ImageCat); 77 fprintf (stderr, "GSCFILE %s\n", GSCFILE); 78 fprintf (stderr, "CATDIR %s\n", CATDIR); 79 fprintf (stderr, "PHOTCODE_FILE %s\n", PhotCodeFile); 80 81 exit (0); 82 } 83 }
Note:
See TracChangeset
for help on using the changeset viewer.
