IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2010, 3:55:49 PM (16 years ago)
Author:
eugene
Message:

update merges from trunk

Location:
branches/eam_branches/20100225
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20100225

  • branches/eam_branches/20100225/ippScripts/scripts/camera_exp.pl

    r27062 r27517  
    171171
    172172# XXX we perform astrometry iff photometry output exists
    173 my $chipObjectsExist = 0;
    174173my @outMasks;                   # Names of output masks
    175174foreach my $file (@$files) {
     175    next if $file->{quality} != 0;
    176176    # use the path_base as OUTPUT root and convert the filenames with ipprc->filename:
    177177    my $class_id = $file->{class_id};
     
    181181    my $chipObjects = $ipprc->filename("PSPHOT.OUTPUT", $file->{path_base}, $class_id);
    182182    my $chipMask   = $ipprc->filename("PPIMAGE.CHIP.MASK", $file->{path_base}, $class_id);
    183 
    184     # if any of the output chip photometry files exist, we can run psastro / addstar below
    185     if ($ipprc->file_exists($chipObjects)) {
    186         $chipObjectsExist = 1;
    187     } else {
    188         if ($verbose) { print "skipping $chipObjects (not found)\n"; }
    189         next;
    190     }
    191183
    192184    print $list1File ($ipprc->filename("PPIMAGE.BIN1", $file->{path_base}, $class_id) . "\n");
     
    243235            &my_die("Unable to perform ppImage: $error_code", $cam_id, $error_code);
    244236        }
    245         &my_die("Unable to find expected output file: $jpeg1", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($jpeg1);
     237        &my_die("Unable to find expected output file: $jpeg1", $cam_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($jpeg1);
    246238    }
    247239
     
    258250            &my_die("Unable to perform ppImage: $error_code", $cam_id, $error_code);
    259251        }
    260         &my_die("Unable to find expected output file: $jpeg2", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($jpeg2);
    261     }
    262 
    263     # only run psastro / addstar if any of the output chip astrometry files exist (should we test for successful astrometry?)
    264     if ($chipObjectsExist) {
     252        &my_die("Unable to find expected output file: $jpeg2", $cam_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($jpeg2);
     253    }
     254
     255    {
    265256        # run psastro on the chipObjects, producing fpaObjects
    266257        my $command;
     
    313304
    314305        if (!$quality) {
    315             &my_die("Unable to find expected output file: $fpaObjects", $cam_id, $PS_EXIT_PROG_ERROR) unless -f $ipprc->file_resolve($fpaObjects);
     306            &my_die("Unable to find expected output file: $fpaObjects", $cam_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($fpaObjects);
    316307
    317308            foreach my $outMask (@outMasks) {
    318                 &my_die("Unable to find expected output file: $outMask", $cam_id, $PS_EXIT_SYS_ERROR) unless -f $ipprc->file_resolve($outMask);
     309                &my_die("Unable to find expected output file: $outMask", $cam_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outMask);
    319310            }
    320311
Note: See TracChangeset for help on using the changeset viewer.