IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18528


Ignore:
Timestamp:
Jul 14, 2008, 8:40:01 PM (18 years ago)
Author:
eugene
Message:

mods from HEAD

Location:
branches/eam_branch_20080706
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080706/ippScripts/scripts/stack_skycell.pl

    r17943 r18528  
    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";
  • branches/eam_branch_20080706/ippTasks/diff.pro

    r17715 r18528  
    115115    book setword diffSkyfile $pageName pantaskState RUN
    116116    book getword diffSkyfile $pageName diff_id -var DIFF_ID
    117     book getword diffSkyfile $pageName tess_id -var TESS_ID
     117    book getword diffSkyfile $pageName tess_id -var TESS_DIR
    118118    book getword diffSkyfile $pageName skycell_id -var SKYCELL_ID
    119119    book getword diffSkyfile $pageName camera -var CAMERA
     
    127127    $WORKDIR = $WORKDIR_TEMPLATE
    128128
    129     sprintf outroot "%s/tess_%s/%s/%s.%s.dif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_ID
     129    basename $TESS_DIR -var TESS_ID
     130    sprintf outroot "%s/%s/%s/%s.%s.dif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_ID
    130131
    131132    ## generate output log based on filerule (convert the URI to a PATH)
  • branches/eam_branch_20080706/ippTasks/stack.pro

    r17624 r18528  
    115115    book setword stackSumSkyfile $pageName pantaskState RUN
    116116    book getword stackSumSkyfile $pageName stack_id -var STACK_ID
    117     book getword stackSumSkyfile $pageName tess_id -var TESS_ID
     117    book getword stackSumSkyfile $pageName tess_id -var TESS_DIR
    118118    book getword stackSumSkyfile $pageName skycell_id -var SKYCELL_ID
     119    book getword stackSumSkyfile $pageName camera -var CAMERA
    119120    book getword stackSumSkyfile $pageName workdir -var WORKDIR_TEMPLATE
    120121    book getword stackSumSkyfile $pageName dbname -var DBNAME
     
    126127    $WORKDIR = $WORKDIR_TEMPLATE
    127128
    128     sprintf outroot "%s/tess_%s/%s/%s.%s.stk.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $STACK_ID
     129    basename $TESS_DIR -var TESS_ID
     130    sprintf outroot "%s/%s/%s/%s.%s.stk.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $STACK_ID
    129131
    130132    ## generate output log based on filerule (convert the URI to a PATH) (use STACK_ID?)
     
    132134    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
    133135    if ("$logfile" == "")
    134       echo "WARNING: logfile not defined in stack.pro:136"
     136      echo "WARNING: logfile not defined in stack.pro:135"
    135137      break
    136138    end
Note: See TracChangeset for help on using the changeset viewer.