Changeset 11847 for trunk/ippScripts/scripts/ipp_serial_detrend.pl
- Timestamp:
- Feb 15, 2007, 4:56:47 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_serial_detrend.pl (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_detrend.pl
r11414 r11847 8 8 use PS::IPP::Metadata::List qw( parse_md_list ); 9 9 use Data::Dumper; 10 11 my ($dbname, # Database name to use 12 $workdir, # Working directory 13 ); 14 GetOptions( 15 'dbname|d=s' => \$dbname, 16 'workdir|w=s' => \$workdir, 17 ) or pod2usage( 2 ); 18 19 pod2usage( 20 -msg => "Required options: --dbname", 21 -exitval => 3, 22 ) unless defined $dbname; 10 23 11 24 my $mdcParser = PS::IPP::Metadata::Config->new; # Metadata config parser … … 53 66 my $camera = $item->{camera}; 54 67 55 my $command = "$detrend_process_imfile --det_id $det_id --exp_tag $exp_tag --class $class --class_id $class_id --det_type $det_type --input_uri $uri --camera $camera"; 68 my $command = "$detrend_process_imfile --det_id $det_id --exp_tag $exp_tag --class $class --class_id $class_id --det_type $det_type --input_uri $uri --camera $camera --dbname $dbname"; 69 $command .= " --workdir $workdir" if defined $workdir; 56 70 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 57 71 run( command => $command, verbose => 1 ); … … 79 93 my $det_id = $item->{det_id}; 80 94 81 my $command = "$detrend_process_exp --det_id $det_id --exp_tag $exp_tag --camera $camera"; 95 my $command = "$detrend_process_exp --det_id $det_id --exp_tag $exp_tag --camera $camera --dbname $dbname"; 96 $command .= " --workdir $workdir" if defined $workdir; 82 97 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 83 98 run( command => $command, verbose => 1 ); … … 102 117 my $camera = $item->{camera}; 103 118 104 my $command = "$detrend_stack --det_id $det_id --iteration $iteration --class_id $class_id --det_type $det_type --camera $camera"; 119 my $command = "$detrend_stack --det_id $det_id --iteration $iteration --class_id $class_id --det_type $det_type --camera $camera --dbname $dbname"; 120 $command .= " --workdir $workdir" if defined $workdir; 105 121 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 106 122 run( command => $command, verbose => 1 ); … … 123 139 my $det_type = $item->{det_type}; 124 140 125 my $command = "$detrend_norm_calc --det_id $det_id --iteration $iteration --det_type $det_type"; 141 my $command = "$detrend_norm_calc --det_id $det_id --iteration $iteration --det_type $det_type --dbname $dbname"; 142 $command .= " --workdir $workdir" if defined $workdir; 126 143 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 127 144 run( command => $command, verbose => 1 ); … … 148 165 my $camera = $item->{camera}; 149 166 150 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"; 167 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"; 168 $command .= " --workdir $workdir" if defined $workdir; 151 169 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 152 170 run( command => $command, verbose => 1 ); … … 173 191 my $camera = $item->{camera}; 174 192 175 my $command = "$detrend_norm_exp --det_id $det_id --iteration $iteration --camera $camera --det_type $det_type"; 193 my $command = "$detrend_norm_exp --det_id $det_id --iteration $iteration --camera $camera --det_type $det_type --dbname $dbname"; 194 $command .= " --workdir $workdir" if defined $workdir; 176 195 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 177 196 run( command => $command, verbose => 1 ); … … 210 229 my $mode = $item->{mode}; 211 230 212 my $command = "$detrend_resid --det_id $det_id --iteration $iteration --exp_tag $exp_tag --class_id $class_id --det_type $det_type --camera $camera --input_uri $uri --mode $mode ";231 my $command = "$detrend_resid --det_id $det_id --iteration $iteration --exp_tag $exp_tag --class_id $class_id --det_type $det_type --camera $camera --input_uri $uri --mode $mode --dbname $dbname"; 213 232 $command .= " --detrend $detrend" if defined $detrend; 233 $command .= " --workdir $workdir" if defined $workdir; 214 234 215 235 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 240 260 my $det_type = $item->{det_type}; 241 261 242 my $command = "$detrend_reject_imfile --det_id $det_id --iteration $iteration --exp_tag $exp_tag --det_type $det_type --camera $camera"; 262 my $command = "$detrend_reject_imfile --det_id $det_id --iteration $iteration --exp_tag $exp_tag --det_type $det_type --camera $camera --dbname $dbname"; 263 $command .= " --workdir $workdir" if defined $workdir; 243 264 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 244 265 run( command => $command, verbose => 1 ); … … 262 283 my $det_type = $item->{det_type}; 263 284 264 my $command = "$detrend_reject_exp --det_id $det_id --iteration $iteration --det_type $det_type --camera $camera"; 285 my $command = "$detrend_reject_exp --det_id $det_id --iteration $iteration --det_type $det_type --camera $camera --dbname $dbname"; 286 $command .= " --workdir $workdir" if defined $workdir; 265 287 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 266 288 run( command => $command, verbose => 1 );
Note:
See TracChangeset
for help on using the changeset viewer.
