Changeset 19262
- Timestamp:
- Aug 28, 2008, 10:02:33 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/stack_skycell.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/stack_skycell.pl
r19118 r19262 3 3 use warnings; 4 4 use strict; 5 use Carp; 5 6 6 7 ## report the program and machine … … 26 27 use Pod::Usage qw( pod2usage ); 27 28 28 my ($stack_id, $dbname, $outroot, $ verbose, $no_update, $no_op, $save_temps);29 my ($stack_id, $dbname, $outroot, $debug, $verbose, $no_update, $no_op, $save_temps); 29 30 GetOptions( 30 31 'stack_id|d=s' => \$stack_id, # Stack identifier 31 32 'dbname|d=s' => \$dbname, # Database name 32 33 'outroot=s' => \$outroot, # Output root name 34 'debug' => \$debug, # Print to stdout 33 35 'verbose' => \$verbose, # Print to stdout 34 36 'no-update' => \$no_update, # Don't update the database? … … 76 78 } 77 79 80 if (@$stdout_buf == 0) { 81 &my_die("No input skyfiles selected", $stack_id, $PS_EXIT_PROG_ERROR); 82 } 78 83 my $metadata = $mdcParser->parse(join "", @$stdout_buf) or 79 84 &my_die("Unable to parse metadata config doc", $stack_id, $PS_EXIT_PROG_ERROR); … … 115 120 116 121 # Generate MDC file with the inputs 117 my ($listFile, $listName) = tempfile( "$tess_id.$skycell_id.stk$stack_id.list.XXXX", 118 UNLINK => !$save_temps ); 122 my ($listFile, $listName) = tempfile( "/tmp/$tess_id.$skycell_id.stk.$stack_id.list.XXXX", UNLINK => !$save_temps ); 119 123 my $num = 0; 120 124 my $inputSources; # Sources to use as stamps … … 170 174 $command .= " -F PSPHOT.BACKMDL PSPHOT.BACKMDL.MEF"; 171 175 $command .= " -photometry"; 176 $command .= " -debug-stack" if defined $debug; 172 177 $command .= " -tracedest $traceDest -log $logDest"; 173 178 $command .= " -dbname $dbname" if defined $dbname; … … 237 242 my $exit_code = shift; # Exit code to add 238 243 239 warn($msg);244 carp($msg); 240 245 if (defined $stack_id and not $no_update) { 241 246 my $command = "$stacktool -addsumskyfile -stack_id $stack_id -code $exit_code";
Note:
See TracChangeset
for help on using the changeset viewer.
