- Timestamp:
- Jun 10, 2010, 6:28:51 PM (16 years ago)
- Location:
- branches/czw_branch/20100519
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/skycell_jpeg.pl (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20100519
- Property svn:mergeinfo changed
-
branches/czw_branch/20100519/ippScripts/scripts/skycell_jpeg.pl
r28245 r28304 38 38 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2) if @ARGV; 39 39 pod2usage( 40 -msg => "Required options: --stage --stage_id -- outroot\nHelpful options: --camera --dbname",40 -msg => "Required options: --stage --stage_id --path_base\nHelpful options: --camera --dbname", 41 41 -exitval => 3, 42 42 ) unless … … 125 125 } 126 126 # Update database: 127 $command = "$warptool -addsummary -warp_id $stage_id -projection_cell $projection_cell - outroot$outroot";127 $command = "$warptool -addsummary -warp_id $stage_id -projection_cell $projection_cell -path_base $outroot"; 128 128 if (defined($dbname)) { 129 129 $command .= " -dbname $dbname"; … … 136 136 } 137 137 } 138 if (scalar (keys %tangents) == 0) { 139 my $projection_cell = 'NULL'; 140 $command = "$warptool -addsummary -warp_id $stage_id -projection_cell $projection_cell -path_base $outroot"; 141 if (defined($dbname)) { 142 $command .= " -dbname $dbname"; 143 } 144 145 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose); 146 unless ($success) { 147 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 148 &my_die("unable to update diff summary: $error_code", $stage_id, $error_code); 149 } 150 } 138 151 } #end warp stage 139 152 if ($stage eq 'diff') { … … 165 178 my $state = $imfile->{data_state}; 166 179 my $projection_cell = $skycell_id; 167 if ($quality == 8007 or $ state ne 'full') {180 if ($quality == 8007 or $quality = 1010 or $state ne 'full') { 168 181 next; 169 182 } … … 209 222 } 210 223 # Update database: 211 $command = "$difftool -addsummary -diff_id $stage_id -projection_cell $projection_cell - outroot$outroot";224 $command = "$difftool -addsummary -diff_id $stage_id -projection_cell $projection_cell -path_base $outroot"; 212 225 if (defined($dbname)) { 213 226 $command .= " -dbname $dbname"; … … 220 233 } 221 234 } 235 if (scalar (keys %tangents) == 0) { 236 my $projection_cell = 'NULL'; 237 $command = "$difftool -addsummary -diff_id $stage_id -projection_cell $projection_cell -path_base $outroot"; 238 if (defined($dbname)) { 239 $command .= " -dbname $dbname"; 240 } 241 242 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose); 243 unless ($success) { 244 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 245 &my_die("unable to update diff summary: $error_code", $stage_id, $error_code); 246 } 247 } 222 248 } #end diff stage 223 249 if ($stage eq 'stack') { 224 250 my $imfiles; 225 my $command = "$stacktool -s tackskyfile -stack_id $stage_id";251 my $command = "$stacktool -sassskyfile -sass_id $stage_id"; 226 252 if (defined($dbname)) { 227 253 $command .= " -dbname $dbname"; … … 248 274 my $quality = $imfile->{quality}; 249 275 my $state = $imfile->{data_state}; 276 my $fault = $imfile->{fault}; 250 277 my $projection_cell = $skycell_id; 251 if ($quality == 8007 or $state ne 'full' ) {278 if ($quality == 8007 or $state ne 'full' or $fault != 0) { 252 279 next; 253 280 } … … 293 320 } 294 321 # Update database: 295 $command = "$stacktool -addsummary -s tack_id $stage_id -projection_cell $projection_cell -outroot$outroot";322 $command = "$stacktool -addsummary -sass_id $stage_id -projection_cell $projection_cell -path_base $outroot"; 296 323 if (defined($dbname)) { 297 324 $command .= " -dbname $dbname"; … … 304 331 } 305 332 } 333 if (scalar (keys %tangents) == 0) { 334 my $projection_cell = 'NULL'; 335 $command = "$stacktool -addsummary -stack_id $stage_id -projection_cell $projection_cell -path_base $outroot"; 336 if (defined($dbname)) { 337 $command .= " -dbname $dbname"; 338 } 339 340 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose); 341 unless ($success) { 342 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 343 &my_die("unable to update diff summary: $error_code", $stage_id, $error_code); 344 } 345 } 346 306 347 } #end stack stage 307 348
Note:
See TracChangeset
for help on using the changeset viewer.
