IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2010, 1:34:32 PM (16 years ago)
Author:
Paul Price
Message:

Check for existence of output masks.

File:
1 edited

Legend:

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

    r25835 r27010  
    154154# XXX we perform astrometry iff photometry output exists
    155155my $chipObjectsExist = 0;
     156my @outMasks;                   # Names of output masks
    156157foreach my $file (@$files) {
    157158    # use the path_base as OUTPUT root and convert the filenames with ipprc->filename:
     
    175176    print $list3File ($chipObjects . "\n");
    176177    print $list4File ($chipMask . "\n");
     178
     179    push @outMasks, $ipprc->filename("PSASTRO.OUTPUT.MASK", $outroot, $class_id);
    177180}
    178181close $list1File;
     
    245248        my $command;
    246249        $command  = "$psastro";
    247         $command .= " -list $list3Name";
    248         $command .= " -masklist $list4Name";
    249         $command .= " $outroot";
     250        $command .= " -list $list3Name";
     251        $command .= " -masklist $list4Name";
     252        $command .= " $outroot";
    250253        $command .= " -recipe PSASTRO $recipe_psastro";
    251254        $command .= " -tracedest $traceDest -log $logDest";
     
    293296        if (!$quality) {
    294297            &my_die("Unable to find expected output file: $fpaObjects", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($fpaObjects);
     298
     299            foreach my $outMask (@outMasks) {
     300                &my_die("Unable to find expected output file: $outMask", $cam_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outMask);
     301            }
    295302        }
    296303
Note: See TracChangeset for help on using the changeset viewer.