IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 30, 2012, 4:31:12 PM (14 years ago)
Author:
watersc1
Message:

Final changes to implement background restoration in ppBackground. Using the -recipe PPBACKGROUND STACK now gets the information from the correct place. The default value should retain the old behavior as well.

Change to skycell_jpeg to prevent masks from being made the wrong way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20120906/ippScripts/scripts/skycell_jpeg.pl

    r34491 r34628  
    269269    my %tangents = ();
    270270
    271     my %products = ('image' => "PPSTACK.OUTPUT",
    272                     'mask'  => "PPSTACK.OUTPUT.MASK",
    273                     'variance' => "PPSTACK.OUTPUT.VARIANCE",
    274                     'exp'   => "PPSTACK.OUTPUT.EXP",
    275                     'num'   => "PPSTACK.OUTPUT.EXPNUM",
    276 #                   'bkg'   => "PPSTACK.OUTPUT.BKG"
     271    my %products = ('image' => "PPSTACK.UNCONV",
     272                    'mask'  => "PPSTACK.UNCONV.MASK",
     273                    'variance' => "PPSTACK.UNCONV.VARIANCE",
     274                    'exp'   => "PPSTACK.UNCONV.EXP",
     275                    'num'   => "PPSTACK.UNCONV.EXPNUM",
     276                    'bkg'   => "PPSTACK.OUTPUT.BKGMODEL"
    277277        );
    278278   
     
    292292        unless (exists($tangents{$projection_cell})) {
    293293            # Make a temp file and fill, but be sure to save
    294            
    295294            foreach my $key (keys %products) {
    296                
    297295                ($tempFile, $tempName) = tempfile("/tmp/skycell.$projection_cell.$key.XXXX",
    298296                                                  UNLINK => !$save_temps);
     
    321319            $command = "$ppSkycell -images $tangents{$projection_cell}{$key}{NAME}";
    322320            $command .= " ${outroot}.${projection_cell}.${key} ";
     321            if ($key eq 'bkg') {
     322                $command .= " -Di BIN1 1 -Di BIN2 1 ";
     323            }
     324            elsif ($key eq 'image') {
     325                $command .= " -masks $tangents{$projection_cell}{mask}{NAME} ";
     326            }
     327            elsif ($key eq 'mask') {
     328                next; # This should be made with the images.
     329            }
    323330            print "$command\n";
    324331            ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.