Changeset 39972
- Timestamp:
- Feb 2, 2017, 5:28:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20150312/ippScripts/scripts/permcheck.pl
- Property svn:mergeinfo changed
/trunk/ippScripts/scripts/permcheck.pl merged: 39969,39971
r39968 r39972 266 266 'warp' => ['PSWARP.OUTPUT','PSWARP.OUTPUT.MASK','PSWARP.OUTPUT.VARIANCE'], 267 267 'stack' => ['PPSTACK.UNCONV.COMP','PPSTACK.UNCONV.MASK.COMP','PPSTACK.UNCONV.VARIANCE.COMP', 268 'PPSTACK.UNCONV.EXP','PPSTACK.UNCONV.EXPNUM','PPSTACK.UNCONV.EXPWT.COMP' ],269 'skycal' => ['PSASTRO.OUTPUT.CMF','PSPHOT.OUTPUT.CFF' ],270 'ff' => ['PSPHOT.OUT.CMF.MEF','PSPHOT.OUTPUT.CFF','PSPHOT.FULLFORCE.OUTPUT' ],268 'PPSTACK.UNCONV.EXP','PPSTACK.UNCONV.EXPNUM','PPSTACK.UNCONV.EXPWT.COMP','PPSTACK.TARGET.PSF'], 269 'skycal' => ['PSASTRO.OUTPUT.CMF','PSPHOT.OUTPUT.CFF','PSPHOT.STACK.PSF.SAVE','PSPHOT.STACK.BACKMDL'], 270 'ff' => ['PSPHOT.OUT.CMF.MEF','PSPHOT.OUTPUT.CFF','PSPHOT.FULLFORCE.OUTPUT','PSPHOT.PSF.SKY.SAVE'], 271 271 'diff' => ['PPSUB.OUTPUT.SOURCES','PPSUB.INVERSE.SOURCES','PSPHOT.PSF.SKY.SAVE','PSPHOT.BACKMDL.MEF','PPSUB.OUTPUT.KERNELS'], 272 272 'burntool' => ['BURN.TABLE.DOESNT.HAVE.A.PRODUCT'] … … 279 279 my $hostname = $entry->{hostname}; 280 280 my $quality = $entry->{quality}; 281 282 # Fixes burntool issues. 283 unless(defined($path_base)) { 284 $path_base = 'NO_PB'; 285 } 286 unless(defined($data_state)) { 287 $data_state = $entry->{data_state}; 288 } 281 289 282 290 $timer = time() - $timer_start; … … 337 345 foreach my $ff_entry (@$ff_files) { 338 346 my $ff_path_base = $ff_entry->{path_base}; 339 push @keys, $ipprc->filename($product,$ff_path_base); 347 my $ff_skycell = $ff_entry->{skycell_id}; 348 my $warp_id = $ff_entry->{warp_id}; 349 if ($product ne 'PSPHOT.PSF.SKY.SAVE') { 350 push @keys, $ipprc->filename($product,$ff_path_base); 351 } 352 else { 353 my $warptool_cmd = "$warptool -warped -skycell_id $ff_skycell -warp_id $warp_id -dbname $dbname"; 354 ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 355 run(command => $warptool_cmd, verbose => 0); 356 unless ($success) { 357 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 358 &my_die("Unable to perform stagetool: $error_code", $stage_id); 359 } 360 my $warp_files = $mdcParser->parse_list(join "", @$stdout_buf) or 361 &my_die("Unable to parse metadata from stagetool", $stage_id); 362 foreach my $wt_entry (@$warp_files) { 363 my $wt_quality = $wt_entry->{quality}; 364 if ($quality == 0) { 365 my $wt_path_base = $wt_entry->{path_base}; 366 push @keys, $ipprc->filename($product,$wt_path_base,$ff_skycell); 367 } 368 } 369 } 340 370 } 341 371 $is_done = 1; … … 344 374 elsif ($stage eq 'burntool') { 345 375 if ($product eq 'BURN.TABLE.DOESNT.HAVE.A.PRODUCT') { 346 my $bt_file = $imfiles->{uri}; 376 my $bt_state = $entry->{burntool_state}; 377 if ($bt_state != -14) { next; } 378 my $bt_file = $entry->{uri}; 347 379 $bt_file =~ s/fits$/burn.tbl/; 348 380 push @keys, $bt_file; 349 } 350 $is_done = 1; 351 } 381 382 $is_done = 1; 383 } 384 385 } 386 elsif ($stage eq 'skycal') { 387 if (($product eq 'PSPHOT.STACK.PSF.SAVE')||($product eq 'PSPHOT.STACK.BACKMDL')) { 388 my $sky_id = $entry->{sky_id}; 389 my $stack_id = $entry->{stack_id}; 390 391 my $ss_cmd = "$staticskytool -result -sky_id $sky_id -dbname $dbname"; 392 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 393 run(command => $ss_cmd, verbose => 0); 394 unless ($success) { 395 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 396 &my_die("Unable to perform stagetool: $error_code", $stage_id); 397 } 398 my $stack_files = $mdcParser->parse_list(join "", @$stdout_buf) or 399 &my_die("Unable to parse metadata from stagetool", $stage_id); 400 foreach my $ss_entry (@$stack_files) { 401 my $ss_path_base = $ss_entry->{path_base}; 402 push @keys, $ipprc->filename($product,$ss_path_base,$stack_id); 403 } 404 $is_done = 1; 405 } 406 407 } 352 408 353 409 if ($is_done == 0) { … … 372 428 unless ($stat) { 373 429 if (($stage eq 'camera')&&($key =~ /psf/)) { 430 warn "nebulous key: $key not found"; 431 } 432 elsif (($stage eq 'ff')&&($key =~ /cff/)) { 374 433 warn "nebulous key: $key not found"; 375 434 } - Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
