IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 4, 2009, 12:32:32 PM (17 years ago)
Author:
bills
Message:

When destreaking chip stage images, use replace the mask from the chip
stage with the mask from the camera stage, destreaking them both.
Added program to prepare images for release by insuring that all masked
pixels are set to NAN

File:
1 edited

Legend:

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

    r20941 r21085  
    176176my $image = $uri;
    177177
    178 my ($mask, $weight, $astrom);
     178my ($mask, $ch_mask, $weight, $astrom);
    179179
    180180if ($stage eq "raw") {
    181181    $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base);
    182182} elsif ($stage eq "chip") {
    183     $mask   = $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id);
     183    # we use the mask output from the camera stage for input and replace
     184    # the output of the chip stage with that mask as well.
     185    $mask   = $ipprc->filename("PSASTRO.OUTPUT.MASK", $cam_path_base, $class_id);
     186    $ch_mask= $ipprc->filename("PPIMAGE.CHIP.MASK", $path_base, $class_id);
    184187    $weight = $ipprc->filename("PPIMAGE.CHIP.WEIGHT", $path_base, $class_id);
    185188    $astrom = $ipprc->filename("PSASTRO.OUTPUT", $cam_path_base);
     
    198201    $command .= " -astrom $astrom" if defined $astrom;
    199202    $command .= " -mask $mask" if defined $mask;
     203    $command .= " -chip_mask $ch_mask" if defined $ch_mask;
    200204    $command .= " -weight $weight" if defined $weight;
    201205    $command .= " -skycelllist $skycell_list" if defined $skycell_list;
Note: See TracChangeset for help on using the changeset viewer.