IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19294


Ignore:
Timestamp:
Aug 29, 2008, 2:28:05 PM (18 years ago)
Author:
eugene
Message:

test for .smf file before requiring

File:
1 edited

Legend:

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

    r19261 r19294  
    159159
    160160# XXX we perform astrometry iff photometry output exists
    161 my $chipObjects;
    162161my $chipObjectsExist = 0;
    163162foreach my $file (@$files) {
     
    167166    # If there is only one chip, we use this name for the input to addstar
    168167    # we expect the chip analysis stage to produce psphot output (cmf file) and two binned images
    169     $chipObjects = $ipprc->filename("PSPHOT.OUTPUT", $file->{path_base}, $class_id);
     168    my $chipObjects = $ipprc->filename("PSPHOT.OUTPUT", $file->{path_base}, $class_id);
     169
     170    # if any of the output chip photometry files exist, we can run psastro / addstar below
     171    if ($ipprc->file_exists($chipObjects)) {
     172        $chipObjectsExist = 1;
     173    } else {
     174        if ($verbose) { print "skipping $chipObjects (not found)\n"; }
     175        next;
     176    }
     177
    170178    print $list1File ($ipprc->filename("PPIMAGE.BIN1", $file->{path_base}, $class_id) . "\n");
    171179    print $list2File ($ipprc->filename("PPIMAGE.BIN2", $file->{path_base}, $class_id) . "\n");
    172180    print $list3File ($ipprc->file_resolve($chipObjects, 0) . "\n");
    173 
    174     # if any of the output chip photometry files exist, we can run psastro / addstar below
    175     if ($ipprc->file_exists($chipObjects)) {
    176         $chipObjectsExist = 1;
    177     }
    178181}
    179182close $list1File;
Note: See TracChangeset for help on using the changeset viewer.