IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 23, 2009, 3:07:13 PM (17 years ago)
Author:
bills
Message:

add --release option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/magic_destreak.pl

    r21085 r21157  
    3030my ($magic_ds_id, $camera, $streaks, $stage, $stage_id, $component, $uri, $path_base, $cam_path_base);
    3131my ($outroot, $recoveryroot);
    32 my ($replace, $remove);
     32my ($replace, $remove, $release);
    3333my ($dbname, $save_temps, $verbose, $no_update, $no_op, $logfile);
     34
     35# XXX: remove this
     36$release = 1;
    3437
    3538GetOptions(
     
    4548           'outroot=s'      => \$outroot,     # "directory" for temporary images (may be nebulous)
    4649           'recoveryroot=s' => \$recoveryroot,# "directory" for saving the images of excised pixels
    47            'replace=s'        => \$replace,    # replace the input images with the results.
    48            'remove=s'         => \$remove,     # remove the original images when done YIKES!
     50           'replace=s'      => \$replace,    # replace the input images with the results.
     51           'remove=s'       => \$remove,     # remove the original images when done YIKES!
     52           'release'        => \$release,    # NAN masked pixels for release
    4953           'save-temps'     => \$save_temps, # Save temporary files?
    5054           'dbname=s'       => \$dbname,     # Database name
     
    180184if ($stage eq "raw") {
    181185    $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base);
     186    $mask   = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id) if $release ;
    182187} elsif ($stage eq "chip") {
    183188    # we use the mask output from the camera stage for input and replace
     
    197202{
    198203    my $command = "$streaksremove -stage $stage -tmproot $outroot -streaks $streaks -image $image";
     204
     205    $command .= " -release" if $release;
     206
    199207    $command .= " -class_id $class_id" if defined $class_id;
    200208    $command .= " -recovery $recoveryroot" if defined $recoveryroot;
Note: See TracChangeset for help on using the changeset viewer.