Changeset 36072
- Timestamp:
- Aug 30, 2013, 4:52:14 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130711
- Files:
-
- 39 edited
- 7 copied
-
Nebulous (modified) (1 prop)
-
ippMonitor (modified) (1 prop)
-
ippScripts/scripts/background_chip.pl (modified) (3 diffs)
-
ippScripts/scripts/chip_imfile.pl (modified) (4 diffs, 1 prop)
-
ippScripts/scripts/destreak_restore_camera.pl (modified) (1 prop)
-
ippScripts/scripts/dist_advancerun.pl (modified) (2 diffs)
-
ippScripts/scripts/dist_bundle.pl (modified) (6 diffs)
-
ippScripts/scripts/dist_make_fileset.pl (modified) (2 diffs)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (4 diffs, 1 prop)
-
ippScripts/scripts/ipp_cleanup.pl (modified) (1 diff)
-
ippScripts/scripts/lap_science.pl (modified) (9 diffs, 1 prop)
-
ippScripts/scripts/magic_destreak.pl (modified) (1 prop)
-
ippScripts/scripts/nightly_science.pl (modified) (4 diffs)
-
ippScripts/scripts/publish_file.pl (modified) (1 prop)
-
ippScripts/scripts/receive_advance.pl (modified) (3 diffs)
-
ippScripts/scripts/receive_file.pl (modified) (2 diffs)
-
ippScripts/scripts/register_imfile.pl (modified) (2 diffs)
-
ippScripts/scripts/skycell_jpeg.pl (modified) (8 diffs)
-
ippScripts/scripts/stack_skycell.pl (modified) (1 diff)
-
ippScripts/scripts/warp_skycell.pl (modified) (1 prop)
-
ippTasks (modified) (1 prop)
-
ippTasks/diff.pro (modified) (4 diffs)
-
ippTasks/dist.pro (modified) (1 diff)
-
ippTasks/minidvodb.pro (modified) (1 diff)
-
ippTasks/nightly_science.pro (modified) (1 diff)
-
ippTasks/register.pro (modified) (1 diff)
-
ippTasks/survey.pro (modified) (3 diffs)
-
ippTasks/warp.pro (modified) (4 diffs)
-
ippToPsps (modified) (1 prop)
-
ippToPsps/config/changes.txt (copied) (copied from trunk/ippToPsps/config/changes.txt )
-
ippToPsps/config/ippToPspsDbSchema.sql (modified) (1 diff)
-
ippToPsps/jython/Makefile.am (modified) (1 diff)
-
ippToPsps/jython/detectionbatch.py (modified) (1 diff)
-
ippToPsps/jython/gpc1db.py (modified) (2 diffs)
-
ippToPsps/jython/ipptopspsdb.py (modified) (2 diffs)
-
ippToPsps/jython/queue.py (modified) (1 diff)
-
ippToPsps/jython/removepending.py (copied) (copied from trunk/ippToPsps/jython/removepending.py )
-
psconfig (modified) (1 prop)
-
psconfig/tagsets/ipp-3.0.dist (modified) (1 diff)
-
tools/fixburntool (modified) (1 diff)
-
tools/releasecalib (copied) (copied from trunk/tools/releasecalib )
-
tools/releasecalib/scripts (copied) (copied from trunk/tools/releasecalib/scripts )
-
tools/releasecalib/scripts/calibudpateprocess.txt (copied) (copied from trunk/tools/releasecalib/scripts/calibudpateprocess.txt )
-
tools/releasecalib/scripts/extractinfo (copied) (copied from trunk/tools/releasecalib/scripts/extractinfo )
-
tools/releasecalib/scripts/updatecalib (copied) (copied from trunk/tools/releasecalib/scripts/updatecalib )
-
tools/rundiffskycell.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130711/Nebulous
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130711/ippMonitor
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130711/ippScripts/scripts/background_chip.pl
r35681 r36072 34 34 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1); 35 35 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 36 my $ppImage = can_run('ppImage') or (warn "Can't find ppImage" and $missing_tools = 1); 36 37 if ($missing_tools) { 37 38 warn("Can't find required tools."); … … 134 135 } 135 136 my $in_wt = $ipprc->filename("PPIMAGE.CHIP.VARIANCE", $in_path, $class_id); 136 my $in_bg = $ipprc->filename("PSPHOT.BACKMDL", $in_path, $class_id); 137 my $in_bg; 138 if (1) { 139 $in_bg = $ipprc->filename("PPIMAGE.BACKMDL", $cam_path_base, $class_id); 140 } 141 else { 142 $in_bg = $ipprc->filename("PSPHOT.BACKMDL", $in_path, $class_id); 143 } 137 144 my $in_pattern = $ipprc->filename("PPIMAGE.PATTERN", $in_path, $class_id); 138 145 my $in_config = $ipprc->filename("PPIMAGE.CONFIG", $in_path, $class_id); … … 220 227 } 221 228 229 my $do_binned_images = 1; # Generate the binned images that are useful for making JPEGs 230 if ($do_binned_images) { 231 my $command = "$ppImage -file $out_image -mask $out_mask $outroot -recipe PPIMAGE PPIMAGE_PA -Db PHOTOM F"; 232 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 233 run(command => $command, verbose => $verbose); 234 unless ($success) { 235 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 236 &my_die("Unable to perform ppImage: $error_code", $chip_bg_id, $class_id, $error_code); 237 } 238 } 239 240 222 241 if (!$quality and !$no_op) { 223 242 &my_die("Couldn't find expected output file: $out_image", $chip_bg_id, $class_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($out_image); -
branches/eam_branches/ipp-20130711/ippScripts/scripts/chip_imfile.pl
- Property svn:mergeinfo changed
/tags/ipp-test-20130710/ippScripts/scripts/chip_imfile.pl (added) merged: 35796,35808 /trunk/ippScripts/scripts/chip_imfile.pl (added) merged: 35809,35811,35894
r35789 r36072 233 233 if ($do_photom and ($run_state eq 'update')) { 234 234 # If previous psf file is ok skip photometry 235 if ( $dump_config ||rerun_photometry($outroot, $class_id)) {235 if (rerun_photometry($outroot, $class_id)) { 236 236 carp "Will rerun photometry\n"; 237 237 } else { … … 348 348 } 349 349 } 350 # resolve uri 351 my $uriReal = $ipprc->file_resolve( $uri ); 352 # If instance is not found or if it doesn't exist try running neb-repair on it 353 # Note: file_exists returns false if the file exists but has zero size 354 if (!$uriReal or !$ipprc->file_exists($uriReal)) { 355 my $repair_cmd = "$nebrepair $uri"; 356 my ($repair_success, $repair_error_code, $repair_full_buf, $repair_stdout_buf, $repair_stderr_buf ) = run(command => $repair_cmd, verbose => $verbose); 357 unless ($repair_success) { 358 &my_die("Unable to attempt repair: $uri $repair_error_code", $exp_id,$chip_id, $class_id, $PS_EXIT_SYS_ERROR); 359 } 360 $uriReal = $ipprc->file_resolve( $uri ); 361 } 362 363 &my_die("Unable to resolve $uri on $host", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) if !$uriReal; 350 364 351 365 # if recipe option PPIMAGE:APPLY.BURNTOOL is set and the burntool information is stored in … … 379 393 UNLINK => !$save_temps, SUFFIX => '.fits' ); 380 394 381 # get the UNIX version of the (possible) neb: or path: filename382 my $uriReal = $ipprc->file_resolve( $uri );383 # Catch errors here384 if (!$uriReal) {385 my $repair_cmd = "$nebrepair $uri";386 my ($repair_success, $repair_error_code, $repair_full_buf, $repair_stdout_buf, $repair_stderr_buf ) = run(command => $repair_cmd, verbose => $verbose);387 unless ($repair_success) {388 &my_die("Unable to attempt repair: $uri $repair_error_code", $exp_id,$chip_id, $class_id, $PS_EXIT_SYS_ERROR);389 }390 $uriReal = $ipprc->file_resolve( $uri );391 }392 393 &my_die("Unable to resolve $uri on $host", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR) if !$uriReal;394 395 395 # funpack into the temp file. 396 396 my $funpack_cmd = "$funpack -S $uriReal > $tempName"; … … 492 492 if ($no_compress_image) { 493 493 $command .= " -R PPIMAGE.CHIP FITS.TYPE NONE"; 494 } 495 if ($run_state eq 'update' and metadataLookupBool($recipeData, 'MASK.STATS')) { 496 $command .= " -Db PPIMAGE:MASK.STATS FALSE "; 494 497 } 495 498 $command .= $burntoolArguments if $burntoolArguments; - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130711/ippScripts/scripts/destreak_restore_camera.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130711/ippScripts/scripts/dist_advancerun.pl
r31565 r36072 115 115 $list_mode = "-result"; 116 116 $component_key = "skycell_id"; 117 } elsif ($stage eq "skycal") { 118 $tool_cmd = "$staticskytool -skycal_id"; 119 $list_mode = "-skycalresult"; 120 $component_key = "skycell_id"; 117 121 } elsif ($stage eq "diff") { 118 122 $tool_cmd = "$difftool -diff_id"; … … 134 138 } elsif ($stage eq 'warp_bg') { 135 139 $exportarg = '-exportwarp'; 140 } elsif ($stage eq 'skycal') { 141 $exportarg = '-exportskycalrun'; 136 142 } 137 143 -
branches/eam_branches/ipp-20130711/ippScripts/scripts/dist_bundle.pl
r35117 r36072 53 53 'PPSTACK.OUTPUT.MASK' => 'mask', 54 54 'PPSTACK.OUTPUT.VARIANCE' => 'variance' ); 55 my %sky_cleaned = ( 'PSPHOT.STACK.OUTPUT.IMAGE' => 'image', 56 'PSPHOT.STACK.OUTPUT.MASK' => 'mask', 57 'PSPHOT.STACK.OUTPUT.VARIANCE' => 'variance' ); 55 my %empty_cleaned = (); 58 56 59 57 … … 110 108 defined $outroot; 111 109 110 $no_magic = 1; 111 112 112 if ($stage eq 'raw' and !$clean and !$no_magic) { 113 113 … … 134 134 my $file_list = get_file_list($stage, $component, $path_base, $clean, $num_sky_inputs); 135 135 136 if (($stage ne 'raw') and ($stage ne 'fake') and !$poor_quality) {136 if (($stage ne 'raw') and ($stage ne 'fake') and ($stage ne 'stack_summary') and !$poor_quality) { 137 137 # If the file list is empty it is an error because we should at least get a config dump file 138 138 # except for fake stage which doesn't do anything yet … … 460 460 } elsif ($stage eq "stack") { 461 461 $type = $stack_cleaned{$rule}; 462 } elsif ($stage eq "sky" ) {463 $type = $ sky_cleaned{$rule};462 } elsif ($stage eq "sky" or $stage eq 'skycal' or $stage eq 'stack_summary') { 463 $type = $empty_cleaned{$rule}; 464 464 } else { 465 465 &my_die("$stage is not a valid stage", $component, $PS_EXIT_CONFIG_ERROR); … … 546 546 $config_file_rule = "PPSTACK.CONFIG"; 547 547 } elsif ($stage eq "sky") { 548 if (1 or $num_sky_inputs > 1) { 549 $config_file_rule = "PSPHOT.STACK.CONFIG"; 550 } else { 551 $config_file_rule = "PSPHOT.SKY.CONFIG"; 552 } 548 $config_file_rule = "PSPHOT.STACK.CONFIG"; 549 } elsif ($stage eq "skycal") { 550 $config_file_rule = "PSASTRO.CONFIG"; 551 } elsif ($stage eq "stack_summary") { 552 # stack_summary stage does not use a config dump file. 553 return build_stack_summary_file_list($path_base, \@file_list); 553 554 } else { 554 555 &my_die("$stage is not a valid stage", $component, $PS_EXIT_CONFIG_ERROR); … … 665 666 if (!$num_inputs) { 666 667 $num_inputs = "undefined" if !defined $num_inputs; 667 &my_die("unexpected number of static sky inputs $num_inputs", $ PS_EXIT_PROG_ERROR, $component, $error_code);668 &my_die("unexpected number of static sky inputs $num_inputs", $component, $error_code); 668 669 } 669 670 670 671 return $num_inputs; 672 } 673 674 # For stack_summary stage, we don't have a config dump file to give us the list of files. 675 # For now run neb-ls on the path base and take everything that matches. 676 sub build_stack_summary_file_list { 677 my ($path_base, $file_list) = @_; 678 679 my $scheme = file_scheme($path_base); 680 681 if (!$scheme or $scheme ne 'neb') { 682 &my_die("Building bundles for stack_summary not supported for no nebulous path_base.", 683 $component, $PS_EXIT_PROG_ERROR); 684 } 685 686 my $command = "neb-ls $path_base" . '%'; 687 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 688 run(command => $command, verbose => $verbose); 689 unless ($success) { 690 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 691 &my_die("Unable to perform $command: $error_code", $component, $error_code); 692 } 693 my $nebls_output = join "", @$stdout_buf; 694 695 my @files = split "\n", $nebls_output; 696 697 my $i = 0; 698 foreach my $f (@files) { 699 my %file; 700 $file{file_rule} = sprintf 'RULE.%d', $i++; 701 $file{name} = 'neb://any/' . $f; 702 push @$file_list, \%file; 703 } 704 705 return $file_list; 671 706 } 672 707 -
branches/eam_branches/ipp-20130711/ippScripts/scripts/dist_make_fileset.pl
r30489 r36072 223 223 my $dbname = shift; 224 224 225 if (($stage eq 'stack') or ($stage eq 'diff') or ($stage eq 'SSdiff') or $stage eq 'sky' ) {225 if (($stage eq 'stack') or ($stage eq 'diff') or ($stage eq 'SSdiff') or $stage eq 'sky' or $stage eq 'skycal') { 226 226 return ""; 227 227 } … … 252 252 } elsif ($stage eq 'warp_bg') { 253 253 $query = "SELECT exp_name FROM warpBackgroundRun JOIN warpRun USING(warp_id) JOIN fakeRun USING(fake_id) JOIN camRun USING(cam_id) JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) WHERE warp_bg_id = $stage_id"; 254 254 255 } else { 255 &my_die("$stage is invalid value for stage \n");256 &my_die("$stage is invalid value for stage", $dist_id, $dest_id, $PS_EXIT_UNKNOWN_ERROR); 256 257 } 257 258 -
branches/eam_branches/ipp-20130711/ippScripts/scripts/ipp_apply_burntool_single.pl
- Property svn:mergeinfo changed
/trunk/ippScripts/scripts/ipp_apply_burntool_single.pl merged: 35829,35833
r35770 r36072 45 45 defined $dbname; 46 46 47 unless (defined $camera) {48 $camera = "GPC1";49 }47 # unless (defined $camera) { 48 # $camera = "GPC1"; 49 # } 50 50 51 51 my $missing_tools; … … 146 146 } 147 147 if (($addable == 1)&&($#continue_exp_ids < $continue)) { 148 $this_exp_id = $entry->{exp_id} ;149 $this_uri = $entry->{uri} ;150 $this_state = $entry->{imfile_state} ;148 $this_exp_id = $entry->{exp_id} ? $entry->{exp_id} : 0; 149 $this_uri = $entry->{uri} ? $entry->{uri} : 'NULL'; 150 $this_state = $entry->{imfile_state} ? $entry->{imfile_state} : 'NULL'; 151 151 print ">> $this_exp_id $this_uri $this_state\n"; 152 152 if ($this_state eq 'pending_burntool') { … … 177 177 $outTable =~ s/fits$/burn.tbl/; 178 178 my $outTableReal = $ipprc->file_resolve($outTable, 1); 179 if (!$outTableReal) { 180 &my_die("failed to resolve output file: $outTable",$exp_id,$class_id); 181 } 179 182 180 183 my $previousTable; … … 184 187 $previousTable =~ s/fits$/burn.tbl/; 185 188 $previousTableReal = $ipprc->file_resolve($previousTable, 0); 189 if (!$previousTableReal) { 190 &my_die("failed to resolve input file: $previousTable",$exp_id,$class_id); 191 } 186 192 } 187 193 - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130711/ippScripts/scripts/ipp_cleanup.pl
r35791 r36072 933 933 addFilename(\@files, "PPSUB.REF.CONV.VARIANCE", $path_base, $skycell_id); 934 934 935 addFilename(\@files, "PPSUB.OUTPUT.JPEG1", $path_base, $skycell_id); 936 935 937 if ($mode eq "goto_purged") { 936 938 # additional files to remove for 'purge' mode 937 939 addFilename(\@files, "PPSUB.OUTPUT.KERNELS", $path_base, $skycell_id); 938 addFilename(\@files, "PPSUB.OUTPUT.JPEG1", $path_base, $skycell_id);939 940 addFilename(\@files, "PPSUB.OUTPUT.JPEG2", $path_base, $skycell_id); 940 941 # Commented out to match warp files. -
branches/eam_branches/ipp-20130711/ippScripts/scripts/lap_science.pl
- Property svn:mergeinfo set to (toggle deleted branches)
r35792 r36072 33 33 # Global configuration constants that probably should be read from elsewhere. 34 34 my $qstack_threshold = 0.05; # Only make a quickstack if more than 5% of the exposures require it. 35 my $minimum_stack_inputs = 4; # We can avoid magicking stack inputs if we have more than this number.35 my $minimum_stack_inputs = 2; # We can avoid magicking stack inputs if we have more than this number. 36 36 my $do_updates_pv2 = 1; # Do updates using the calls needed for PV2. 37 37 … … 309 309 my $magicDS_update_cmd = "magicdstool -setfiletoupdate -magic_ds_id $chip_magicDS_id -set_label $label"; 310 310 $magicDS_update_cmd .= " -dbname $dbname " if defined $dbname; 311 my $warptool_preupdate_cmd = "warptool -revertwarped -warp_id $warp_id -fault 26"; 312 $warptool_preupdate_cmd .= " -dbname $dbname " if defined $dbname; 311 313 my $warptool_update_cmd = "warptool -setskyfiletoupdate -warp_id $warp_id -set_label $label"; 312 314 $warptool_update_cmd .= " -dbname $dbname " if defined $dbname; … … 314 316 # only need to update the data if the warps are not full 315 317 if ($warp->{state} ne 'full') { 316 if ($chip->{state} eq 'cleaned') { 318 if (($chip->{state} eq 'cleaned')|| # Exposure is cleaned 319 (($chip->{state} eq 'update')&&($chip->{label} ne $label))) { # Exposure is owned by an interloper. 317 320 ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 318 321 run(command => $chiptool_update_cmd, verbose => $verbose); … … 341 344 } 342 345 346 347 ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 348 run(command => $warptool_preupdate_cmd, verbose => $verbose); 349 unless ($success) { 350 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 351 &my_die("Unable to perform warptool --revertwarped: $error_code", $exposure->{exp_id}, $data_group); 352 } 353 343 354 ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 344 355 run(command => $warptool_update_cmd, verbose => $verbose); … … 364 375 if (S64_IS_NOT_NULL($exposure->{chip_id})) { 365 376 if (($exposure->{chip_state} eq 'cleaned')|| 377 ($exposure->{chip_state} eq 'update')|| 366 378 ($exposure->{chip_state} eq 'goto_cleaned')|| 367 379 ($exposure->{chip_state} eq 'error_cleaned')) { … … 777 789 # $can_qstack ++; 778 790 $can_diff ++; 779 $exposure->{data_state} = 'to_diff'; 791 ## BEGIN These two disable LAP stacks 792 $are_magicked = $total_exposures; 793 $have_diff ++; 794 ## END 795 # $exposure->{data_state} = 'to_diff'; 796 $exposure->{data_state} = 'full'; 780 797 } 781 798 if (($exposure->{diff_id})&& … … 858 875 } 859 876 } 860 elsif ($are_magicked == $total_exposures) { # We have made all of the diffs, and propagated through magic877 elsif ($are_magicked >= $total_exposures) { # We have made all of the diffs, and propagated through magic 861 878 print "STATUS: We would create all remaining stacks possible, but no longer require magic.\n"; 862 879 # my $Nstacks_made = -1; … … 1025 1042 # $command .= " -select_label $label "; # Removed to allow exposure sharing to work 1026 1043 $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group "; 1027 $command .= " -min_num ${minimum_stack_inputs} -set_reduction THREEPI_STACK -set_dist_group $exposure->{dist_group} ";1044 $command .= " -min_num ${minimum_stack_inputs} -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} "; 1028 1045 $command .= " $warps "; 1029 1046 … … 1106 1123 # $command .= " -select_label $label "; # Removed to allow exposure sharing to work 1107 1124 $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group "; 1108 $command .= " -min_num 2 -min_new 2 -set_reduction THREEPI_STACK -set_dist_group $exposure->{dist_group} ";1125 $command .= " -min_num 2 -min_new 2 -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} "; 1109 1126 $command .= " $warps "; 1110 1127 -
branches/eam_branches/ipp-20130711/ippScripts/scripts/magic_destreak.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130711/ippScripts/scripts/nightly_science.pl
r34880 r36072 1562 1562 } 1563 1563 1564 my $cmd = "$difftool -dbname $dbname -definewarpwarp ";1565 $cmd .= "-input_label $label -template_label $label ";1564 my $cmd = "$difftool -dbname $dbname -definewarpwarp "; 1565 $cmd .= "-input_label $label -template_label $label -good_frac 0.1 "; 1566 1566 $cmd .= "-backwards "; # Needed because difftool assumes a different date sorting. 1567 1567 $cmd .= "-set_workdir $workdir -set_dist_group $dist_group -set_data_group $data_group "; … … 1699 1699 my $new_data_group = "${data_group}.multi"; 1700 1700 my $cmd = "$difftool -dbname $dbname -definewarpwarp "; 1701 $cmd .= "-input_label $label -template_label $label ";1701 $cmd .= "-input_label $label -template_label $label -good_frac 0.1 "; 1702 1702 $cmd .= "-backwards "; # Needed because difftool assumes a different date sorting. 1703 1703 $cmd .= "-set_workdir $workdir -set_dist_group $dist_group -set_data_group $new_data_group "; … … 1756 1756 my $new_dist_group = "${dist_group}.offnight"; 1757 1757 my $check_cmd = "$difftool -dbname $dbname -definewarpwarp "; 1758 $check_cmd .= "-input_label $label -template_label $label ";1758 $check_cmd .= "-input_label $label -template_label $label -good_frac 0.1 "; 1759 1759 $check_cmd .= "-set_workdir $workdir -set_dist_group $new_dist_group -set_data_group $new_data_group "; 1760 1760 $check_cmd .= " -mintimediff 40000 "; … … 1778 1778 unless (multi_date_verify_uniqueness_diff($diff->{input_warp_id},$diff->{template_warp_id},$date,$target)) { 1779 1779 # If we don't already have a diff with these inputs, make a diff with these inputs. 1780 my $cmd = "$difftool -dbname $dbname -definewarpwarp ";1780 my $cmd = "$difftool -dbname $dbname -definewarpwarp -good_frac 0.1 "; 1781 1781 $cmd .= "-input_label $label -template_label $label "; 1782 1782 $cmd .= "-warp_id $diff->{input_warp_id} -template_warp_id $diff->{template_warp_id} "; -
branches/eam_branches/ipp-20130711/ippScripts/scripts/publish_file.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130711/ippScripts/scripts/receive_advance.pl
r29574 r36072 65 65 my ($stage) = $filename =~ m|^dbinfo\.(\S+)\.\d+\.mdc$|; # Stage of interest 66 66 my $tool_name; 67 my $tool_mode = '-importrun'; 67 68 if ($stage eq "raw") { 68 69 $tool_name = "regtool"; … … 73 74 } elsif ($stage eq "sky") { 74 75 $tool_name = "staticskytool"; 76 } elsif ($stage eq "skycal") { 77 $tool_name = "staticskytool"; 78 $tool_mode = '-importskycal'; 75 79 } else { 76 80 $tool_name = "${stage}tool"; … … 81 85 &my_die("Unable to resolve $dbinfo_uri\n", $PS_EXIT_UNKNOWN_ERROR) unless $file; 82 86 83 my $command = "$tool -importrun-infile $file"; # Command to execute87 my $command = "$tool $tool_mode -infile $file"; # Command to execute 84 88 $command .= " -dbname $dbname" if defined $dbname; 85 89 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = -
branches/eam_branches/ipp-20130711/ippScripts/scripts/receive_file.pl
r31567 r36072 223 223 } elsif ($runType eq 'staticskyRun') { 224 224 $stage = 'sky'; 225 # XXX: This should be skycell, but the distribution code uses exposure226 225 $comp_name = 'skycell_id'; 227 # $current_component = $comp_name; 226 } elsif ($runType eq 'skycalRun') { 227 $stage = 'skycal'; 228 $comp_name = 'skycell_id'; 228 229 } else { 229 230 &my_die( "unexpected run type line found in $filename: $runType\n", $file_id, $PS_EXIT_UNKNOWN_ERROR); … … 238 239 } 239 240 240 if ($stage eq 'sky' ) {241 # the dbinfo file for a skyRun only has one component and it doesn't contain241 if ($stage eq 'sky' or $stage = 'skycal') { 242 # the dbinfo file for staticskyRun and skycalRun only have one component and they don't contain 242 243 # skycell_id which is the way components are listed in the dirinfo file. 243 244 my @ids = keys %$components; -
branches/eam_branches/ipp-20130711/ippScripts/scripts/register_imfile.pl
r32444 r36072 291 291 292 292 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 293 run ( command => $bt_check_command, verbose => $verbose);293 run ( command => $bt_check_command, verbose => 0); 294 294 unless ($success) { 295 295 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 341 341 $apply_command .= " --class_id $class_id --exp_id $exp_id "; 342 342 $apply_command .= " --this_uri $burntool_data->{uri} "; 343 $apply_command .= " --camera GPC1 "; # hack, but we're only going to get here if we're GPC1. 343 344 $apply_command .= " --previous_uri $burntool_data->{previous_uri} " if defined $burntool_data->{previous_uri}; 344 345 $apply_command .= " --imfile_state $burntool_data->{imfile_state} "; -
branches/eam_branches/ipp-20130711/ippScripts/scripts/skycell_jpeg.pl
r34800 r36072 17 17 my ($help,$masks); 18 18 my ($tempFile,$tempName,$maskFile,$maskName); 19 $verbose = 0; 19 20 my $ppSkycell = can_run('ppSkycell') or (warn "Can't find ppSkycell" and $missing_tools = 1); 20 21 my $warptool = can_run('warptool') or (warn "Can't find warptool" and $missing_tools = 1); … … 38 39 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2) if @ARGV; 39 40 pod2usage( 40 -msg => "Required options: --stage --stage_id -- path_base\nHelpful options: --camera --dbname",41 -msg => "Required options: --stage --stage_id --outroot\nHelpful options: --camera --dbname", 41 42 -exitval => 3, 42 43 ) unless … … 100 101 } 101 102 } 102 print "$skycell_id $projection_cell\n";103 # print "$skycell_id $projection_cell\n"; 103 104 my $file = $ipprc->filename("PSWARP.OUTPUT", $path_base, $skycell_id); 104 print "$file $state $quality\n";105 # print "$file $state $quality\n"; 105 106 my $f_fh = $tangents{$projection_cell}{FILE}; 106 107 print $f_fh "$file\n"; 107 108 if ($masks) { 108 109 my $mask = $ipprc->filename("PSWARP.OUTPUT.MASK", $path_base, $skycell_id); 109 print "$mask\n";110 # print "$mask\n"; 110 111 my $m_fh = $tangents{$projection_cell}{MFILE}; 111 112 print $m_fh "$mask\n"; … … 118 119 } 119 120 $command .= " ${outroot}.${projection_cell} "; 120 print "$command\n";121 # print "$command\n"; 121 122 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose); 122 123 unless ($success) { … … 197 198 } 198 199 } 199 print "$skycell_id $projection_cell\n";200 # print "$skycell_id $projection_cell\n"; 200 201 my $file = $ipprc->filename("PPSUB.OUTPUT", $path_base, $skycell_id); 201 print "$file $state $quality\n";202 # print "$file $state $quality\n"; 202 203 my $f_fh = $tangents{$projection_cell}{FILE}; 203 204 print $f_fh "$file\n"; 204 205 if ($masks) { 205 206 my $mask = $ipprc->filename("PPSUB.OUTPUT.MASK", $path_base, $skycell_id); 206 print "$mask\n";207 # print "$mask\n"; 207 208 my $m_fh = $tangents{$projection_cell}{MFILE}; 208 209 print $m_fh "$mask\n"; … … 215 216 } 216 217 $command .= " ${outroot}.${projection_cell} "; 217 print "$command\n";218 # print "$command\n"; 218 219 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose); 219 220 unless ($success) { … … 297 298 $tangents{$projection_cell}{$key}{FILE} = $tempFile; 298 299 $tangents{$projection_cell}{$key}{NAME} = $tempName; 300 $tangents{$projection_cell}{$key}{N} = 0; 299 301 } 300 302 } 301 303 foreach my $key (keys %products) { 302 print "$skycell_id $projection_cell\n";304 # print "$skycell_id $projection_cell\n"; 303 305 my $file = $ipprc->filename($products{$key}, $path_base, $skycell_id); 304 print "$file $state $quality\n";306 # print "$file $state $quality\n"; 305 307 my $f_fh = $tangents{$projection_cell}{$key}{FILE}; 306 print $f_fh "$file\n"; 308 if ($ipprc->file_exists($file)) { 309 print $f_fh "$file\n"; 310 $tangents{$projection_cell}{$key}{N} ++; 311 } 307 312 } 308 313 } … … 322 327 $command .= " -Di BIN1 1 -Di BIN2 1 "; 323 328 } 324 elsif ($key eq 'image') { 325 $command .= " -masks $tangents{$projection_cell}{mask}{NAME} "; 326 } 327 elsif ($key eq 'mask') { 328 next; # This should be made with the images. 329 } 330 print "$command\n"; 331 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose); 332 unless ($success) { 333 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 334 &my_die("unable to perform ppSkycell: $error_code", $stage_id, $error_code); 329 # elsif ($key eq 'image') { 330 # $command .= " -masks $tangents{$projection_cell}{mask}{NAME} "; 331 # } 332 # elsif ($key eq 'mask') { 333 # next; # This should be made with the images. 334 # } 335 else { 336 # Append the image list to other objects, in case the WCS information is unpopulated 337 $command .= " -wcsref $tangents{$projection_cell}{image}{NAME} "; 338 } 339 if ($tangents{$projection_cell}{$key}{N} > 0) { 340 print "$command\n"; 341 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose); 342 unless ($success) { 343 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 344 # print "Was unable to perform ppSkycell $stage_id $error_code $key\n"; 345 &my_die("unable to perform ppSkycell: $error_code", $stage_id, $error_code); 346 } 335 347 } 336 348 } -
branches/eam_branches/ipp-20130711/ippScripts/scripts/stack_skycell.pl
r34800 r36072 299 299 $command .= " -F PPSTACK.OUTPUT.VARIANCE PPSTACK.OUTPUT.VARIANCE.NOCOMP"; 300 300 $command .= " -F PPSTACK.OUTPUT.EXPWT PPSTACK.OUTPUT.EXPWT.NOCOMP"; 301 $command .= " -F PPSTACK.OUTPUT.EXP PPSTACK.OUTPUT.EXP.NOCOMP"; 301 302 $command .= " -F PPSTACK.UNCONV PPSTACK.UNCONV.NOCOMP"; 302 303 $command .= " -F PPSTACK.UNCONV.VARIANCE PPSTACK.UNCONV.VARIANCE.NOCOMP"; 303 304 $command .= " -F PPSTACK.UNCONV.EXPWT PPSTACK.UNCONV.EXPWT.NOCOMP"; 305 $command .= " -F PPSTACK.UNCONV.EXP PPSTACK.UNCONV.EXP.NOCOMP"; 304 306 } 305 307 if ($output_logflux) { -
branches/eam_branches/ipp-20130711/ippScripts/scripts/warp_skycell.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130711/ippTasks
- Property svn:mergeinfo changed
/trunk/ippTasks (added) merged: 35820,35830,35881,35884,35916,35956
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130711/ippTasks/diff.pro
r30438 r36072 47 47 active true 48 48 end 49 task diff.summary.load50 active true51 end52 task diff.summary.run53 active true54 end55 49 end 56 50 … … 67 61 end 68 62 task diff.revert 69 active false70 end71 task diff.summary.load72 active false73 end74 task diff.summary.run75 63 active false 76 64 end … … 499 487 task diff.summary.load 500 488 host local 489 active false 501 490 502 491 periods -poll $LOADPOLL … … 559 548 periods -exec $RUNEXEC 560 549 periods -timeout 60 550 active false 561 551 562 552 task.exec -
branches/eam_branches/ipp-20130711/ippTasks/dist.pro
r31854 r36072 31 31 list DIST_STAGE -add "warp_bg" 32 32 list DIST_STAGE -add "sky" 33 list DIST_STAGE -add "skycal" 33 34 34 35 $currentStage = 0 -
branches/eam_branches/ipp-20130711/ippTasks/minidvodb.pro
r35335 r36072 449 449 stderr $LOGDIR/minidvodb.premerge.run.log 450 450 451 $run = minidvodb_premerge.pl --camera $CAMERA --minidvodb $MINIDVODB_PATH --minidvodb_group $MINIDVODB_GROUP --minidvodb_id $MINIDVODB_ID 451 #still buggy 452 453 $run = minidvodb_premerge.pl --camera GPC1 --minidvodb $MINIDVODB_PATH --minidvodb_group $MINIDVODB_GROUP --minidvodb_id $MINIDVODB_ID 452 454 453 455 if ($DB:n == 0) -
branches/eam_branches/ipp-20130711/ippTasks/nightly_science.pro
r34882 r36072 370 370 periods -poll $LOADPOLL 371 371 periods -exec $LOADEXEC 372 periods -timeout 480372 periods -timeout 1000 373 373 npending 1 374 374 -
branches/eam_branches/ipp-20130711/ippTasks/register.pro
r32076 r36072 659 659 stderr $LOGDIR/register.burntool.run.log 660 660 661 $run = ipp_apply_burntool_single.pl -- exp_id $EXP_ID --class_id $CLASS_ID --this_uri $THIS_URI --continue 10661 $run = ipp_apply_burntool_single.pl --camera $CAMERA --exp_id $EXP_ID --class_id $CLASS_ID --this_uri $THIS_URI --continue 10 662 662 if ("$PREVIOUS_URI" != "NULL") 663 663 $run = $run --previous_uri $PREVIOUS_URI -
branches/eam_branches/ipp-20130711/ippTasks/survey.pro
r35676 r36072 583 583 584 584 macro survey.add.relstack 585 if ($0 != 3)586 echo "USAGE: survey.add.relstack (label) (releasename) "585 if ($0 != 4) 586 echo "USAGE: survey.add.relstack (label) (releasename) (stacktype)" 587 587 break 588 588 end … … 590 590 book setword SURVEY_RELSTACK $1 LABEL $1 591 591 book setword SURVEY_RELSTACK $1 RELEASE_NAME $2 592 book setword SURVEY_RELSTACK $1 STACK_TYPE $3 592 593 book setword SURVEY_RELSTACK $1 STATE PENDING 593 594 end … … 1846 1847 book setword SURVEY_RELSTACK $label STATE DONE 1847 1848 book getword SURVEY_RELSTACK $label RELEASE_NAME -var RELEASE_NAME 1849 book getword SURVEY_RELSTACK $label STACK_TYPE -var STACK_TYPE 1848 1850 1849 1851 # XXX: Can we use the survey task for stack types other than nightly? 1850 $run = releasetool -definerelstack -label $label -release_name $RELEASE_NAME -set_state processed -set_stack_type nightly1852 $run = releasetool -definerelstack -label $label -release_name $RELEASE_NAME -set_state processed -set_stack_type $STACK_TYPE 1851 1853 1852 1854 if ($DB:n == 0) -
branches/eam_branches/ipp-20130711/ippTasks/warp.pro
r28375 r36072 58 58 active true 59 59 end 60 task warp.summary.load61 active true62 end63 task warp.summary.run64 active true65 end66 60 end 67 61 … … 87 81 end 88 82 task warp.revert.warped 89 active false90 end91 task warp.summary.load92 active false93 end94 task warp.summary.run95 83 active false 96 84 end … … 545 533 task warp.summary.load 546 534 host local 547 535 active false 548 536 periods -poll $LOADPOLL 549 537 periods -exec $LOADEXEC … … 605 593 periods -exec $RUNEXEC 606 594 periods -timeout 60 595 active false 607 596 608 597 task.exec -
branches/eam_branches/ipp-20130711/ippToPsps
- Property svn:mergeinfo changed
/trunk/ippToPsps (added) merged: 35994
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130711/ippToPsps/config/ippToPspsDbSchema.sql
r35502 r36072 127 127 `active` tinyint(1) default '1', 128 128 `parallel` tinyint(1) default '0', 129 `P2_smf_version` varchar(16) default NULL, 130 `ST_cmf_version` varchar(16) default NULL, 129 131 UNIQUE KEY `name` (`name`) 130 132 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -
branches/eam_branches/ipp-20130711/ippToPsps/jython/Makefile.am
r35097 r36072 30 30 pslogger.py \ 31 31 queue.py \ 32 removepending.py \ 32 33 scratchdb.py \ 33 34 setupScratchDb.py \ -
branches/eam_branches/ipp-20130711/ippToPsps/jython/detectionbatch.py
r35605 r36072 54 54 batchID, 55 55 "P2", 56 gpc1Db.getCameraStageSmf(camID ),56 gpc1Db.getCameraStageSmf(camID,skychunk.P2_smf_version), 57 57 useFullTables) 58 58 -
branches/eam_branches/ipp-20130711/ippToPsps/jython/gpc1db.py
r35417 r36072 212 212 Gets a camera-stage smf for this cam_id 213 213 ''' 214 def getCameraStageSmf(self, camID ):215 214 def getCameraStageSmf(self, camID, smfversion): 215 self.logger.infoPair("using", smfversion) 216 216 self.logger.debug("Querying GPC1 for camera smf files with cam_id = " + str(camID)) 217 217 … … 237 237 # list all smf files if a neb path 238 238 files = [] 239 if path.startswith("neb"): 240 241 # XXX EAM : this should just use the name (path.smf) instead of a wildcard, right? 242 f=os.popen("neb-ls -p "+path+"%smf") 243 for i in f.readlines(): 244 files.append(i.rstrip()) 245 246 # or not a neb path 247 else: 248 files = glob.glob(path + ".smf") 239 240 241 #there are a couple of states for smfversion 242 243 # "use_new" => we have reprocessed the data, use the .smf file 244 245 # "not_reproc" => this has not been reprocessed, use the .smf file 246 247 # "use_original" => we *may* have reprocessed the data, 248 # use (file).smf.original if camRun.state = 'full' and if there is a .smf and .orig 249 # use (file).smf if camRun.state = 'full' and if there is only a .smf 250 # fault out if camRun.state != 'full' -- that is a race condition we don't want. 251 252 253 if (smfversion == "not_reproc") or (smfversion == "use_new"): 254 if path.startswith("neb"): 255 256 # XXX EAM : this should just use the name (path.smf) instead of a wildcard, right? 257 f=os.popen("neb-ls -p "+path+"%smf") 258 for i in f.readlines(): 259 files.append(i.rstrip()) 260 261 # or not a neb path 262 else: 263 files = glob.glob(path + ".smf") 264 265 if (smfversion == "use_original"): 266 # get state of camRun 267 sql = "SELECT state \ 268 FROM camProcessedExp \ 269 JOIN camRun USING(cam_id) \ 270 WHERE camRun.cam_id = %d" % camID 271 try: 272 rs = self.executeQuery(sql) 273 rs.first() 274 except: 275 self.logger.errorPair("Can't query for camRun.state for cam_id", str(camID)) 276 return None 277 278 try: 279 # get state of camRun.cam_id 280 camrunstate = rs.getString(1) 281 except: 282 self.logger.errorPair("No state found for cam_id", str(camID) ) 283 return None 284 285 if (camrunstate == "full"): 286 self.logger.infoPair("camRun.state is ",camrunstate) 287 # if full find smf files 288 if path.startswith("neb"): 289 290 # XXX EAM : this should just use the name (path.smf) instead of a wildcard, right? 291 fsmf=os.popen("neb-ls -p "+path+"%smf") 292 fsmfs = fsmf.readlines() 293 fsmforig=os.popen("neb-ls -p "+path+"%smf.original") 294 fsmforigs = fsmforig.readlines() 295 smfCount = len(fsmfs) 296 smfOrigCount = len (fsmforigs) 297 298 if (smfCount > 0 and smfOrigCount > 0): 299 #smf and original so use original 300 self.logger.infoPair("using:", path+"%smf.original") 301 for i in fsmforigs: 302 files.append(i.rstrip()) 303 304 if (smfCount > 0 and smfOrigCount == 0): 305 self.logger.infoPair("using:", path+"%smf") 306 #smf file and no smf.original use .smf 307 for i in fsmfs: 308 files.append(i.rstrip()) 309 310 #if not smf dont' find files ??) 311 # or not a neb path 312 313 else: 314 # this is broken for non neb - on the other hand we probably won't do .original if so 315 files = glob.glob(path + ".smf") 316 317 318 319 # if .smf and .original use .original 320 else: 321 self.logger.infoPair("camRun.state not full, can't ingest", str(camID) ) 322 return None 323 249 324 250 325 # XXX EAM : test output -
branches/eam_branches/ipp-20130711/ippToPsps/jython/ipptopspsdb.py
r35605 r36072 1109 1109 ,queue_OB \ 1110 1110 ,parallel \ 1111 ,P2_smf_version \ 1112 ,ST_cmf_version \ 1111 1113 FROM skychunk \ 1112 1114 WHERE name = '" + self.skychunk.name + "'" … … 1155 1157 1156 1158 if rs.getInt(22) == 1: self.skychunk.parallel = True 1159 self.skychunk.P2_smf_version = rs.getString(23) 1160 self.skychunk.ST_cmf_version = rs.getString(24) 1157 1161 1158 1162 if self.skychunk.parallel: print "USING parallel" -
branches/eam_branches/ipp-20130711/ippToPsps/jython/queue.py
r35656 r36072 71 71 for batchType in self.skychunk.batchTypes: 72 72 self.logger.infoPair("BatchType",batchType) 73 # self.logger.infoTitle("Previous failed datastore loads")74 # self.publishAnyUnpublishedBatches(batchType)73 #self.logger.infoTitle("Previous failed datastore loads") 74 #self.publishAnyUnpublishedBatches(batchType) 75 75 76 76 # get totals for whole area to check if there is anything to do -
branches/eam_branches/ipp-20130711/psconfig
- Property svn:mergeinfo changed
/trunk/psconfig (added) merged: 35994,36005
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130711/psconfig/tagsets/ipp-3.0.dist
r34254 r36072 64 64 YYYYY ippScripts ipp-2-9 -0 65 65 YYYYY ippTasks ipp-2-9 -0 66 # YYYYYippToPsps ipp-2-9 -066 NNYYN ippToPsps ipp-2-9 -0 67 67 68 68 YYYYY ippconfig ipp-2-9 -0 -
branches/eam_branches/ipp-20130711/tools/fixburntool
r35205 r36072 39 39 40 40 $regtool .= " -dbname gpc1 -exp_id $exp_id -class_id $class_id"; 41 $burntool .= " --dbname gpc1 ";41 $burntool .= " --dbname gpc1 --camera GPC1"; 42 42 43 43 -
branches/eam_branches/ipp-20130711/tools/rundiffskycell.pl
r33065 r36072 25 25 26 26 my $dbname = "gpc1"; 27 my ($diff_id, $skycell_id, $threads, $update, $no_redirect );27 my ($diff_id, $skycell_id, $threads, $update, $no_redirect, $outdir); 28 28 my $zaplog; 29 29 … … 33 33 'threads=i' => \$threads, 34 34 'no-redirect-output' => \$no_redirect, 35 'outdir=s' => \$outdir, 35 36 'zaplog' => \$zaplog, 36 37 'update' => \$update, … … 64 65 die "path_base not found\n" if !$path_base; 65 66 die "diff_skyfile_id\n" if !$path_base; 67 68 if ($outdir) { 69 if ($outdir eq '.') { 70 $outdir = $ENV{PWD}; 71 } 72 my $base = basename($path_base); 73 $path_base = "$outdir/$base"; 74 } 66 75 67 76 my $command = "diff_skycell.pl --diff_id $diff_id --skycell_id $skycell_id --diff_skyfile_id $diff_skyfile_id --outroot $path_base --run-state new";
Note:
See TracChangeset
for help on using the changeset viewer.
