Changeset 37916
- Timestamp:
- Feb 19, 2015, 12:13:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20150115/ippScripts/scripts/staticsky.pl
- Property svn:mergeinfo set to
r36441 r37916 48 48 print " --outroot (root) : Output root name\n"; 49 49 print " --reduction (class) : Reduction class\n"; 50 print " --require_sources : Require that the stack source files exist\n"; 50 51 print " --verbose : Be extra verbose\n"; 51 52 print " --no-update : Don't update the database?\n"; … … 60 61 print "run staticsky.pl @ARGV\n"; 61 62 62 my ($sky_id, $camera, $dbname, $threads, $outroot, $reduction, $ verbose, $no_update, $no_op, $redirect, $save_temps);63 my ($sky_id, $camera, $dbname, $threads, $outroot, $reduction, $require_sources, $verbose, $no_update, $no_op, $redirect, $save_temps); 63 64 GetOptions( 64 65 'sky_id=s' => \$sky_id, # Diff identifier … … 68 69 'outroot=s' => \$outroot, # Output root name 69 70 'reduction=s' => \$reduction, # Reduction class 71 'require_sources' => \$require_sources, # Require that the stack sources exist. 70 72 'verbose' => \$verbose, # Print to stdout 71 73 'no-update' => \$no_update, # Don't update the database? … … 178 180 &my_die("Couldn't find input: $psfCnv", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$psfCnv"); 179 181 } 180 &my_die("Couldn't find input: $sources", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$sources"); 181 182 183 my $have_sources = $ipprc->file_exists("$sources"); 184 if ($require_sources) { 185 &my_die("Couldn't find input: $sources", $sky_id, $PS_EXIT_SYS_ERROR) unless $have_sources; 186 } 187 182 188 print $listFile " STACK_ID S64 " . $stack_id . "\n"; 183 189 print $listFile " RAW:IMAGE STR " . $imageRaw . "\n"; … … 185 191 print $listFile " RAW:VARIANCE STR " . $weightRaw . "\n"; 186 192 print $listFile " RAW:EXPNUM STR " . $expnumRaw . "\n"; 187 print $listFile " SOURCES STR " . $sources . "\n"; 193 if ($have_sources) { 194 print $listFile " SOURCES STR " . $sources . "\n"; 195 } 188 196 if ($needConvolvedImages) { 189 197 print $listFile " CNV:IMAGE STR " . $imageCnv . "\n";
Note:
See TracChangeset
for help on using the changeset viewer.
