Changeset 33576
- Timestamp:
- Mar 21, 2012, 11:44:53 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/camera_exp.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r33321 r33576 41 41 42 42 my ( $exp_tag, $cam_id, $camera, $outroot, $dbname, $reduction, $dvodb, $verbose, $no_update, 43 $no_op, $redirect, $save_temps, $run_state );43 $no_op, $redirect, $save_temps, $run_state, $skip_binned, $skip_masks); 44 44 GetOptions( 45 'exp_tag=s' => \$exp_tag, # Exposure identifier45 'exp_tag=s' => \$exp_tag, # Exposure identifier 46 46 'cam_id=s' => \$cam_id, # Camtool identifier 47 47 'camera|c=s' => \$camera, # Camera … … 51 51 'dvodb|w=s' => \$dvodb, # output DVO database 52 52 'run-state=s' => \$run_state, # 'new' or 'update' 53 'skip-binned' => \$skip_binned, # override recipe - don't create binned images 54 'skip-refmask' => \$skip_masks, # override recipe - don't create refmask 53 55 'verbose' => \$verbose, # Print to stdout 54 56 'no-update' => \$no_update, # Update the database? … … 190 192 191 193 my $produceMasks; # Produce masks? 192 {194 if (!$skip_masks) { 193 195 # Get the PSASTRO recipe 194 196 my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -"; … … 205 207 } 206 208 207 208 209 ### not needed to have such an extensive temp file name. 209 210 my ($list1File, $list1Name) = tempfile( "/tmp/$exp_tag.cm.$cam_id.b1.list.XXXX", UNLINK => !$save_temps ); # For binning 1 … … 261 262 262 263 # Make the jpeg for binning 1 263 if ( $run_state eq 'new') {264 if (!$skip_binned and ($run_state eq 'new')) { 264 265 my $command = "$ppImage -list $list1Name $outroot"; # Command to run 265 266 $command .= " -recipe PPIMAGE $recipe1"; … … 276 277 277 278 # Make the jpeg for binning 2 278 if ( $run_state eq 'new') {279 if (!$skip_binned and ($run_state eq 'new')) { 279 280 my $command = "$ppImage -list $list2Name $outroot"; # Command to run 280 281 $command .= " -recipe PPIMAGE $recipe2"; … … 295 296 $command = "$psastro"; 296 297 $command .= " -list $list3Name"; 297 $command .= " -masklist $list4Name" ;298 $command .= " -masklist $list4Name" if $produceMasks; 298 299 $command .= " $outroot"; 299 300 $command .= " -recipe PSASTRO $recipe_psastro"; 301 $command .= " -Db PSASTRO:REFSTAR_MASK F" if $skip_masks; 300 302 $command .= " -tracedest $traceDest -log $logDest"; 301 303 $command .= " -dbname $dbname" if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
