Changeset 11297
- Timestamp:
- Jan 25, 2007, 2:55:43 PM (19 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 13 edited
-
detrend_norm_apply.pl (modified) (3 diffs)
-
detrend_norm_calc.pl (modified) (4 diffs)
-
detrend_norm_exp.pl (modified) (4 diffs)
-
detrend_process_exp.pl (modified) (3 diffs)
-
detrend_process_imfile.pl (modified) (3 diffs)
-
detrend_reject_exp.pl (modified) (6 diffs)
-
detrend_reject_imfile.pl (modified) (4 diffs)
-
detrend_resid.pl (modified) (3 diffs)
-
detrend_stack.pl (modified) (4 diffs)
-
phase0_exp.pl (modified) (4 diffs)
-
phase0_imfile.pl (modified) (4 diffs)
-
phase2.pl (modified) (4 diffs)
-
phase3.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_apply.pl
r10700 r11297 23 23 $camera, # Camera 24 24 $detType, # Detrend type 25 $dbname, # Database name 25 26 $no_update # Don't update the database 26 27 ); … … 33 34 'camera|c=s' => \$camera, 34 35 'det_type|t=s' => \$detType, 36 'dbname|d=s' => \$dbname, 35 37 'no-update' => \$no_update 36 38 ) or pod2usage( 2 ); … … 115 117 } 116 118 $command .= " -bg_mean_stdev " . $stats->bg_mean_stdev(); 119 120 $command .= " -dbname $dbname" if defined $dbname; 121 117 122 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 118 123 run(command => $command, verbose => 1); -
trunk/ippScripts/scripts/detrend_norm_calc.pl
r10742 r11297 18 18 $iter, # Iteration 19 19 $detType, # Detrend type 20 $dbname, # Database name 20 21 $no_update # Don't update the database? 21 22 ); … … 24 25 'iteration|i=s' => \$iter, 25 26 'det_type|t=s' => \$detType, 27 'dbname|d=s' => \$dbname,# Database name 26 28 'no-update' => \$no_update 27 29 ) or pod2usage( 2 ); … … 63 65 { 64 66 my $command = "$dettool -processedimfile -det_id $detId"; # Command to run 67 $command .= " -dbname $dbname" if defined $dbname; 65 68 my @command = split /\s+/, $command; 66 69 my ( $stdin, $stdout, $stderr ); # Buffers for running program … … 150 153 my $command = "$dettool -addnormalizedstat -det_id $detId -iteration $iter -class_id $className ". 151 154 "-norm $normalisation"; # Command to run 155 $command .= " -dbname $dbname" if defined $dbname; 152 156 my @command = split /\s+/, $command; 153 157 -
trunk/ippScripts/scripts/detrend_norm_exp.pl
r10700 r11297 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($det_id, $iter, $det_type, $camera, $ no_update);21 my ($det_id, $iter, $det_type, $camera, $dbname, $no_update); 22 22 GetOptions( 23 23 'det_id|d=s' => \$det_id, … … 25 25 'camera|c=s' => \$camera, 26 26 'det_type|t=s' => \$det_type, 27 'dbname|d=s' => \$dbname, # Database name 27 28 'no-update' => \$no_update 28 29 ) or pod2usage( 2 ); … … 55 56 { 56 57 my $command = "$dettool -normalizedimfile -det_id $det_id -iteration $iter"; # Command to run 58 $command .= " -dbname $dbname" if defined $dbname; 57 59 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 58 60 run(command => $command, verbose => 1); … … 139 141 "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $jpeg1Name -b2_uri $jpeg2Name " . 140 142 "-bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev"; # Command to run 143 $command .= " -dbname $dbname" if defined $dbname; 141 144 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 142 145 run(command => $command, verbose => 1); -
trunk/ippScripts/scripts/detrend_process_exp.pl
r10700 r11297 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($det_id, $exp_tag, $camera, $ no_update);21 my ($det_id, $exp_tag, $camera, $dbname, $no_update); 22 22 GetOptions( 23 23 'det_id|d=s' => \$det_id, 24 24 'exp_tag|e=s' => \$exp_tag, 25 25 'camera|c=s' => \$camera, 26 'dbname|d=s' => \$dbname, # Database name 26 27 'no-update' => \$no_update 27 28 ) or pod2usage( 2 ); … … 53 54 { 54 55 my $command = "$dettool -processedimfile -det_id $det_id -exp_tag $exp_tag"; # Command to run 56 $command .= " -dbname $dbname" if defined $dbname; 55 57 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 56 58 run(command => $command, verbose => 1); … … 139 141 "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $jpeg1 -b2_uri $jpeg2 " . 140 142 "-bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev"; # Command to run 143 $command .= " -dbname $dbname" if defined $dbname; 141 144 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 142 145 run(command => $command, verbose => 1); -
trunk/ippScripts/scripts/detrend_process_imfile.pl
r10742 r11297 18 18 use Pod::Usage qw( pod2usage ); 19 19 20 my ($det_id, $exp_tag, $class_id, $det_type, $input_uri, $camera, $ no_update);20 my ($det_id, $exp_tag, $class_id, $det_type, $input_uri, $camera, $bdname, $no_update); 21 21 GetOptions( 22 22 'det_id|d=s' => \$det_id, … … 26 26 'input_uri|u=s' => \$input_uri, 27 27 'camera|c=s' => \$camera, 28 'dbname|d=s' => \$dbname, # Database name 28 29 'no-update' => \$no_update 29 30 ) or pod2usage( 2 ); … … 122 123 } 123 124 $command .= " -bg_mean_stdev " . $stats->bg_mean_stdev(); 125 $command .= " -dbname $dbname" if defined $dbname; 124 126 125 127 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = -
trunk/ippScripts/scripts/detrend_reject_exp.pl
r10719 r11297 18 18 use Pod::Usage qw( pod2usage ); 19 19 20 my ($det_id, $iter, $det_type, $camera, $filter, $ no_update);20 my ($det_id, $iter, $det_type, $camera, $filter, $dbname, $no_update); 21 21 GetOptions( 22 22 'det_id|d=s' => \$det_id, … … 25 25 'camera=s' => \$camera, 26 26 'filter=s' => \$filter, 27 'dbname|d=s' => \$dbname, # Database name 27 28 'no-update' => \$no_update 28 29 ) or pod2usage( 2 ); … … 48 49 { 49 50 my $command = "$dettool -residexp -det_id $det_id -iteration $iter"; # Command to run 51 $command .= " -dbname $dbname" if defined $dbname; 50 52 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 51 53 run(command => $command, verbose => 1); … … 105 107 $expTag = $expTags[$i]; # Exposure ID 106 108 $command = "$dettool -updateresidexp -det_id $det_id -iteration $iter -exp_tag $expTag"; # Command to run 109 $command .= " -dbname $dbname" if defined $dbname; 110 107 111 $reject = 0; # Reject this exposure? 108 112 … … 197 201 " -bg_mean_stdev " . $meanStats->standard_deviation(); 198 202 $command .= " -accept" if $master; 199 203 $command .= " -dbname $dbname" if defined $dbname; 204 200 205 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 201 206 run(command => $command, verbose => 1); … … 211 216 $command .= ' -again'; 212 217 } 218 219 $command .= " -dbname $dbname" if defined $dbname; 213 220 214 221 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = -
trunk/ippScripts/scripts/detrend_reject_imfile.pl
r10719 r11297 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($det_id, $iter, $exp_tag, $det_type, $camera, $filter, $ no_update, $reject);21 my ($det_id, $iter, $exp_tag, $det_type, $camera, $filter, $reject, $dbname, $no_update); 22 22 GetOptions( 23 23 'det_id|d=s' => \$det_id, … … 25 25 'exp_tag|e=s' => \$exp_tag, 26 26 'det_type|t=s' => \$det_type, 27 'no-update' => \$no_update,28 27 'camera=s' => \$camera, 29 28 'filter=s' => \$filter, 30 29 'reject' => \$reject 30 'dbname|d=s' => \$dbname, # Database name 31 'no-update' => \$no_update, 31 32 ) or pod2usage( 2 ); 32 33 … … 58 59 { 59 60 my $command = "$dettool -residimfile -det_id $det_id -iteration $iter -exp_tag $exp_tag"; # Command to run 61 $command .= " -dbname $dbname" if defined $dbname; 60 62 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 61 63 run(command => $command, verbose => 1); … … 239 241 "-bg $mean -bg_stdev $stdev -bg_mean_stdev $meanStdev"; # Command to run 240 242 $command .= ' -reject' if $reject; 243 $command .= " -dbname $dbname" if defined $dbname; 241 244 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 242 245 run(command => $command, verbose => 1); -
trunk/ippScripts/scripts/detrend_resid.pl
r11151 r11297 20 20 21 21 my ($det_id, $iter, $exp_tag, $class_id, $det_type, $detrend, 22 $input_uri, $camera, $mode, $ no_update);22 $input_uri, $camera, $mode, $dbname, $no_update); 23 23 GetOptions( 24 24 'det_id|d=s' => \$det_id, … … 31 31 'camera|c=s' => \$camera, 32 32 'mode|m=s' => \$mode, 33 'dbname|d=s' => \$dbname, # Database name 33 34 'no-update' => \$no_update, 34 35 ) or pod2usage( 2 ); … … 155 156 "-b2_uri $bin2Name"; # Command to run dettool 156 157 $command .= " -bg " . $stats->bg_mean(); 158 $command .= " -dbname $dbname" if defined $dbname; 157 159 158 160 if (defined($stats->bg_mean_stdev())) { -
trunk/ippScripts/scripts/detrend_stack.pl
r11151 r11297 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($det_id, $iter, $class_id, $det_type, $camera, $ no_update);21 my ($det_id, $iter, $class_id, $det_type, $camera, $dbname, $no_update); 22 22 GetOptions( 23 23 'det_id|d=s' => \$det_id, … … 26 26 'det_type|t=s' => \$det_type, 27 27 'camera|c=s' => \$camera, 28 'dbname|d=s' => \$dbname, # Database name 28 29 'no-update' => \$no_update 29 30 ) or pod2usage( 2 ); … … 65 66 { 66 67 my $command = "$dettool -processedimfile -det_id $det_id -class_id $class_id -included"; # Command to run 68 $command .= " -dbname $dbname" if defined $dbname; 67 69 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 68 70 run(command => $command, verbose => 1); … … 128 130 } 129 131 $command .= ' -bg_mean_stdev ' . $stats->bg_mean_stdev(); 132 $command .= " -dbname $dbname" if defined $dbname; 130 133 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 131 134 run(command => $command, verbose => 1); -
trunk/ippScripts/scripts/phase0_exp.pl
r11151 r11297 30 30 'caches' => \$cache, 31 31 'exp_tag|e=s' => \$exptag, 32 'dbname|d=s' => \$dbname,# Database name 32 33 'no-update' => \$no_update 33 34 ) or pod2usage( 2 ); … … 96 97 { 97 98 my $command = "$p0tool -processedimfile -exp_tag $exptag"; 99 $command .= " -dbname $dbname" if defined $dbname; 98 100 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 99 101 cache_run(command => $command, verbose => 1); … … 199 201 } 200 202 203 push @command, "-dbname", $dbname if defined $dbname; 204 201 205 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 202 206 cache_run(command => \@command, verbose => 1); … … 243 247 my $exit_code = $_[1]; 244 248 if ($exp_tag) { 245 system ("$p0tool -addprocessedexp -exp_tag $exp_tag -code $exit_code"); 249 my $command = "$p0tool -addprocessedexp -exp_tag $exp_tag -code $exit_code"; 250 $command .= " -dbname $dbname" if defined $dbname; 251 system($command); 246 252 } 247 253 exit $exit_code; -
trunk/ippScripts/scripts/phase0_imfile.pl
r11212 r11297 31 31 use Pod::Usage qw( pod2usage ); 32 32 33 my ($cache, $exp_tag, $class_id, $uri, $workdir, $ no_update);33 my ($cache, $exp_tag, $class_id, $uri, $workdir, $dbname, $no_update); 34 34 35 35 GetOptions( … … 38 38 'class_id|i=s' => \$class_id, 39 39 'uri|u=s' => \$uri, 40 'workdir|w=s' => \$workdir, 40 'workdir|w=s' => \$workdir, # Working directory for output files 41 'dbname|d=s' => \$dbname,# Database name 41 42 'no-update' => \$no_update 42 43 ) or pod2usage( 2 ); … … 185 186 } 186 187 188 push @command, "-dbname", $dbname if defined $dbname; 189 187 190 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 188 191 run(command => \@command, verbose => 1); … … 219 222 my $exit_code = $_[2]; 220 223 if ($exp_tag && $class_id) { 221 system ("$p0tool -addprocessedimfile -exp_tag $exp_tag -class_id $class_id -code $exit_code"); 224 my $command = "$p0tool -addprocessedimfile -exp_tag $exp_tag -class_id $class_id -code $exit_code"; 225 $command .= " -dbname $dbname" if defined $dbname; 226 system ($command); 222 227 } 223 228 exit $exit_code; -
trunk/ippScripts/scripts/phase2.pl
r11110 r11297 23 23 $camera, # Camera 24 24 $outpath, # Outpath 25 $dbname, # Database name 25 26 $no_update # Don't update the database? 26 27 ); … … 31 32 'camera|c=s' => \$camera, 32 33 'outpath|o=s' => \$outpath, 34 'dbname|d=s' => \$dbname, # Database name 33 35 'no-update' => \$no_update 34 36 ) or pod2usage( 2 ); … … 102 104 $outputBin2 = $ipprc->convert_filename_relative( $outputBin2 ); 103 105 unless ($no_update) { 104 # Command to run dettool106 # Command to run p2tool 105 107 my $command = "$p2tool -addprocessedimfile"; 106 108 $command .= " -exp_tag $expTag"; … … 113 115 $command .= " -bg_stdev " . $stats->bg_stdev(); 114 116 $command .= " -bg_mean_stdev " . $stats->bg_mean_stdev(); 117 $command .= " -dbname $dbname" if defined $dbname; 115 118 116 119 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = -
trunk/ippScripts/scripts/phase3.pl
r11110 r11297 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($exp_tag, $camera, $outpath, $ no_update);21 my ($exp_tag, $camera, $outpath, $dbname, $no_update); 22 22 GetOptions( 23 23 'exp_tag|e=s' => \$exp_tag, 24 24 'camera|c=s' => \$camera, 25 'outpath|o=s' => \$outpath, 25 'outpath|o=s' => \$outpath, 26 'dbname|d=s' => \$dbname, # Database name 26 27 'no-update' => \$no_update 27 28 ) or pod2usage( 2 ); … … 52 53 { 53 54 my $command = "$p3tool -pendingimfile -exp_tag $exp_tag"; # Command to run 55 $command .= " -dbname $dbname" if defined $dbname; 54 56 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 55 57 run(command => $command, verbose => 1); … … 149 151 "-bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev " . 150 152 "-sigma_ra 0.0 -sigma_dec 0.0 -nastro 0 -zp_mean 0.0 -zp_stdev 0.0"; # Command to run 153 $command .= " -dbname $dbname" if defined $dbname; 151 154 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 152 155 run(command => $command, verbose => 1);
Note:
See TracChangeset
for help on using the changeset viewer.
