IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2004, 3:38:05 PM (22 years ago)
Author:
Paul Price
Message:

Working, but not getting faint CRs

File:
1 edited

Legend:

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

    r2500 r2661  
    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] 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"
    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-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"
    2223             "\tOUT          Output image\n"
    2324             "\tIN1, IN2...  Input images, which have associated .map files.\n",
     
    3738    config->inputs = NULL;
    3839    config->output = NULL;
    39     config->outnx = 512;
    40     config->outny = 512;
     40    config->outnx = 1024;
     41    config->outny = 1024;
    4142    config->saturated = 65536.0;
    4243    config->bad = 0.0;
    43     config->reject = 2.75;
     44    config->reject = 3.5;
    4445    config->frac = 0.5;
     46    config->grad = 0.4;
    4547
    4648    return config;
     
    7274
    7375    /* 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) {
    7577        switch (opt) {
    7678          case 'h':
     
    121123            }
    122124            break;
     125          case 'G':
     126            if (sscanf(optarg, "%f", &config->grad) != 1) {
     127                help(programName);
     128            }
     129            break;
    123130          default:
    124131            help(programName);
Note: See TracChangeset for help on using the changeset viewer.