Changeset 34735 for branches/eam_branches/ipp-20120905/ippScripts
- Timestamp:
- Nov 29, 2012, 2:15:01 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120905
- Files:
-
- 6 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/background_warp.pl (modified) (3 diffs)
-
ippScripts/scripts/destreak_restore_camera.pl (modified) (2 diffs, 1 prop)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/lap_science.pl (modified) (1 diff)
-
ippScripts/scripts/magic_destreak.pl (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/ippScripts/scripts/background_warp.pl
r33054 r34735 88 88 my $logDest = $ipprc->filename("LOG.EXP", $outroot, $skycell_id) or my_die( "Unable to get log filename", $warp_bg_id, $skycell_id, $PS_EXIT_SYS_ERROR ); 89 89 90 $ipprc->redirect_ output($logDest) or my_die( "Unable to redirect output", $warp_bg_id, $skycell_id, $PS_EXIT_SYS_ERROR ) if $redirect;90 $ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $warp_bg_id, $skycell_id, $PS_EXIT_SYS_ERROR ) if $redirect; 91 91 92 92 # Recipes to use based on reduction class … … 158 158 &my_die("Can't find input astrometry: $astrometry", $warp_bg_id, $skycell_id, $PS_EXIT_PROG_ERROR) unless $ipprc->file_exists($astrometry); 159 159 160 my $out_image = $ipprc->filename("PSWARP.OUTPUT", $outroot, $skycell_id ); 161 my $out_mask = $ipprc->filename("PSWARP.OUTPUT.MASK", $outroot, $skycell_id); 162 my $out_stats = $ipprc->filename("SKYCELL.STATS", $outroot, $skycell_id ); 163 my $out_config = $ipprc->filename("PSWARP.CONFIG", $outroot, $skycell_id); 164 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id); 165 166 my $skyFile = $ipprc->filename("SKYCELL.TEMPLATE", $outroot, $skycell_id ); 160 #my $out_image = $ipprc->filename("PSWARP.OUTPUT", $outroot, $skycell_id ); 161 #my $out_mask = $ipprc->filename("PSWARP.OUTPUT.MASK", $outroot, $skycell_id); 162 #my $out_stats = $ipprc->filename("SKYCELL.STATS", $outroot, $skycell_id ); 163 #my $out_config = $ipprc->filename("PSWARP.CONFIG", $outroot, $skycell_id); 164 #my $traceDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id); 165 166 my $out_image = prepare_output("PSWARP.OUTPUT", $outroot, $skycell_id, 1); 167 my $out_mask = prepare_output("PSWARP.OUTPUT.MASK", $outroot, $skycell_id, 1); 168 my $out_stats = prepare_output("SKYCELL.STATS", $outroot, $skycell_id, 1); 169 my $out_config = prepare_output("PSWARP.CONFIG", $outroot, $skycell_id, 1); 170 my $traceDest = prepare_output("TRACE.EXP", $outroot, $skycell_id, 1); 171 172 my $skyFile = prepare_output("SKYCELL.TEMPLATE", $outroot, $skycell_id, 1); 173 167 174 $ipprc->skycell_file( $tess_dir, $skycell_id, $skyFile, $verbose ) or &my_die("Unable to generate template skycell", $warp_bg_id, $skycell_id, $PS_EXIT_SYS_ERROR); 168 175 … … 239 246 ### Pau. 240 247 248 sub prepare_output 249 { 250 my $filerule = shift; 251 my $outroot = shift; 252 my $skycell_id = shift; 253 my $delete = shift; 254 $delete = 0 if !defined $delete; 255 256 my $error; 257 my $output = $ipprc->prepare_output($filerule, $outroot, $skycell_id, $delete, \$error) 258 or &my_die("failed to prepare output file for: $filerule", $warp_bg_id, $skycell_id, $error); 259 return $output; 260 } 261 241 262 242 263 sub my_die -
branches/eam_branches/ipp-20120905/ippScripts/scripts/destreak_restore_camera.pl
- Property svn:mergeinfo changed
/trunk/ippScripts/scripts/destreak_restore_camera.pl merged: 34715
r34575 r34735 440 440 } 441 441 442 my $backup_url = shift; 442 443 my $original_url = shift; 443 my $backup_url = shift;444 444 445 445 # rename the backup as the orig … … 449 449 my $moved; 450 450 eval { 451 $moved = nebulous->move($backup_url, $original_url);451 $moved = $nebulous->move($backup_url, $original_url); 452 452 }; 453 453 if ($@ or not $moved) { - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/ippScripts/scripts/ipp_apply_burntool_single.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ippScripts/scripts/lap_science.pl
r34313 r34735 671 671 # } 672 672 # Do quality checks here 673 if ($verbose) { 674 printf("TEST: %d %d %d\n",$exposure->{exp_id},$exposure->{chip_id},$exposure->{chip_component_count}); 675 } 676 # Checks to ensure we do not divide by zero. Mostly happens with old diffs, it seems. 677 if ($exposure->{chip_component_count} == 0) { 678 $exposure->{chip_component_count} = 1; 679 } 680 if ($exposure->{cam_component_count} == 0) { 681 $exposure->{cam_component_count} = 1; 682 } 683 if ($exposure->{warp_component_count} == 0) { 684 $exposure->{warp_component_count} = 1; 685 } 686 if ($exposure->{diff_component_count} == 0) { 687 $exposure->{diff_component_count} = 1; 688 } 689 673 690 my $is_bad_quality = 0; 674 691 if ((defined($exposure->{chipRun_state}))&&($exposure->{chipRun_state} eq 'full')&& -
branches/eam_branches/ipp-20120905/ippScripts/scripts/magic_destreak.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
Note:
See TracChangeset
for help on using the changeset viewer.
