IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 10, 2008, 2:17:14 PM (17 years ago)
Author:
eugene
Message:

ippScripts/scripts/camera_exp.pl

File:
1 edited

Legend:

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

    r19971 r20652  
    145145my ($list3File, $list3Name) = tempfile( "/tmp/$exp_tag.cm.$cam_id.b3.list.XXXX", UNLINK => !$save_temps ); # For astrometry
    146146
     147### XXX for the moment, always generate the bright-star mask
     148my ($list4File, $list4Name) = tempfile( "/tmp/$exp_tag.cm.$cam_id.b4.list.XXXX", UNLINK => !$save_temps ); # For astrometry
     149
    147150# XXX we perform astrometry iff photometry output exists
    148151my $chipObjectsExist = 0;
     
    154157    # we expect the chip analysis stage to produce psphot output (cmf file) and two binned images
    155158    my $chipObjects = $ipprc->filename("PSPHOT.OUTPUT", $file->{path_base}, $class_id);
     159    my $chipMask   = $ipprc->filename("PPIMAGE.CHIP.MASK", $file->{path_base}, $class_id);
    156160
    157161    # if any of the output chip photometry files exist, we can run psastro / addstar below
     
    166170    print $list2File ($ipprc->filename("PPIMAGE.BIN2", $file->{path_base}, $class_id) . "\n");
    167171    print $list3File ($ipprc->file_resolve($chipObjects, 0) . "\n");
     172    print $list4File ($ipprc->file_resolve($chipMask, 0) . "\n");
    168173}
    169174close $list1File;
    170175close $list2File;
    171176close $list3File;
     177close $list4File;
    172178
    173179# Output products
     
    234240        # run psastro on the chipObjects, producing fpaObjects
    235241        my $command;
    236         $command  = "$psastro -list $list3Name $outroot";
     242        $command  = "$psastro -list $list3Name -masklist $list4Name $outroot";
    237243        $command .= " -tracedest $traceDest -log $logDest";
    238244        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.