Changeset 18562
- Timestamp:
- Jul 15, 2008, 10:33:17 AM (18 years ago)
- Location:
- trunk/ippScripts
- Files:
-
- 2 added
- 2 deleted
- 14 edited
-
Build.PL (modified) (1 diff)
-
scripts/camera_exp.pl (modified) (4 diffs)
-
scripts/chip_imfile.pl (modified) (3 diffs)
-
scripts/detrend_correct_imfile.pl (modified) (2 diffs)
-
scripts/detrend_norm_apply.pl (modified) (1 diff)
-
scripts/detrend_norm_calc.pl (modified) (3 diffs)
-
scripts/detrend_norm_exp.pl (modified) (4 diffs)
-
scripts/detrend_process_exp.pl (modified) (1 diff)
-
scripts/detrend_process_imfile.pl (modified) (2 diffs)
-
scripts/detrend_reject_exp.pl (modified) (11 diffs)
-
scripts/detrend_reject_imfile.pl (deleted)
-
scripts/detrend_resid.pl (deleted)
-
scripts/detrend_resid_exp.pl (added)
-
scripts/detrend_resid_imfile.pl (added)
-
scripts/detrend_stack.pl (modified) (2 diffs)
-
scripts/fake_imfile.pl (modified) (3 diffs)
-
scripts/warp_overlap.pl (modified) (2 diffs)
-
scripts/warp_skycell.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/Build.PL
r18358 r18562 42 42 scripts/detrend_norm_apply.pl 43 43 scripts/detrend_norm_exp.pl 44 scripts/detrend_resid .pl45 scripts/detrend_re ject_imfile.pl44 scripts/detrend_resid_imfile.pl 45 scripts/detrend_resid_exp.pl 46 46 scripts/detrend_reject_exp.pl 47 47 scripts/chip_imfile.pl -
trunk/ippScripts/scripts/camera_exp.pl
r18360 r18562 27 27 28 28 my ( $exp_tag, $cam_id, $camera, $outroot, $recipe, $dbname, $reduction, $dvodb, $verbose, $no_update, 29 $no_op, $ save_temps );29 $no_op, $redirect, $save_temps ); 30 30 GetOptions( 31 'exp_tag=s' => \$exp_tag, # Exposure identifier 32 'cam_id=s' => \$cam_id, # Camtool identifier 33 'recipe=s' => \$recipe, # Recipe to use 34 'camera|c=s' => \$camera, # Camera 35 'dbname|d=s' => \$dbname, # Database name 36 'outroot|w=s' => \$outroot, # output file base name 37 'reduction=s' => \$reduction, # Reduction class 38 'dvodb|w=s' => \$dvodb, # output DVO database 39 'verbose' => \$verbose, # Print to stdout 40 'no-update' => \$no_update, # Update the database? 41 'no-op' => \$no_op, # Don't do any operations? 42 'save-temps' => \$save_temps, # Save temporary files? 43 ) or pod2usage( 2 ); 31 'exp_tag=s' => \$exp_tag, # Exposure identifier 32 'cam_id=s' => \$cam_id, # Camtool identifier 33 'recipe=s' => \$recipe, # Recipe to use 34 'camera|c=s' => \$camera, # Camera 35 'dbname|d=s' => \$dbname, # Database name 36 'outroot|w=s' => \$outroot, # output file base name 37 'reduction=s' => \$reduction, # Reduction class 38 'dvodb|w=s' => \$dvodb, # output DVO database 39 'verbose' => \$verbose, # Print to stdout 40 'no-update' => \$no_update, # Update the database? 41 'no-op' => \$no_op, # Don't do any operations? 42 'redirect-output' => \$redirect, 43 'save-temps' => \$save_temps, # Save temporary files? 44 ) or pod2usage( 2 ); 44 45 45 46 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 54 55 55 56 $ipprc->define_camera($camera); 57 58 my $logDest = $ipprc->filename("LOG.EXP", $outroot) or &my_die("Missing entry from camera config", $cam_id, $PS_EXIT_CONFIG_ERROR); 59 60 $ipprc->redirect_output($logDest) if $redirect; 56 61 57 62 # Recipes to use based on reduction class … … 185 190 my $fpaStats = $ipprc->filename("PSASTRO.STATS", $outroot) or &my_die("Missing entry from camera config", $cam_id, $PS_EXIT_CONFIG_ERROR); 186 191 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot) or &my_die("Missing entry from camera config", $cam_id, $PS_EXIT_CONFIG_ERROR); 187 my $logDest = $ipprc->filename("LOG.EXP", $outroot) or &my_die("Missing entry from camera config", $cam_id, $PS_EXIT_CONFIG_ERROR);188 192 189 193 # convert supplied DVO database name to UNIX filename … … 320 324 carp($msg); 321 325 if (defined $cam_id and not $no_update) { 322 my $command = "$camtool -addprocessedexp -cam_id $cam_id -uri UNKNOWN -code $exit_code"; 326 my $command = "$camtool -addprocessedexp"; 327 $command .= " -cam_id $cam_id"; 328 $command .= " -uri UNKNOWN"; 329 $command .= " -code $exit_code"; 330 $command .= " -path_base $outroot"; 323 331 $command .= " -hostname $host" if defined $host; 324 332 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/chip_imfile.pl
r18360 r18562 26 26 # Parse the command-line arguments 27 27 my ( $exp_id, $chip_id, $class_id, $uri, $camera, $outroot, $dbname, $reduction, $verbose, 28 $no_update, $no_op );28 $no_update, $no_op, $redirect ); 29 29 GetOptions( 30 'exp_id=s' => \$exp_id, # Exposure identifier 31 'chip_id=s' => \$chip_id, # Chiptool identifier 32 'class_id=s' => \$class_id, # Class identifier 33 'uri|u=s' => \$uri, # Input FITS file 34 'camera|c=s' => \$camera, # Camera 35 'outroot|w=s' => \$outroot, # output file base name 36 'dbname|d=s' => \$dbname, # Database name 37 'reduction=s' => \$reduction, # Reduction class 38 'verbose' => \$verbose, # Print to stdout 39 'no-update' => \$no_update, # Don't update the database? 40 'no-op' => \$no_op, # Don't do any operations? 41 ) or pod2usage( 2 ); 30 'exp_id=s' => \$exp_id, # Exposure identifier 31 'chip_id=s' => \$chip_id, # Chiptool identifier 32 'class_id=s' => \$class_id, # Class identifier 33 'uri|u=s' => \$uri, # Input FITS file 34 'camera|c=s' => \$camera, # Camera 35 'outroot|w=s' => \$outroot, # output file base name 36 'dbname|d=s' => \$dbname, # Database name 37 'reduction=s' => \$reduction, # Reduction class 38 'verbose' => \$verbose, # Print to stdout 39 'no-update' => \$no_update, # Don't update the database? 40 'no-op' => \$no_op, # Don't do any operations? 41 'redirect-output' => \$redirect, 42 ) or pod2usage( 2 ); 42 43 43 44 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 52 53 53 54 $ipprc->define_camera($camera); 55 56 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 57 58 $ipprc->redirect_output($logDest) if $redirect; 54 59 55 60 # Recipes to use based on reduction class … … 125 130 my $outputStats = $ipprc->filename("PPIMAGE.STATS", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 126 131 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 127 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR);128 132 129 133 # Run ppImage -
trunk/ippScripts/scripts/detrend_correct_imfile.pl
r18048 r18562 108 108 $command .= " -exp_id $exp_id"; 109 109 $command .= " -class_id $class_id"; 110 $command .= " -uri $outputImage -path_base $outputRoot"; 110 $command .= " -uri $outputImage"; 111 $command .= " -path_base $outputRoot"; 111 112 $command .= " -dbname $dbname" if defined $dbname; 112 113 … … 138 139 $command .= " -exp_id $exp_id"; 139 140 $command .= " -class_id $class_id"; 141 $command .= " -path_base $outputRoot"; 140 142 $command .= " -code $exit_code"; 141 143 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/detrend_norm_apply.pl
r18361 r18562 212 212 $command .= " -iteration $iter"; 213 213 $command .= " -class_id $class_id"; 214 $command .= " -path_base $outroot"; 214 215 $command .= " -code $exit_code"; 215 216 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/detrend_norm_calc.pl
r18362 r18562 20 20 use PS::IPP::Config 1.01 qw( :standard ); 21 21 22 my $ipprc = PS::IPP::Config->new(); # IPP configuration 23 22 24 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 23 25 use Pod::Usage qw( pod2usage ); 24 26 25 27 # Parse command-line arguments 26 my ($det_id, $iter, $detType, $outroot, $dbname, $verbose, $no_update, $no_op );28 my ($det_id, $iter, $detType, $outroot, $dbname, $verbose, $no_update, $no_op, $redirect ); 27 29 GetOptions( 28 'det_id|d=s' => \$det_id, # Detrend id 29 'iteration|i=s' => \$iter, # Iteration 30 'det_type|t=s' => \$detType, # Detrend type 31 'outroot|w=s' => \$outroot, # output file base name 32 'dbname|d=s' => \$dbname, # Database name 33 'verbose' => \$verbose, # Print to stdout 34 'no-update' => \$no_update, # Don't update the database? 35 'no-op' => \$no_op, # Don't do operations 36 ) or pod2usage( 2 ); 30 'det_id|d=s' => \$det_id, # Detrend id 31 'iteration|i=s' => \$iter, # Iteration 32 'det_type|t=s' => \$detType, # Detrend type 33 'outroot|w=s' => \$outroot, # output file base name 34 'dbname|d=s' => \$dbname, # Database name 35 'verbose' => \$verbose, # Print to stdout 36 'no-update' => \$no_update, # Don't update the database? 37 'no-op' => \$no_op, # Don't do operations 38 'redirect-output' => \$redirect, 39 ) or pod2usage( 2 ); 37 40 38 41 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 44 47 defined $detType and 45 48 defined $outroot; 49 50 my $logfile = $outroot . ".log"; 51 52 $ipprc->redirect_output($logfile) if $redirect; 46 53 47 54 use constant STATISTIC => 'bg'; # Background statistic to use from the database … … 225 232 $command .= " -det_id $det_id"; 226 233 $command .= " -iteration $iter"; 234 # XXX EAM : we should add this to the db : $command .= " -path_base $outroot"; 227 235 $command .= " -code $exit_code"; 228 236 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/detrend_norm_exp.pl
r17943 r18562 26 26 use Pod::Usage qw( pod2usage ); 27 27 28 my ($det_id, $iter, $det_type, $camera, $outroot, $dbname, $reduction, $verbose, $no_update, $no_op, $ save_temps);28 my ($det_id, $iter, $det_type, $camera, $outroot, $dbname, $reduction, $verbose, $no_update, $no_op, $redirect, $save_temps); 29 29 GetOptions( 30 'det_id|d=s' => \$det_id, 31 'iteration|i=s' => \$iter, 32 'camera|c=s' => \$camera, 33 'det_type|t=s' => \$det_type, 34 'outroot|w=s' => \$outroot, # output file base name 35 'dbname|d=s' => \$dbname, # Database name 36 'reduction|=s' => \$reduction, 37 'verbose' => \$verbose, # Print to stdout 38 'no-update' => \$no_update, 39 'no-op' => \$no_op, 40 'save-temps' => \$save_temps, # Save temporary files? 41 ) or pod2usage( 2 ); 30 'det_id|d=s' => \$det_id, 31 'iteration|i=s' => \$iter, 32 'camera|c=s' => \$camera, 33 'det_type|t=s' => \$det_type, 34 'outroot|w=s' => \$outroot, # output file base name 35 'dbname|d=s' => \$dbname, # Database name 36 'reduction|=s' => \$reduction, 37 'verbose' => \$verbose, # Print to stdout 38 'no-update' => \$no_update, 39 'no-op' => \$no_op, 40 'redirect-output' => \$redirect, 41 'save-temps' => \$save_temps, # Save temporary files? 42 ) or pod2usage( 2 ); 42 43 43 44 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 49 50 defined $det_type and 50 51 defined $outroot; 52 53 my $logfile = $outroot . ".log"; 54 55 $ipprc->redirect_output($logfile) if $redirect; 51 56 52 57 $ipprc->define_camera($camera); … … 87 92 my ($files, $command, $success, $error_code, $full_buf, $stdout_buf, $stderr_buf); 88 93 { 89 $command = "$dettool -normalizedimfile -det_id $det_id -iteration $iter"; # Command to run 94 $command = "$dettool -normalizedimfile"; # Command to run 95 $command .= " -det_id $det_id"; 96 $command .= " -iteration $iter"; 90 97 $command .= " -dbname $dbname" if defined $dbname; 91 98 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 181 188 $command .= " -det_id $det_id"; 182 189 $command .= " -iteration $iter"; 190 $command .= " -path_base $outroot "; 183 191 $command .= " -code $exit_code"; 184 192 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/detrend_process_exp.pl
r18048 r18562 200 200 $command .= " -exp_id $exp_id"; 201 201 $command .= " -code $exit_code"; 202 $command .= " -path_base $outroot"; 202 203 $command .= " -dbname $dbname" if defined $dbname; 203 204 system ($command); -
trunk/ippScripts/scripts/detrend_process_imfile.pl
r18049 r18562 58 58 $ipprc->define_camera($camera); 59 59 60 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) 61 or &my_die("Missing entry from camera config", $det_id, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR); 60 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR); 62 61 63 62 $ipprc->redirect_output($logDest) if $redirect; … … 174 173 $command .= " -exp_id $exp_id"; 175 174 $command .= " -class_id $class_id"; 175 $command .= " -path_base $outroot"; 176 176 $command .= " -code $exit_code"; 177 177 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/detrend_reject_exp.pl
r18460 r18562 28 28 use Pod::Usage qw( pod2usage ); 29 29 30 my ($det_id, $iter, $det_type, $camera, $outroot, $filter, $dbname, $verbose, $no_update, $no_op );30 my ($det_id, $iter, $det_type, $camera, $outroot, $filter, $dbname, $verbose, $no_update, $no_op, $redirect); 31 31 GetOptions( 32 'det_id|d=s' => \$det_id, 33 'iteration=s' => \$iter, 34 'det_type|t=s' => \$det_type, 35 'camera=s' => \$camera, 36 'outroot|w=s' => \$outroot, # output file base name 37 'filter=s' => \$filter, 38 'dbname|d=s' => \$dbname, # Database name 39 'verbose' => \$verbose, # Print to stdout 40 'no-update' => \$no_update, 41 'no-op' => \$no_op, 32 'det_id|d=s' => \$det_id, 33 'iteration=s' => \$iter, 34 'det_type|t=s' => \$det_type, 35 'camera=s' => \$camera, 36 'outroot|w=s' => \$outroot, # output file base name 37 'filter=s' => \$filter, 38 'dbname|d=s' => \$dbname, # Database name 39 'verbose' => \$verbose, # Print to stdout 40 'no-update' => \$no_update, 41 'no-op' => \$no_op, 42 'redirect-output' => \$redirect, 42 43 ) or pod2usage( 2 ); 43 44 … … 50 51 defined $camera and 51 52 defined $outroot; 53 54 # check for existing directory, generate if needed 55 $ipprc->outroot_prepare($outroot); 56 57 my $logName = "$outroot.log"; # Name for log 58 59 $ipprc->redirect_output($logName) if $redirect; 52 60 53 61 # values to extract from output metadata and the stats to calculate … … 145 153 # neb:///*/gpc1/20080130 (volume not specified) 146 154 147 # check for existing directory, generate if needed148 $ipprc->outroot_prepare($outroot);149 150 my $logName = "$outroot.log"; # Name for log151 152 my $logFile;153 155 unless ($no_op) { 154 $logFile = $ipprc->file_create_append( $logName ); 155 print $logFile "Ensemble mean $ensMeanMean +/- $ensMeanStdev\n"; 156 print $logFile "Ensemble stdev $ensStdevMean +/- $ensStdevStdev\n"; 157 print $logFile "Ensemble mean rms (over imfiles) $ensMeanStdevMean +/- $ensMeanStdevStdev\n\n"; 156 print "Ensemble mean $ensMeanMean +/- $ensMeanStdev\n"; 157 print "Ensemble stdev $ensStdevMean +/- $ensStdevStdev\n"; 158 print "Ensemble mean rms (over imfiles) $ensMeanStdevMean +/- $ensMeanStdevStdev\n\n"; 158 159 } 159 160 … … 186 187 # Rejected this at an earlier stage 187 188 unless ($no_op) { 188 print $logFile"Rejecting $expID based on earlier determination.\n";189 print "Rejecting $expID based on earlier determination.\n"; 189 190 } 190 191 $reject = 1; … … 205 206 my $delta = abs($mean - $ensMeanMean); 206 207 if ($delta > ($reject_mean * $ensMeanStdev)) { 207 print $logFile"Rejecting $expID based on ensemble mean value: ";208 print "Rejecting $expID based on ensemble mean value: "; 208 209 $reject = 1; 209 210 #goto UPDATE; 210 211 } else { 211 print $logFile"$expID OK against ensemble mean: ";212 } 213 print $logFile"$mean --> $delta vs " . $reject_mean * $ensMeanStdev . "\n";212 print "$expID OK against ensemble mean: "; 213 } 214 print "$mean --> $delta vs " . $reject_mean * $ensMeanStdev . "\n"; 214 215 } else { 215 print $logFile"No rejection of $expID for ensemble mean\n";216 print "No rejection of $expID for ensemble mean\n"; 216 217 } 217 218 … … 219 220 my $delta = abs($stdev - $ensStdevMean); 220 221 if ($delta > ($reject_stdev * $ensStdevStdev)) { 221 print $logFile"Rejecting $expID based on ensemble stdev: ";222 print "Rejecting $expID based on ensemble stdev: "; 222 223 $reject = 1; 223 224 #goto UPDATE; 224 225 } else { 225 print $logFile"$expID OK against ensemble stdev: ";226 } 227 print $logFile"$stdev --> $delta sigma vs " . $reject_stdev * $ensStdevStdev . "\n";226 print "$expID OK against ensemble stdev: "; 227 } 228 print "$stdev --> $delta sigma vs " . $reject_stdev * $ensStdevStdev . "\n"; 228 229 } else { 229 print $logFile"No rejection of $expID for ensemble stdev\n";230 print "No rejection of $expID for ensemble stdev\n"; 230 231 } 231 232 … … 233 234 my $delta = abs($meanStdev - $ensMeanStdevMean); 234 235 if ($delta > ($reject_meanstdev * $ensMeanStdevStdev)) { 235 print $logFile"Rejecting $expID based on ensemble mean stdev: ";236 print "Rejecting $expID based on ensemble mean stdev: "; 236 237 $reject = 1; 237 238 #goto UPDATE; 238 239 } else { 239 print $logFile"$expID OK against ensemble mean stdev: ";240 } 241 print $logFile"$meanStdev --> $delta sigma vs " . $reject_meanstdev * $ensMeanStdevStdev. "\n";240 print "$expID OK against ensemble mean stdev: "; 241 } 242 print "$meanStdev --> $delta sigma vs " . $reject_meanstdev * $ensMeanStdevStdev. "\n"; 242 243 } else { 243 print $logFile"No rejection of $expID for ensemble mean stdev\n";244 print "No rejection of $expID for ensemble mean stdev\n"; 244 245 } 245 246 … … 253 254 if ((not $include and not $reject) or ($include and $reject)) { 254 255 unless ($no_op) { 255 print $logFile"Status of $expID has changed.\n";256 print "Status of $expID has changed.\n"; 256 257 } 257 258 $numChanges++; … … 286 287 287 288 unless ($no_op) { 288 print $logFile "Master: $master\n"; 289 print $logFile "Stop: $stop\n"; 290 close $logFile; 289 print "Master: $master\n"; 290 print "Stop: $stop\n"; 291 291 } 292 292 … … 309 309 $command .= " -accept" if $master; 310 310 $command .= " -dbname $dbname" if defined $dbname; 311 ### XXX WE NEED to make this a recipe-driven option312 311 $command .= " -again" unless $stop; 313 312 $command .= $stats->cmdflags(); … … 346 345 $command .= " -det_id $det_id"; 347 346 $command .= " -iteration $iter"; 347 # XXX EAM : we should add this to the db : $command .= " -path_base $outroot"; 348 348 $command .= " -code $exit_code"; 349 349 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/detrend_stack.pl
r18065 r18562 209 209 # Command to update the database 210 210 $command = "$dettool -addstacked"; 211 $command .= " -det_id $det_id -iteration $iter"; 211 $command .= " -det_id $det_id"; 212 $command .= " -iteration $iter"; 212 213 $command .= " -class_id $class_id"; 213 214 $command .= " -uri $outputStack"; … … 243 244 $command .= " -iteration $iter"; 244 245 $command .= " -class_id $class_id"; 246 # XXX EAM : we should add this to the db : $command .= " -path_base $outroot"; 245 247 $command .= " -code $exit_code"; 246 248 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/fake_imfile.pl
r18020 r18562 42 42 # Parse the command-line arguments 43 43 my ( $exp_id, $fake_id, $class_id, $chiproot, $camroot, $camera, $outroot, 44 $dbname, $reduction, $verbose, $no_update, $no_op );44 $dbname, $reduction, $verbose, $no_update, $no_op, $redirect ); 45 45 GetOptions( 46 'exp_id=s' => \$exp_id, # Exposure identifier 47 'fake_id=s' => \$fake_id, # Chiptool identifier 48 'class_id=s' => \$class_id, # Class identifier 49 'chiproot=s' => \$chiproot, # Input Chip files (root) 50 'camroot=s' => \$camroot, # Input Camera files (root) 51 'camera|c=s' => \$camera, # Camera 52 'outroot|w=s' => \$outroot, # output file base name 53 'dbname|d=s' => \$dbname, # Database name 54 'reduction=s' => \$reduction, # Reduction class 55 'verbose' => \$verbose, # Print to stdout 56 'no-update' => \$no_update, # Don't update the database? 57 'no-op' => \$no_op, # Don't do any operations? 58 ) or pod2usage( 2 ); 46 'exp_id=s' => \$exp_id, # Exposure identifier 47 'fake_id=s' => \$fake_id, # Chiptool identifier 48 'class_id=s' => \$class_id, # Class identifier 49 'chiproot=s' => \$chiproot, # Input Chip files (root) 50 'camroot=s' => \$camroot, # Input Camera files (root) 51 'camera|c=s' => \$camera, # Camera 52 'outroot|w=s' => \$outroot, # output file base name 53 'dbname|d=s' => \$dbname, # Database name 54 'reduction=s' => \$reduction, # Reduction class 55 'verbose' => \$verbose, # Print to stdout 56 'no-update' => \$no_update, # Don't update the database? 57 'no-op' => \$no_op, # Don't do any operations? 58 'redirect-output' => \$redirect, 59 ) or pod2usage( 2 ); 59 60 60 61 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 71 72 $ipprc->define_camera($camera); 72 73 74 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 75 76 $ipprc->redirect_output($logDest) if $redirect; 77 73 78 # Recipes to use based on reduction class 74 79 $reduction = 'DEFAULT' unless defined $reduction; … … 116 121 my $cameraObjects = $ipprc->filename("PSASTRO.OUTPUT", $camroot) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 117 122 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 118 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR);119 123 120 124 # XXX check for existence of input data -
trunk/ippScripts/scripts/warp_overlap.pl
r18055 r18562 27 27 my $ipprc = PS::IPP::Config->new(); # IPP configuration 28 28 29 my ($warp_id, $camera, $tess_dir, $dbname, $verbose, $no_update, $no_op, $ save_temps);29 my ($warp_id, $camera, $tess_dir, $dbname, $verbose, $no_update, $no_op, $logfile, $save_temps); 30 30 GetOptions( 31 31 'warp_id|i=s' => \$warp_id, # Warp identifier … … 36 36 'no-update' => \$no_update, # Don't update the database? 37 37 'no-op' => \$no_op, # Don't do any operations 38 'logfile=s' => \$logfile, 38 39 'save-temps' => \$save_temps, # Save temporary files? 39 40 ) or pod2usage( 2 ); 41 42 $ipprc->redirect_output($logfile) if $logfile; 40 43 41 44 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; -
trunk/ippScripts/scripts/warp_skycell.pl
r18056 r18562 25 25 my $ipprc = PS::IPP::Config->new(); # IPP configuration 26 26 27 my ($warp_id, $skycell_id, $tess_dir, $camera, $dbname, $outroot, $verbose, $no_update, $no_op, $ save_temps);27 my ($warp_id, $skycell_id, $tess_dir, $camera, $dbname, $outroot, $verbose, $no_update, $no_op, $redirect, $save_temps); 28 28 GetOptions( 29 29 'warp_id|i=s' => \$warp_id, # Warp identifier … … 36 36 'no-update' => \$no_update, # Don't update the database? 37 37 'no-op' => \$no_op, # Don't do any operations? 38 'redirect-output' => \$redirect, 38 39 'save-temps' => \$save_temps, # Save temporary files? 39 40 ) or pod2usage( 2 ); … … 50 51 51 52 $ipprc->define_camera($camera); 53 54 my $logDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id); 55 56 $ipprc->redirect_output($logDest) if $redirect; 52 57 53 58 my $STATS = … … 119 124 my $outputStats = $ipprc->filename("SKYCELL.STATS", $outroot, $skycell_id ); 120 125 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id); 121 my $logDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id);122 126 123 127 my $skyFile = $ipprc->filename("SKYCELL.TEMPLATE", $outroot, $skycell_id );
Note:
See TracChangeset
for help on using the changeset viewer.
