IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29885


Ignore:
Timestamp:
Nov 30, 2010, 3:29:11 PM (15 years ago)
Author:
bills
Message:

in pstamp_job_run.pl If the input images are not magicked do not set masked pixels to NAN.
in ppstamp add a flag to ppstamp to not censor (set to NAN) masked pixels.
(Default is to censor)

Location:
trunk/pstamp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_job_run.pl

    r29380 r29885  
    119119    $command .= " -dbserver $dbserver" if $dbserver;
    120120    $command .= " -stage $params->{stage}" if $params->{stage};
     121    $command .= " -no_censor_masked" unless $nan_masked;
    121122    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    122123        run(command => $command, verbose => $verbose);
  • trunk/pstamp/src/ppstampArguments.c

    r29379 r29885  
    2525    fprintf(stderr, "   [-mask   mk_image] :     mask image\n");
    2626    fprintf(stderr, "   [-variance var_image] :  variance image\n");
     27    fprintf(stderr, "   [-no_censor_masked] : do not set masked pixels to NAN\n");
    2728    fprintf(stderr, "\n");
    2829
     
    9596    }
    9697   
     98    if ((argnum = psArgumentGet(argc, argv, "-no_censor_masked"))) {
     99        psArgumentRemove(argnum, &argc, argv);
     100        options->censorMasked = false;
     101    }
    97102
    98103    // finally the output file
  • trunk/pstamp/src/ppstampMakeStamp.c

    r29388 r29885  
    327327            }
    328328
    329             if (!setMaskedToNAN(config, outReadout->image, outReadout->mask, outReadout->variance)) {
     329            if (options->censorMasked && !setMaskedToNAN(config, outReadout->image, outReadout->mask, outReadout->variance)) {
    330330                 psError(PS_ERR_UNKNOWN, false, "failed to create postage stamp mask image\n");
    331331                 status = false;
  • trunk/pstamp/src/ppstampOptions.c

    r16132 r29885  
    2828    options->roip.dDEC = 0;
    2929    options->chipName  = NULL;
     30    options->censorMasked = true;
    3031
    3132    return options;
  • trunk/pstamp/src/ppstampOptions.h

    r29379 r29885  
    1515    //
    1616    psRegion    roi;            // roi in chip coordinates
     17    bool        censorMasked;
    1718
    1819} ppstampOptions;
Note: See TracChangeset for help on using the changeset viewer.