Changeset 18048
- Timestamp:
- Jun 10, 2008, 8:46:59 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
-
ippScripts/scripts/detrend_correct_imfile.pl (modified) (3 diffs)
-
ippScripts/scripts/detrend_norm_apply.pl (modified) (4 diffs)
-
ippScripts/scripts/detrend_process_exp.pl (modified) (3 diffs)
-
ippScripts/scripts/detrend_process_imfile.pl (modified) (4 diffs)
-
ippScripts/scripts/detrend_reject_imfile.pl (modified) (3 diffs)
-
ippScripts/scripts/detrend_resid.pl (modified) (4 diffs)
-
ippScripts/scripts/detrend_stack.pl (modified) (7 diffs)
-
ippTasks/detrend.correct.pro (modified) (5 diffs)
-
ippTasks/detrend.norm.pro (modified) (5 diffs)
-
ippTasks/detrend.process.pro (modified) (6 diffs)
-
ippTasks/detrend.resid.pro (modified) (5 diffs)
-
ippTasks/detrend.stack.pro (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_correct_imfile.pl
r17671 r18048 25 25 26 26 my ( $det_id, $exp_id, $class_id, $det_type, $exp_tag, $input_uri, $camera, $dbname, $workdir, $reduction, 27 $verbose, $no_update, $no_op );27 $verbose, $no_update, $no_op, $outroot, $redirect, $corr_id, $corr_type, $corr_uri ); 28 28 GetOptions( 29 29 'det_id|d=s' => \$det_id, … … 41 41 'no-update' => \$no_update, 42 42 'no-op' => \$no_op, 43 'outroot' => \$outroot, 44 'redirect-output' => \$redirect, 43 45 ) or pod2usage( 2 ); 44 46 … … 56 58 # XXX this exits with status = 0 on failure 57 59 $ipprc->define_camera($camera); 60 61 if ($redirect) { 62 die "must suplly --outroot with --redirect-output" if !defined ($outroot); 63 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) 64 or &my_die("Missing entry from camera config", $det_id, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR); 65 $ipprc->redirect_output($logDest); 66 } 58 67 59 68 # Recipes to use as a function of detrend type -
trunk/ippScripts/scripts/detrend_norm_apply.pl
r17943 r18048 26 26 # Parse the command-line 27 27 my ( $det_id, $iter, $class_id, $value, $input_uri, $camera, $det_type, $outroot, $dbname, $verbose, 28 $no_update, $no_op );28 $no_update, $no_op, $redirect ); 29 29 GetOptions( 30 30 'det_id|d=s' => \$det_id, # Detrend ID … … 40 40 'no-update' => \$no_update, # Don't update the database 41 41 'no-op' => \$no_op, # Don't do any operations 42 'redirect-output' => \$redirect, # send output from script to LOG.IMFILE 42 43 ) or pod2usage( 2 ); 43 44 … … 56 57 $ipprc->define_camera($camera); 57 58 59 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) 60 or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR); 61 $ipprc->redirect_output($logDest) if $redirect; 62 58 63 my $RECIPE_PPIMAGE = 'PPIMAGE_N'; # Recipe to use with ppImage 59 64 my $RECIPE_PPSTATS = 'CHIPSTATS'; # Recipe to use with ppStats … … 100 105 my $statsName = $ipprc->filename("PPIMAGE.STATS", $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR); 101 106 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR); 102 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR);103 107 104 108 # Run normalisation -
trunk/ippScripts/scripts/detrend_process_exp.pl
r17943 r18048 27 27 28 28 my ( $det_id, $exp_id, $det_type, $exp_tag, $camera, $outroot, $dbname, $reduction, $verbose, $no_update, 29 $no_op, $save_temps );29 $no_op, $save_temps, $redirect ); 30 30 GetOptions( 31 31 'det_id|d=s' => \$det_id, … … 41 41 'no-op' => \$no_op, 42 42 'save-temps' => \$save_temps, # Save temporary files? 43 'redirect-output' => \$redirect, 43 44 ) or pod2usage( 2 ); 44 45 … … 54 55 55 56 $ipprc->define_camera($camera); 57 58 if ($redirect) { 59 my $logDest = $ipprc->filename("LOG.EXP", $outroot, "NONE") 60 or &my_die("Missing entry in file rules", $det_id, $exp_id, $PS_EXIT_CONFIG_ERROR); 61 $ipprc->redirect_output($logDest); 62 } 56 63 57 64 # Recipes to use based on reduction class -
trunk/ippScripts/scripts/detrend_process_imfile.pl
r17971 r18048 25 25 26 26 my ( $det_id, $exp_id, $class_id, $det_type, $exp_tag, $input_uri, $camera, $outroot, $dbname, $reduction, 27 $verbose, $no_update, $no_op );27 $verbose, $no_update, $no_op, $redirect ); 28 28 GetOptions( 29 29 'det_id|d=s' => \$det_id, … … 40 40 'no-update' => \$no_update, 41 41 'no-op' => \$no_op, 42 'redirect-output' => \$redirect, 42 43 ) or pod2usage( 2 ); 43 44 … … 56 57 # XXX this exits with status = 0 on failure 57 58 $ipprc->define_camera($camera); 59 60 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) 61 or &my_die("Missing entry from camera config", $exp_id, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR); 62 63 $ipprc->redirect_output($logDest) if $redirect; 58 64 59 65 # Recipes to use as a function of detrend type … … 95 101 my $outputStats = $ipprc->filename("PPIMAGE.STATS", $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $exp_id, $class_id, $PS_EXIT_PROG_ERROR); 96 102 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR); 97 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR);98 99 103 # Run ppImage 100 104 unless ($no_op) { -
trunk/ippScripts/scripts/detrend_reject_imfile.pl
r17943 r18048 36 36 # parse the command-line options 37 37 my ( $det_id, $iter, $exp_id, $exp_tag, $det_type, $camera, $filter, $reject, $outroot, $dbname, $reduction, 38 $verbose, $no_update, $no_op, $save_temps );38 $verbose, $no_update, $no_op, $save_temps, $redirect ); 39 39 GetOptions( 40 40 'det_id|d=s' => \$det_id, … … 53 53 'no-op' => \$no_op, 54 54 'save-temps' => \$save_temps, # Save temporary files? 55 'redirect-output' => \$redirect, # redirect output from LOG.IMFILE 55 56 ) or pod2usage( 2 ); 56 57 … … 68 69 # load IPP config information for the specified camera 69 70 $ipprc->define_camera($camera); 71 if ($redirect) { 72 # XXX should this really be going to LOG.IMFILE? 73 # That's where detrend.resid.pro was sending it 74 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, "NONE") 75 or &my_die("Missing entry from camera config", $det_id, $iter, $exp_id, $PS_EXIT_CONFIG_ERROR); 76 $ipprc->redirect_output($logDest); 77 } 78 70 79 71 80 # Recipes to use based on reduction class -
trunk/ippScripts/scripts/detrend_resid.pl
r17971 r18048 25 25 26 26 my ( $det_id, $iter, $exp_id, $exp_tag, $class_id, $det_type, $detrend, $input_uri, $camera, $mode, $outroot, 27 $dbname, $reduction, $verbose, $no_update, $no_op );27 $dbname, $reduction, $verbose, $no_update, $no_op, $redirect ); 28 28 GetOptions( 29 29 'det_id|d=s' => \$det_id, … … 43 43 'no-update' => \$no_update, 44 44 'no-op' => \$no_op, 45 'redirect-output' => \$redirect, 45 46 ) or pod2usage( 2 ); 46 47 … … 61 62 62 63 $ipprc->define_camera($camera); 64 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id); 65 if ($redirect) { 66 $ipprc->redirect_output($logDest); 67 } 63 68 64 69 # Recipes to use as a function of detrend type and mode … … 137 142 my $outputStats = $ipprc->filename("PPIMAGE.STATS", $outroot, $class_id); 138 143 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id); 139 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id);140 144 141 145 # Run ppImage & ppStats -
trunk/ippScripts/scripts/detrend_stack.pl
r17941 r18048 18 18 use PS::IPP::Metadata::Stats; 19 19 use PS::IPP::Metadata::List qw( parse_md_list ); 20 use File::Temp qw( tempfile );21 20 use PS::IPP::Config 1.01 qw( :standard ); 22 21 … … 27 26 28 27 my ( $det_id, $iter, $class_id, $det_type, $camera, $outroot, $dbname, $reduction, $verbose, $save_temps, 29 $no_update, $no_op );28 $no_update, $no_op, $redirect ); 30 29 GetOptions( 31 30 'det_id|d=s' => \$det_id, … … 35 34 'camera|c=s' => \$camera, 36 35 'outroot|w=s' => \$outroot, # output file base name 37 'dbname|d=s' => \$dbname, # Database name36 'dbname|d=s' => \$dbname, # Database name 38 37 'reduction=s' => \$reduction, # Reduction class for processing 39 38 'verbose' => \$verbose, # Print to stdout … … 41 40 'no-update' => \$no_update, 42 41 'no-op' => \$no_op, 42 'redirect-output' => \$redirect, 43 43 ) or pod2usage( 2 ); 44 44 45 45 46 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 55 56 $ipprc->define_camera($camera); 56 57 $det_type = uc($det_type); 58 59 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) 60 or &my_die("Missing entry in file rules", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR); 61 62 # optionally redirect the outputs from this script to LOG.IMFILE 63 $ipprc->redirect_output($logDest) if $redirect; 57 64 58 65 # Recipes to use as a function of detrend type … … 121 128 122 129 # Generate MDC file with the inputs 123 my ($listFile, $listName) = tempfile( $ipprc->file_resolve("$outroot.$class_id.list.XXXX"), UNLINK => !$save_temps ); 130 my ($listFile, $listName) = $ipprc->create_temp_file("$outroot.$class_id.list", $save_temps); 131 124 132 my $num = 0; 125 133 foreach my $file (@$files) { … … 161 169 my $outputStats = $ipprc->filename("PPIMAGE.STATS", $outroot, $class_id) or &my_die("Missing entry in file rules", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR); # Statistics name 162 170 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id) or &my_die("Missing entry in file rules", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR); # Trace messages 163 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry in file rules", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR); # Log messages164 171 165 172 $command = "$ppMerge $listName $outroot"; # Command to run -
trunk/ippTasks/detrend.correct.pro
r17699 r18048 5 5 # test for required global variables 6 6 check.globals 7 8 $LOGSUBDIR = $LOGDIR/detrend9 exec mkdir -p $LOGSUBDIR10 7 11 8 book init detPendingCorrectedImfile … … 71 68 72 69 stdout NULL 73 stderr $LOG SUBDIR/detcorr.imfile.log70 stderr $LOGDIR/detcorr.load.log 74 71 75 72 task.exec … … 146 143 sprintf outroot "%s/%s.%s.%s/%s/%s.detcorr.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $EXP_TAG $EXP_TAG $DET_ID 147 144 148 $logfile = `ipp_filename.pl --touch --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot` 149 if ("$logfile" == "") 150 echo "WARNING: logfile not defined in detrend.correct.pro:150" 151 break 152 end 153 154 stdout $logfile 155 stderr $logfile 156 dirname $logfile -var outpath 157 158 # XXX I need to report the error if this fails... 159 mkdir $outpath 160 161 $run = detrend_correct_imfile.pl --det_id $DET_ID --exp_id $EXP_ID --class_id $CLASS_ID --exp_tag $EXP_TAG --input_uri $URI --corr_id $CORR_ID --corr_type $CORR_TYPE --camera $CAMERA 145 stdout $LOGDIR/detcorr.run.log 146 stderr $LOGDIR/detcorr.run.log 147 148 $run = detrend_correct_imfile.pl --det_id $DET_ID --exp_id $EXP_ID --class_id $CLASS_ID --exp_tag $EXP_TAG --input_uri $URI --corr_id $CORR_ID --corr_type $CORR_TYPE --camera $CAMERA --outroot $outroot --redirect-output 162 149 if ("$WORKDIR" != "NULL") 163 150 $run = $run --workdir $WORKDIR … … 202 189 203 190 stdout NULL 204 stderr $LOG SUBDIR/detcorr.exp.log191 stderr $LOGDIR/detcorr.exp.load.log 205 192 206 193 task.exec … … 275 262 sprintf outroot "%s/%s.%s.%s/%s/%s.detcorr.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $EXP_TAG $EXP_TAG $DET_ID 276 263 277 ## generate output log based on filerule (convert the URI to a PATH) 278 $logfile = `ipp_filename.pl --touch --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot` 279 if ("$logfile" == "") 280 $logfile = $outroot.log 281 end 282 283 stdout $logfile 284 stderr $logfile 285 dirname $logfile -var outpath 286 mkdir $outpath 287 288 $run = detrend_correct_exp.pl --det_id $DET_ID --exp_id $EXP_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --corr_id $CORR_ID --corr_type $CORR_TYPE --camera $CAMERA 264 stdout $LOGDIR/detcorr.exp.run.log 265 stderr $LOGDIR/detcorr.exp.run.log 266 267 $run = detrend_correct_exp.pl --det_id $DET_ID --exp_id $EXP_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --corr_id $CORR_ID --corr_type $CORR_TYPE --camera $CAMERA --redirect-output 268 289 269 if ("$WORKDIR" != "NULL") 290 270 $run = $run --workdir $WORKDIR -
trunk/ippTasks/detrend.norm.pro
r17699 r18048 5 5 # test for required global variables 6 6 check.globals 7 8 $LOGSUBDIR = $LOGDIR/detrend9 exec mkdir -p $LOGSUBDIR10 7 11 8 book init detPendingNormStatImfile … … 84 81 85 82 stdout NULL 86 stderr $LOG SUBDIR/detrend.normstat.log83 stderr $LOGDIR/detrend.normstat.load.log 87 84 88 85 task.exec … … 199 196 200 197 stdout NULL 201 stderr $LOG SUBDIR/detrend.norm.log198 stderr $LOGDIR/detrend.norm.load.log 202 199 203 200 task.exec … … 272 269 sprintf outroot "%s/%s.%s.%s/%s.%s.norm.%s.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $CAMERA $DET_TYPE $DET_ID $ITERATION 273 270 274 ## generate output log 275 $logfile = `ipp_filename.pl --touch --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot` 276 277 stdout $logfile 278 stderr $logfile 279 dirname $logfile -var outpath 280 mkdir $outpath 281 282 $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 --outroot $outroot 271 stdout $LOGDIR/detrend.norm.run.log 272 stderr $LOGDIR/detrend.norm.run.log 273 274 $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 --outroot $outroot --redirect-output 283 275 add_standard_args run 284 276 … … 317 309 318 310 stdout NULL 319 stderr $LOG SUBDIR/detrend.normexp.log311 stderr $LOGDIR/detrend.normexp.load.log 320 312 321 313 task.exec -
trunk/ippTasks/detrend.process.pro
r17699 r18048 5 5 # test for required global variables 6 6 check.globals 7 8 $LOGSUBDIR = $LOGDIR/detrend9 exec mkdir -p $LOGSUBDIR10 7 11 8 book init detPendingProcessedImfile … … 71 68 72 69 stdout NULL 73 stderr $LOG SUBDIR/detproc.imfile.log70 stderr $LOGDIR/detproc.imfile.load.log 74 71 75 72 task.exec … … 152 149 end 153 150 154 stdout $ logfile155 stderr $ logfile151 stdout $LOGDIR/detproc.imfile.run.log 152 stderr $LOGDIR/detproc.imfile.run.log 156 153 dirname $logfile -var outpath 157 154 … … 159 156 mkdir $outpath 160 157 161 $run = detrend_process_imfile.pl --det_id $DET_ID --exp_id $EXP_ID --det_type $DET_TYPE --class_id $CLASS_ID --exp_tag $EXP_TAG --input_uri $URI --camera $CAMERA --outroot $outroot 158 $run = detrend_process_imfile.pl --det_id $DET_ID --exp_id $EXP_ID --det_type $DET_TYPE --class_id $CLASS_ID --exp_tag $EXP_TAG --input_uri $URI --camera $CAMERA --outroot $outroot --redirect-output 162 159 if ("$REDUCTION" != "NULL") 163 160 $run = $run --reduction $REDUCTION … … 199 196 200 197 stdout NULL 201 stderr $LOG SUBDIR/detproc.exp.log198 stderr $LOGDIR/detproc.exp.load.log 202 199 203 200 task.exec … … 271 268 sprintf outroot "%s/%s.%s.%s/%s/%s.detproc.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $EXP_TAG $EXP_TAG $DET_ID 272 269 273 ## generate output log based on filerule (convert the URI to a PATH) 274 $logfile = `ipp_filename.pl --touch --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot` 275 if ("$logfile" == "") 276 echo "WARNING: logfile not defined in detrend.process.pro:282" 277 break 278 end 279 280 stdout $logfile 281 stderr $logfile 282 dirname $logfile -var outpath 283 mkdir $outpath 284 285 $run = detrend_process_exp.pl --det_id $DET_ID --exp_id $EXP_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --outroot $outroot 270 stdout $LOGDIR/detproc.exp.run.log 271 stderr $LOGDIR/detproc.exp.run.log 272 273 $run = detrend_process_exp.pl --det_id $DET_ID --exp_id $EXP_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --outroot $outroot --redirect-output 286 274 if ("$REDUCTION" != "NULL") 287 275 $run = $run --reduction $REDUCTION -
trunk/ippTasks/detrend.resid.pro
r17699 r18048 5 5 # test for required global variables 6 6 check.globals 7 8 $LOGSUBDIR = $LOGDIR/detrend9 exec mkdir -p $LOGSUBDIR10 7 11 8 book init detPendingResidImfile … … 68 65 69 66 stdout NULL 70 stderr $LOG SUBDIR/detresid.log67 stderr $LOGDIR/detresid.load.log 71 68 72 69 task.exec … … 145 142 sprintf outroot "%s/%s.%s.%s/%s/%s.detresid.%s.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $EXP_TAG $EXP_TAG $DET_ID $ITERATION 146 143 147 ## generate output log based on filerule (convert the URI to a PATH) 148 $logfile = `ipp_filename.pl --touch --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot` 149 if ("$logfile" == "") 150 echo "WARNING: logfile not defined in detrend.resid.pro:161" 151 break 152 end 153 154 stdout $logfile 155 stderr $logfile 156 dirname $logfile -var outpath 157 mkdir $outpath 158 159 $run = detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_id $EXP_ID --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE --outroot $outroot 144 stdout $LOGDIR/detresid.run.log 145 stderr $LOGDIR/detresid.run.log 146 147 $run = detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_id $EXP_ID --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE --outroot $outroot --redirect-output 160 148 if ("$REDUCTION" != "NULL") 161 149 $run = $run --reduction $REDUCTION … … 197 185 198 186 stdout NULL 199 stderr $LOG SUBDIR/detresid.exp.log187 stderr $LOGDIR/detresid.exp.load.log 200 188 201 189 task.exec … … 271 259 sprintf outroot "%s/%s.%s.%s/%s/%s.detresid.%s.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $EXP_TAG $EXP_TAG $DET_ID $ITERATION 272 260 273 ## generate output log based on filerule (convert the URI to a PATH) 274 $logfile = `ipp_filename.pl --touch --filerule LOG.IMFILE --camera $CAMERA --class_id NONE --basename $outroot` 275 if ("$logfile" == "") 276 echo "WARNING: logfile not defined in detrend.process.pro:285" 277 break 278 end 279 280 stdout $logfile 281 stderr $logfile 282 dirname $logfile -var outpath 283 mkdir $outpath 284 285 $run = detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_id $EXP_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --outroot $outroot 261 stdout $LOGDIR/detresid.exp.run.log 262 stderr $LOGDIR/detresid.exp.run.log 263 264 $run = detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_id $EXP_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --outroot $outroot --redirect-output 286 265 add_standard_args run 287 266 -
trunk/ippTasks/detrend.stack.pro
r17699 r18048 5 5 # test for required global variables 6 6 check.globals 7 8 $LOGSUBDIR = $LOGDIR/detrend9 exec mkdir -p $LOGSUBDIR10 7 11 8 book init detPendingStackedImfile … … 53 50 54 51 stdout NULL 55 stderr $LOG SUBDIR/detstack.log52 stderr $LOGDIR/detrend.stack.load.log 56 53 57 54 task.exec … … 125 122 sprintf outroot "%s/%s.%s.%s/%s.%s.%s.%s" $WORKDIR $CAMERA $DET_TYPE $DET_ID $CAMERA $DET_TYPE $DET_ID $ITERATION 126 123 127 ## generate output log based on filerule (convert the URI to a PATH) 128 $logfile = `ipp_filename.pl --touch --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot` 129 if ("$logfile" == "") 130 echo "WARNING: logfile not defined in detrend.stack.pro:141" 131 break 132 end 124 stdout $LOGDIR/detrend.stack.run.log 125 stderr $LOGDIR/detrend.stack.run.log 133 126 134 stdout $logfile 135 stderr $logfile 136 dirname $logfile -var outpath 137 mkdir $outpath 138 139 $run = detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA --outroot $outroot 127 $run = detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA --outroot $outroot --redirect-output 140 128 if ("$REDUCTION" != "NULL") 141 129 $run = $run --reduction $REDUCTION
Note:
See TracChangeset
for help on using the changeset viewer.
