Changeset 14274
- Timestamp:
- Jul 17, 2007, 1:53:14 PM (19 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
-
ipp_serial_stack.pl (modified) (3 diffs)
-
stack_skycell.pl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_stack.pl
r13113 r14274 28 28 $no_op, # No operations? 29 29 $no_update, # No updating? 30 $save_temps, # Save temporary files? 30 31 ); 31 32 GetOptions( … … 33 34 'no-op' => \$no_op, 34 35 'no-update' => \$no_update, 36 'save-temps' => \$save_temps, 35 37 ) or pod2usage( 2 ); 36 38 … … 74 76 $command .= " --no-op" if defined $no_op; 75 77 $command .= " --no-update" if defined $no_update; 78 $command .= " --save-temps" if defined $save_temps; 76 79 $command .= " --workdir $workdir" if defined $workdir; 77 80 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = -
trunk/ippScripts/scripts/stack_skycell.pl
r14239 r14274 34 34 use Pod::Usage qw( pod2usage ); 35 35 36 my ($stack_id, $dbname, $workdir, $no_update, $no_op );36 my ($stack_id, $dbname, $workdir, $no_update, $no_op, $save_temps); 37 37 GetOptions( 38 38 'stack_id|d=s' => \$stack_id, # Stack identifier … … 41 41 'no-update' => \$no_update, # Don't update the database? 42 42 'no-op' => \$no_op, # Don't do any operations? 43 'save-temps' => \$save_temps, # Save temporary files? 43 44 ) or pod2usage( 2 ); 44 45 … … 116 117 117 118 # Generate MDC file with the inputs 118 my ($listFile, $listName) = tempfile( "$tess_id.$skycell_id.stk$stack_id.list.XXXX", UNLINK => 1 ); 119 my ($listFile, $listName) = tempfile( "$tess_id.$skycell_id.stk$stack_id.list.XXXX", 120 UNLINK => !$save_temps ); 119 121 my $num = 0; 120 122 foreach my $file (@$files) { … … 124 126 my $image = $file->{uri}; # Image name 125 127 my $mask = $ipprc->filename( "PSWARP.OUTPUT.MASK", $file->{path_base} ); # Mask name 128 my $weight = $ipprc->filename( "PSWARP.OUTPUT.WEIGHT", $file->{path_base} ); # Weight name 126 129 127 130 &my_die("Image $image does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $image ); … … 130 133 print $listFile "\tIMAGE\tSTR\t" . $image . "\n"; 131 134 print $listFile "\tMASK\tSTR\t" . $mask . "\n"; 135 print $listFile "\tWEIGHT\tSTR\t" . $weight . "\n"; 132 136 133 137 ### XXX NEED TO UPDATE THESE appropriately 134 138 print $listFile "\tSEEING\tF32\t" . 1.0 . "\n"; 135 print $listFile "\tWEIGHT \tF32\t" . 1.0 . "\n";139 print $listFile "\tWEIGHTING\tF32\t" . 1.0 . "\n"; 136 140 print $listFile "\tSCALE\tF32\t" . 1.0 . "\n"; 137 141 … … 144 148 my $outputName = $ipprc->filename("PPSTACK.OUTPUT", $outputRoot); 145 149 my $outputMask = $ipprc->filename("PPSTACK.OUTPUT.MASK", $outputRoot); 150 my $outputWeight = $ipprc->filename("PPSTACK.OUTPUT.WEIGHT", $outputRoot); 146 151 #my $bin1Name = $ipprc->filename("PPSTACK.BIN1", $outputRoot); 147 152 #my $bin2Name = $ipprc->filename("PPSTACK.BIN2", $outputRoot); … … 152 157 my $command = "$ppStack $listName $outputRoot"; 153 158 $command .= " -stats $outputStats"; 154 $command .= " -recipe PPSTATS CHIPSTATS";159 $command .= " -recipe PPSTATS WARPSTATS"; 155 160 156 161 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 162 167 &my_die("Couldn't find expected output file: $outputName", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputName); 163 168 &my_die("Couldn't find expected output file: $outputMask", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask); 169 &my_die("Couldn't find expected output file: $outputWeight", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight); 164 170 # &my_die("Couldn't find expected output file: $bin1Name", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name); 165 171 # &my_die("Couldn't find expected output file: $bin2Name", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name);
Note:
See TracChangeset
for help on using the changeset viewer.
