Changeset 13683
- Timestamp:
- Jun 6, 2007, 1:42:40 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
ippScripts/scripts/detrend_reject_imfile.pl (modified) (2 diffs)
-
ippScripts/scripts/detrend_resid.pl (modified) (1 diff)
-
ippTasks/detrend.norm.pro (modified) (3 diffs)
-
ippTasks/detrend.process.pro (modified) (3 diffs)
-
ippTasks/detrend.reject.pro (modified) (1 diff)
-
ippTasks/detrend.resid.pro (modified) (2 diffs)
-
ippTasks/detrend.stack.pro (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_reject_imfile.pl
r13639 r13683 138 138 # Output products 139 139 $workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir; 140 my $outputRoot = $ipprc->file_prepare( "$exp_tag.detresid.$det_id.$iter", $workdir, ${$files}[0]->{path_base} ); 141 my $jpeg1Name = $ipprc->filename("PPIMAGE.JPEG1", $outputRoot); # Binned JPEG #1 142 my $jpeg2Name = $ipprc->filename("PPIMAGE.JPEG2", $outputRoot); # Binned JPEG #2 140 my $outputRoot = $ipprc->file_prepare( "$exp_tag/$exp_tag.detresid.$det_id.$iter", $workdir, ${$files}[0]->{path_base} ); 141 my $jpeg1Name = $ipprc->filename("PPIMAGE.JPEG1", $outputRoot); # Binned JPEG #1 142 my $jpeg2Name = $ipprc->filename("PPIMAGE.JPEG2", $outputRoot); # Binned JPEG #2 143 my $logName = $ipprc->filename("LOG.EXP", $outputRoot); # Name for log 144 145 my $logFile; 146 unless ($no_op) { 147 # XXX this will fail if the file exists (because of Nebulous rules) 148 $logFile = $ipprc->file_create_open( $logName ); 149 } 143 150 144 151 # Recipes to use in processing … … 189 196 my $reject_exp_bin_sn = rejection_limit( 'EXP.BIN.SN', $det_type, $filter ); 190 197 191 my $logName = caturi( $workdir, "$exp_tag.detreject.$det_id.$iter.log" ); # Name for log192 my $logFile;193 unless ($no_op) {194 # XXX this will fail if the file exists (because of Nebulous rules)195 $logFile = $ipprc->file_create_open( $logName );196 }197 198 198 # Reject based on the stats of the imfiles 199 199 # it is VALID to reject on more than one criterion -
trunk/ippScripts/scripts/detrend_resid.pl
r13618 r13683 119 119 $workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir; 120 120 121 my $outputRoot = $ipprc->file_prepare( "$exp_tag .detresid.$det_id.$iter", $workdir, $input_uri );121 my $outputRoot = $ipprc->file_prepare( "$exp_tag/$exp_tag.detresid.$det_id.$iter", $workdir, $input_uri ); 122 122 my $outputName = $ipprc->filename("PPIMAGE.OUTPUT", $outputRoot, $class_id); 123 123 my $bin1Name = $ipprc->filename("PPIMAGE.BIN1", $outputRoot, $class_id); -
trunk/ippTasks/detrend.norm.pro
r12697 r13683 164 164 165 165 if ("$WORKDIR" == "NULL") 166 $out root= `pwd`167 else 168 $out root= `ipp_datapath.pl $WORKDIR`169 end 170 $out root = $outroot/$CAMERA.$DET_TYPE.$DET_ID171 $logfile = $out root/norm.$DET_ID.$ITERATION.log166 $outpath = `pwd` 167 else 168 $outpath = `ipp_datapath.pl $WORKDIR` 169 end 170 $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID 171 $logfile = $outpath/$CAMERA.$DET_TYPE.norm.$DET_ID.$ITERATION.log 172 172 stdout $logfile 173 173 stderr $logfile 174 exec mkdir -p $out root174 exec mkdir -p $outpath 175 175 176 176 $run = detrend_norm_calc.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE … … 287 287 # XXX use ipp_filename.pl to lookup output file names 288 288 if ("$WORKDIR" == "NULL") 289 $out root= `pwd`290 else 291 $out root= `ipp_datapath.pl $WORKDIR`292 end 293 $out root = $outroot/$CAMERA.$DET_TYPE.$DET_ID294 $logfile = $out root/norm.$DET_ID.$ITERATION.$CLASS_ID.log289 $outpath = `pwd` 290 else 291 $outpath = `ipp_datapath.pl $WORKDIR` 292 end 293 $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID 294 $logfile = $outpath/$CAMERA.$DET_TYPE.norm.$DET_ID.$ITERATION.$CLASS_ID.log 295 295 stdout $logfile 296 296 stderr $logfile 297 exec mkdir -p $out root297 exec mkdir -p $outpath 298 298 299 299 $run = detrend_norm_apply.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --value $NORM --input_uri $URI --camera $CAMERA --det_type $DET_TYPE … … 407 407 # XXX add $WORKDIR/$LOG_DIR 408 408 if ("$WORKDIR" == "NULL") 409 $out root= `pwd`410 else 411 $out root= `ipp_datapath.pl $WORKDIR`412 end 413 $out root = $outroot/$CAMERA.$DET_TYPE.$DET_ID414 $logfile = $out root/norm.$DET_ID.$ITERATION.log409 $outpath = `pwd` 410 else 411 $outpath = `ipp_datapath.pl $WORKDIR` 412 end 413 $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID 414 $logfile = $outpath/$CAMERA.$DET_TYPE.norm.$DET_ID.$ITERATION.log 415 415 stdout $logfile 416 416 stderr $logfile 417 exec mkdir -p $out root417 exec mkdir -p $outpath 418 418 419 419 $run = detrend_norm_exp.pl --det_id $DET_ID --iteration $ITERATION --camera $CAMERA --det_type $DET_TYPE -
trunk/ippTasks/detrend.process.pro
r13681 r13683 227 227 task.exit 0 228 228 # convert 'stdout' to book format 229 ipptool2book stdout detPendingProcessedExp -key det_id: iteration:exp_tag -uniq -setword dbname $options:0229 ipptool2book stdout detPendingProcessedExp -key det_id:exp_tag -uniq -setword dbname $options:0 230 230 if ($VERBOSE > 2) 231 231 book listbook detPendingProcessedExp … … 262 262 if ($pageName == NULL) break 263 263 264 # XXX is ITERATION relevant here??265 264 book setword detPendingProcessedExp $pageName state RUN 266 265 book getword detPendingProcessedExp $pageName det_id -var DET_ID 267 book getword detPendingProcessedExp $pageName iteration -var ITERATION268 266 book getword detPendingProcessedExp $pageName det_type -var DET_TYPE 269 267 book getword detPendingProcessedExp $pageName exp_tag -var EXP_TAG … … 286 284 end 287 285 $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG 288 $outroot = $outpath/$EXP_TAG.detproc.$DET_ID .$ITERATION286 $outroot = $outpath/$EXP_TAG.detproc.$DET_ID 289 287 $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot` 290 288 if ("$logfile" == "") -
trunk/ippTasks/detrend.reject.pro
r12697 r13683 138 138 end 139 139 $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID 140 $logfile = $outroot/ reject.$DET_ID.$ITERATION.log140 $logfile = $outroot/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.detreject.log 141 141 stdout $logfile 142 142 stderr $logfile -
trunk/ippTasks/detrend.resid.pro
r12747 r13683 154 154 # XXX use ipp_filename.pl to lookup output file names 155 155 if ("$WORKDIR" == "NULL") 156 $outroot = `pwd` 157 else 158 $outroot = `ipp_datapath.pl $WORKDIR` 159 end 160 $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG 161 $logfile = $outroot/detresid.$DET_ID.$ITERATION.$CLASS_ID.log 156 $outpath = `pwd` 157 else 158 $outpath = `ipp_datapath.pl $WORKDIR` 159 end 160 $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG 161 $outroot = $outpath/$EXP_TAG.detresid.$DET_ID.$ITERATION 162 $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot` 163 if ("$logfile" == "") 164 $logfile = $outroot.$CLASS_ID.log 165 end 166 162 167 stdout $logfile 163 168 stderr $logfile 164 exec mkdir -p $out root169 exec mkdir -p $outpath 165 170 166 171 $run = detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE … … 277 282 # XXX use ipp_filename.pl to lookup output file names 278 283 if ("$WORKDIR" == "NULL") 279 $outroot = `pwd` 280 else 281 $outroot = `ipp_datapath.pl $WORKDIR` 282 end 283 $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG 284 $logfile = $outroot/detresid.$DET_ID.$ITERATION.log 284 $outpath = `pwd` 285 else 286 $outpath = `ipp_datapath.pl $WORKDIR` 287 end 288 $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG 289 $outroot = $outpath/$EXP_TAG.detresid.$DET_ID.$ITERATION 290 $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot` 291 285 292 stdout $logfile 286 293 stderr $logfile 287 exec mkdir -p $out root294 exec mkdir -p $outpath 288 295 289 296 $run = detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA -
trunk/ippTasks/detrend.stack.pro
r12697 r13683 134 134 135 135 if ("$WORKDIR" == "NULL") 136 $out root= `pwd`136 $outpath = `pwd` 137 137 else 138 $out root= `ipp_datapath.pl $WORKDIR`138 $outpath = `ipp_datapath.pl $WORKDIR` 139 139 end 140 $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID 141 $logfile = $outroot/detstack.$DET_ID.$ITERATION.$CLASS_ID.log 140 $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID 141 $outroot = $outpath/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION 142 $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot` 143 if ("$logfile" == "") 144 $logfile = $outroot.$CLASS_ID.log 145 end 146 142 147 stdout $logfile 143 148 stderr $logfile 144 exec mkdir -p $out root149 exec mkdir -p $outpath 145 150 146 151 # save the pageName for future reference below
Note:
See TracChangeset
for help on using the changeset viewer.
