Changeset 18528
- Timestamp:
- Jul 14, 2008, 8:40:01 PM (18 years ago)
- Location:
- branches/eam_branch_20080706
- Files:
-
- 3 edited
-
ippScripts/scripts/stack_skycell.pl (modified) (5 diffs)
-
ippTasks/diff.pro (modified) (2 diffs)
-
ippTasks/stack.pro (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080706/ippScripts/scripts/stack_skycell.pl
r17943 r18528 128 128 my $mask = $ipprc->filename( "PSWARP.OUTPUT.MASK", $file->{path_base} ); # Mask name 129 129 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 131 132 132 133 &my_die("Image $image does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $image ); … … 134 135 &my_die("Weight $weight does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $weight ); 135 136 &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 ); 136 138 137 139 print $listFile "\tIMAGE\tSTR\t" . $image . "\n"; … … 139 141 print $listFile "\tWEIGHT\tSTR\t" . $weight . "\n"; 140 142 print $listFile "\tPSF\tSTR\t" . $psf . "\n"; 143 print $listFile "\tSOURCES\tSTR\t" . $sources . "\n"; 141 144 142 145 ### XXX NEED TO UPDATE THESE appropriately … … 144 147 145 148 print $listFile "END\n\n"; 146 147 # XXX details about supplying sources, etc, need to be specified in the libraries148 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 153 149 } 154 150 … … 170 166 $command .= " -recipe PPSUB STACK"; 171 167 $command .= " -recipe PPSTATS WARPSTATS"; 172 $command .= " -sources $inputSources";173 168 $command .= " -photometry"; 174 169 $command .= " -tracedest $traceDest -log $logDest"; -
branches/eam_branch_20080706/ippTasks/diff.pro
r17715 r18528 115 115 book setword diffSkyfile $pageName pantaskState RUN 116 116 book getword diffSkyfile $pageName diff_id -var DIFF_ID 117 book getword diffSkyfile $pageName tess_id -var TESS_ ID117 book getword diffSkyfile $pageName tess_id -var TESS_DIR 118 118 book getword diffSkyfile $pageName skycell_id -var SKYCELL_ID 119 119 book getword diffSkyfile $pageName camera -var CAMERA … … 127 127 $WORKDIR = $WORKDIR_TEMPLATE 128 128 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 130 131 131 132 ## generate output log based on filerule (convert the URI to a PATH) -
branches/eam_branch_20080706/ippTasks/stack.pro
r17624 r18528 115 115 book setword stackSumSkyfile $pageName pantaskState RUN 116 116 book getword stackSumSkyfile $pageName stack_id -var STACK_ID 117 book getword stackSumSkyfile $pageName tess_id -var TESS_ ID117 book getword stackSumSkyfile $pageName tess_id -var TESS_DIR 118 118 book getword stackSumSkyfile $pageName skycell_id -var SKYCELL_ID 119 book getword stackSumSkyfile $pageName camera -var CAMERA 119 120 book getword stackSumSkyfile $pageName workdir -var WORKDIR_TEMPLATE 120 121 book getword stackSumSkyfile $pageName dbname -var DBNAME … … 126 127 $WORKDIR = $WORKDIR_TEMPLATE 127 128 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 129 131 130 132 ## generate output log based on filerule (convert the URI to a PATH) (use STACK_ID?) … … 132 134 $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot` 133 135 if ("$logfile" == "") 134 echo "WARNING: logfile not defined in stack.pro:13 6"136 echo "WARNING: logfile not defined in stack.pro:135" 135 137 break 136 138 end
Note:
See TracChangeset
for help on using the changeset viewer.
