Changeset 16752 for trunk/ippScripts/scripts/ipp_serial_detrend.pl
- Timestamp:
- Feb 28, 2008, 5:02:12 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_serial_detrend.pl (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_detrend.pl
r16744 r16752 9 9 use PS::IPP::Metadata::Config qw( caturi ); 10 10 use PS::IPP::Metadata::List qw( parse_md_list ); 11 use PS::IPP::Config; 11 12 use Data::Dumper; 12 13 … … 25 26 26 27 my $mdcParser = PS::IPP::Metadata::Config->new; # Metadata config parser 28 my $ipprc = PS::IPP::Config->new(); # IPP configuration 27 29 28 30 # Look for programs we need … … 74 76 75 77 my $outroot = caturi( $workdir, "$camera.$det_type.$det_id", $exp_tag, "$exp_tag.detproc.$det_id" ); 78 $ipprc->outroot_prepare( $outroot ); 76 79 77 80 my $command = "$detrend_process_imfile --det_id $det_id --exp_tag $exp_tag --exp_id $exp_id --class_id $class_id --det_type $det_type --input_uri $uri --camera $camera --dbname $dbname --outroot $outroot"; … … 109 112 110 113 my $outroot = caturi( $workdir, "$camera.$det_type.$det_id", $exp_tag, "$exp_tag.detproc.$det_id" ); 114 $ipprc->outroot_prepare( $outroot ); 111 115 112 116 my $command = "$detrend_process_exp --det_id $det_id --det_type $det_type --exp_tag $exp_tag --exp_id $exp_id --camera $camera --dbname $dbname --outroot $outroot"; … … 139 143 140 144 my $outroot = caturi( $workdir, "$camera.$det_type.$det_id", "$camera.$det_type.$det_id.$iteration" ); 145 $ipprc->outroot_prepare( $outroot ); 146 141 147 142 148 my $command = "$detrend_stack --det_id $det_id --iteration $iteration --class_id $class_id --det_type $det_type --camera $camera --dbname $dbname --outroot $outroot"; … … 168 174 169 175 my $outroot = caturi( $workdir, "$camera.$det_type.$det_id", "$camera.$det_type.normstat.$det_id.$iteration" ); 176 $ipprc->outroot_prepare( $outroot ); 170 177 171 178 my $command = "$detrend_norm_calc --det_id $det_id --iteration $iteration --det_type $det_type --dbname $dbname --outroot $outroot"; … … 199 206 200 207 my $outroot = caturi( $workdir, "$camera.$det_type.$det_id", "$camera.$det_type.norm.$det_id.$iteration" ); 208 $ipprc->outroot_prepare( $outroot ); 201 209 202 210 my $command = "$detrend_norm_apply --det_id $det_id --iteration $iteration --class_id $class_id --value $value --input_uri $uri --camera $camera --det_type $det_type --dbname $dbname --outroot $outroot"; … … 230 238 231 239 my $outroot = caturi( $workdir, "$camera.$det_type.$det_id", "$camera.$det_type.normexp.$det_id.$iteration" ); 240 $ipprc->outroot_prepare( $outroot ); 232 241 233 242 my $command = "$detrend_norm_exp --det_id $det_id --iteration $iteration --camera $camera --det_type $det_type --dbname $dbname --outroot $outroot"; … … 275 284 276 285 my $outroot = caturi( $workdir, "$camera.$det_type.$det_id", $exp_tag, "$exp_tag.detresid.$det_id.$iteration" ); 277 286 $ipprc->outroot_prepare( $outroot ); 287 278 288 my $command = "$detrend_resid --det_id $det_id --iteration $iteration --exp_tag $exp_tag --exp_id $exp_id --class_id $class_id --det_type $det_type --camera $camera --input_uri $uri --mode $mode --dbname $dbname --outroot $outroot"; 279 289 $command .= " --reduction $reduction" if defined $reduction; … … 313 323 314 324 my $outroot = caturi( $workdir, "$camera.$det_type.$det_id", $exp_tag, "$exp_tag.detresid.$det_id.$iteration" ); 315 325 $ipprc->outroot_prepare( $outroot ); 326 316 327 my $command = "$detrend_reject_imfile --det_id $det_id --iteration $iteration --exp_tag $exp_tag --exp_id $exp_id --det_type $det_type --camera $camera --dbname $dbname --outroot $outroot"; 317 328 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 341 352 342 353 my $outroot = caturi( $workdir, "$camera.$det_type.$det_id", "$camera.$det_type.$det_id.$iteration.detreject" ); 343 354 $ipprc->outroot_prepare( $outroot ); 355 344 356 my $command = "$detrend_reject_exp --det_id $det_id --iteration $iteration --det_type $det_type --camera $camera --dbname $dbname --outroot $outroot"; 345 357 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note:
See TracChangeset
for help on using the changeset viewer.
