IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18482


Ignore:
Timestamp:
Jul 11, 2008, 12:10:05 PM (18 years ago)
Author:
Paul Price
Message:

Updating interface (configuration file format) to ppStack ---
individual sources are specified, rather than a single image's
sources.

File:
1 edited

Legend:

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

    r17943 r18482  
    128128    my $mask = $ipprc->filename( "PSWARP.OUTPUT.MASK", $file->{path_base} ); # Mask name
    129129    my $weight = $ipprc->filename( "PSWARP.OUTPUT.WEIGHT", $file->{path_base} ); # Weight name
    130     my $psf = $ipprc->filename( "PSPHOT.PSF.SAVE", $file->{path_base} ); # Weight name
     130    my $psf = $ipprc->filename( "PSPHOT.PSF.SAVE", $file->{path_base} ); # PSF name
     131    my $sources = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $file->{path_base}); # Sources name
    131132
    132133    &my_die("Image $image does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $image );
     
    134135    &my_die("Weight $weight does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $weight );
    135136    &my_die("PSF $psf does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $psf );
     137    &my_die("Sources $sources does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $sources );
    136138
    137139    print $listFile "\tIMAGE\tSTR\t" . $image . "\n";
     
    139141    print $listFile "\tWEIGHT\tSTR\t" . $weight . "\n";
    140142    print $listFile "\tPSF\tSTR\t" . $psf . "\n";
     143    print $listFile "\tSOURCES\tSTR\t" . $sources . "\n";
    141144
    142145    ### XXX NEED TO UPDATE THESE appropriately
     
    144147
    145148    print $listFile "END\n\n";
    146 
    147     # XXX details about supplying sources, etc, need to be specified in the libraries
    148     unless (defined $inputSources) {
    149         $inputSources = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $file->{path_base});
    150         &my_die("Source file $inputSources does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $inputSources );
    151     }
    152 
    153149}
    154150
     
    170166    $command .= " -recipe PPSUB STACK";
    171167    $command .= " -recipe PPSTATS WARPSTATS";
    172     $command .= " -sources $inputSources";
    173168    $command .= " -photometry";
    174169    $command .= " -tracedest $traceDest -log $logDest";
Note: See TracChangeset for help on using the changeset viewer.