IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 21, 2004, 4:07:04 PM (22 years ago)
Author:
Paul Price
Message:

Running fast now. Only optimisation tweaks to be made now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacConfig.c

    r2711 r2783  
    99{
    1010    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] [-G GRAD] OUT IN1 IN2...\n"
     11             "Usage: %s [-h] [-v] [-g GAIN] [-r RN] [-o NX NY] [-s SAT] [-b BAD] [-k REJ] [-n NREJECT] [-k FRAC] [-G GRAD] OUT IN1 IN2...\n"
    1212             "where\n"
    1313             "\t-h           Help (this info)\n"
     
    1919             "\t-b BAD       Bad level (0)\n"
    2020             "\t-k REJ       Rejection level (k-sigma; 3.5)\n"
     21             "\t-n NREJECT   Number of rejection iterations (2)\n"
    2122             "\t-f FRAC      Fraction of pixel to be marked before considered bad (0.5)\n"
    2223             "\t-d GRAD      Gradient threshold for pixel to be marked (0.0)\n"
     
    4546    config->frac = 0.5;
    4647    config->grad = 0.4;
     48    config->nReject = 2;
    4749
    4850    return config;
     
    7476
    7577    /* Parse command-line arguments using getopt */
    76     while ((opt = getopt(argc, argv, "hvg:r:o:s:b:k:f:G:")) != -1) {
     78    while ((opt = getopt(argc, argv, "hvg:r:o:s:b:k:n:f:G:")) != -1) {
    7779        switch (opt) {
    7880          case 'h':
     
    115117          case 'k':
    116118            if (sscanf(optarg, "%f", &config->reject) != 1) {
     119                help(programName);
     120            }
     121            break;
     122          case 'n':
     123            if (sscanf(optarg, "%d", &config->nReject) != 1) {
    117124                help(programName);
    118125            }
Note: See TracChangeset for help on using the changeset viewer.