IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 13, 2012, 2:13:03 PM (14 years ago)
Author:
bills
Message:

add option to to ppstamp to return an entire file instead of a region of interest.
This is useful for two purposes.

  1. To undo the asinh storage for stacks
  2. To replace the astrometry from chip stage with the camera stage fit

Also fixed a bug in jpeg creation for chip stage. Dropped the flipping for chip
stage as well. That is incorrect. We want the jpeg to match the chip image.
Also made the default to no_censor_masked since that isn't the usual case now
that magic is no longer a requirement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/ppstampArguments.c

    r33378 r33504  
    6262    *pOptions = options;
    6363
    64     if (!pstampGetROI(&options->roip, &argc, argv, &gotCenter, &gotRange)) {
    65         usage();
     64    if ((argnum = psArgumentGet(argc, argv, "-wholefile"))) {
     65        psArgumentRemove(argnum, &argc, argv);
     66        gotCenter = true;
     67        gotRange = true;
     68        options->wholeFile = true;
     69    } else {
     70        if (!pstampGetROI(&options->roip, &argc, argv, &gotCenter, &gotRange)) {
     71            usage();
     72        }
    6673    }
    6774
     
    105112   
    106113    if ((argnum = psArgumentGet(argc, argv, "-no_censor_masked"))) {
     114        // this is the default. This is for compatiability
    107115        psArgumentRemove(argnum, &argc, argv);
    108116        options->censorMasked = false;
     117    }
     118    if ((argnum = psArgumentGet(argc, argv, "-censor_masked"))) {
     119        // default changed to not censor allow it to be changed back to true
     120        psArgumentRemove(argnum, &argc, argv);
     121        options->censorMasked = true;
     122    }
     123    if ((argnum = psArgumentGet(argc, argv, "-nocompress"))) {
     124        psArgumentRemove(argnum, &argc, argv);
     125        options->nocompress = true;
    109126    }
    110127
Note: See TracChangeset for help on using the changeset viewer.