Changeset 2661 for trunk/stac/src/stacConfig.c
- Timestamp:
- Dec 7, 2004, 3:38:05 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacConfig.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacConfig.c
r2500 r2661 9 9 { 10 10 fprintf (stderr, "STAC: Simultaneous Telescope Array Combination\n" 11 "Usage: %s [-h] [-v] [-g GAIN] [-r RN] [-o NX NY] [-s SAT] [-b BAD] [-k REJ] [-k FRAC] OUT IN1 IN2...\n"11 "Usage: %s [-h] [-v] [-g GAIN] [-r RN] [-o NX NY] [-s SAT] [-b BAD] [-k REJ] [-k FRAC] [-G GRAD] OUT IN1 IN2...\n" 12 12 "where\n" 13 13 "\t-h Help (this info)\n" … … 19 19 "\t-b BAD Bad level (0)\n" 20 20 "\t-k REJ Rejection level (k-sigma; 3.5)\n" 21 "\t-f FRAC Fraction of pixel to be marked before considered bad (0.8)\n" 21 "\t-f FRAC Fraction of pixel to be marked before considered bad (0.5)\n" 22 "\t-d GRAD Gradient threshold for pixel to be marked (0.0)\n" 22 23 "\tOUT Output image\n" 23 24 "\tIN1, IN2... Input images, which have associated .map files.\n", … … 37 38 config->inputs = NULL; 38 39 config->output = NULL; 39 config->outnx = 512;40 config->outny = 512;40 config->outnx = 1024; 41 config->outny = 1024; 41 42 config->saturated = 65536.0; 42 43 config->bad = 0.0; 43 config->reject = 2.75;44 config->reject = 3.5; 44 45 config->frac = 0.5; 46 config->grad = 0.4; 45 47 46 48 return config; … … 72 74 73 75 /* Parse command-line arguments using getopt */ 74 while ((opt = getopt(argc, argv, "hvg:r:o:s:b:k:f: ")) != -1) {76 while ((opt = getopt(argc, argv, "hvg:r:o:s:b:k:f:G:")) != -1) { 75 77 switch (opt) { 76 78 case 'h': … … 121 123 } 122 124 break; 125 case 'G': 126 if (sscanf(optarg, "%f", &config->grad) != 1) { 127 help(programName); 128 } 129 break; 123 130 default: 124 131 help(programName);
Note:
See TracChangeset
for help on using the changeset viewer.
