IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 14, 2010, 10:57:53 AM (16 years ago)
Author:
eugene
Message:

photometry option is not needed (decision is made by recipe); test for output cmf based on recipe value of PHOTOMETRY

File:
1 edited

Legend:

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

    r26105 r26600  
    165165}
    166166my $convolve = metadataLookupBool($recipe, 'CONVOLVE'); # Convolve inputs?
     167my $photometry = metadataLookupBool($recipe, 'PHOTOMETRY'); # perform photometry?
    167168
    168169
     
    205206my $outputMask = $ipprc->filename("PPSTACK.OUTPUT.MASK", $outroot);
    206207my $outputWeight = $ipprc->filename("PPSTACK.OUTPUT.VARIANCE", $outroot);
    207 my $outputSources = $ipprc->filename("PSPHOT.OUT.CMF.MEF", $outroot); ## this must be consistent with the value in diff_skycell.pl:101
     208my $outputSources = $photometry ? $ipprc->filename("PSPHOT.OUT.CMF.MEF", $outroot) : undef; ## this must be consistent with the value in diff_skycell.pl:101
     209
    208210## use an explicit stack name for psphot output objects
    209211#my $bin1Name =  $ipprc->filename("PPSTACK.BIN1", $outroot);
     
    236238    $command .= " -F SOURCE.PLOT.PSFMODEL SOURCE.PLOT.SKY.PSFMODEL";
    237239    $command .= " -F SOURCE.PLOT.APRESID SOURCE.PLOT.SKY.APRESID";
    238     $command .= " -photometry";
    239240    $command .= " -threads $threads" if defined $threads;
    240241    $command .= " -debug-stack" if defined $debug;
     
    282283        &my_die("Couldn't find expected output file: $outputMask", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask);
    283284        &my_die("Couldn't find expected output file: $outputWeight", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight);
    284         &my_die("Couldn't find expected output file: $outputSources", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources);
     285        if ($photometry) {
     286            &my_die("Couldn't find expected output file: $outputSources", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources);
     287        }
    285288#       &my_die("Couldn't find expected output file: $bin1Name",    $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name);
    286289#       &my_die("Couldn't find expected output file: $bin2Name",    $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name);
Note: See TracChangeset for help on using the changeset viewer.