IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 6, 2014, 11:48:53 AM (12 years ago)
Author:
eugene
Message:

merging changes from trunk

Location:
branches/eam_branches/ipp-20131211
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20131211

  • branches/eam_branches/ipp-20131211/ippScripts/scripts/staticsky.pl

    r34852 r36480  
    138138        my $configuration = $ipprc->filename("PSPHOT.STACK.CONFIG", $outroot);
    139139
     140        my $needConvolvedImages = 0;
     141
    140142        foreach my $file (@$files) {
    141143            print $listFile "INPUT   METADATA\n";
     
    146148            my $stack_id = $file->{stack_id};
    147149
    148             my $imageCnv  = $ipprc->filename("PPSTACK.OUTPUT",          $path_base ); # Image name
    149             my $maskCnv   = $ipprc->filename("PPSTACK.OUTPUT.MASK",     $path_base ); # Mask name
    150             my $weightCnv = $ipprc->filename("PPSTACK.OUTPUT.VARIANCE", $path_base ); # Weight name
    151             my $expnumCnv = $ipprc->filename("PPSTACK.OUTPUT.EXPNUM",   $path_base ); # Expnum name
     150            my ($imageCnv, $maskCnv, $weightCnv, $expnumCnv);
     151            if ($needConvolvedImages) {
     152                $imageCnv  = $ipprc->filename("PPSTACK.OUTPUT",          $path_base ); # Image name
     153                $maskCnv   = $ipprc->filename("PPSTACK.OUTPUT.MASK",     $path_base ); # Mask name
     154                $weightCnv = $ipprc->filename("PPSTACK.OUTPUT.VARIANCE", $path_base ); # Weight name
     155                $expnumCnv = $ipprc->filename("PPSTACK.OUTPUT.EXPNUM",   $path_base ); # Expnum name
     156            }
    152157
    153158            my $imageRaw  = $ipprc->filename("PPSTACK.UNCONV",          $path_base ); # Image name
     
    166171            &my_die("Couldn't find input: $weightRaw", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$weightRaw");
    167172            &my_die("Couldn't find input: $expnumRaw", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnumRaw");
    168             &my_die("Couldn't find input: $imageCnv",  $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$imageCnv");
    169             &my_die("Couldn't find input: $maskCnv",   $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$maskCnv");
    170             &my_die("Couldn't find input: $weightCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$weightCnv");
    171             &my_die("Couldn't find input: $expnumCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnumCnv");
    172             &my_die("Couldn't find input: $psfCnv",    $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$psfCnv");
     173            if ($needConvolvedImages) {
     174                &my_die("Couldn't find input: $imageCnv",  $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$imageCnv");
     175                &my_die("Couldn't find input: $maskCnv",   $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$maskCnv");
     176                &my_die("Couldn't find input: $weightCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$weightCnv");
     177                &my_die("Couldn't find input: $expnumCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$expnumCnv");
     178                &my_die("Couldn't find input: $psfCnv",    $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$psfCnv");
     179            }
    173180            &my_die("Couldn't find input: $sources",   $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$sources");
    174181
     
    178185            print $listFile "  RAW:VARIANCE  STR  " . $weightRaw . "\n";
    179186            print $listFile "  RAW:EXPNUM    STR  " . $expnumRaw . "\n";
    180 
    181             print $listFile "  CNV:IMAGE     STR  " . $imageCnv  . "\n";
    182             print $listFile "  CNV:MASK      STR  " . $maskCnv   . "\n";
    183             print $listFile "  CNV:VARIANCE  STR  " . $weightCnv . "\n";
    184             print $listFile "  CNV:EXPNUM    STR  " . $expnumCnv . "\n";
    185             print $listFile "  CNV:PSF       STR  " . $psfCnv    . "\n";
    186 
    187187            print $listFile "  SOURCES       STR  " . $sources   . "\n";
     188            if ($needConvolvedImages) {
     189                print $listFile "  CNV:IMAGE     STR  " . $imageCnv  . "\n";
     190                print $listFile "  CNV:MASK      STR  " . $maskCnv   . "\n";
     191                print $listFile "  CNV:VARIANCE  STR  " . $weightCnv . "\n";
     192                print $listFile "  CNV:EXPNUM    STR  " . $expnumCnv . "\n";
     193                print $listFile "  CNV:PSF       STR  " . $psfCnv    . "\n";
     194            }
    188195
    189196            print $listFile "END\n\n";
Note: See TracChangeset for help on using the changeset viewer.