Changeset 27039 for trunk/ippScripts/scripts/camera_exp.pl
- Timestamp:
- Feb 22, 2010, 5:36:31 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/camera_exp.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r27010 r27039 144 144 } 145 145 146 147 my $produceMasks; # Produce masks? 148 { 149 # Get the PSASTRO recipe 150 my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe ADDSTAR -"; 151 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 152 run(command => $command, verbose => $verbose); 153 unless ($success) { 154 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 155 &my_die("Unable to perform ppConfigDump: $error_code", $cam_id, $PS_EXIT_CONFIG_ERROR); 156 } 157 my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or 158 &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_CONFIG_ERROR); 159 160 $produceMasks = metadataLookupBool($recipeData, 'REFSTAR_MASK'); 161 } 162 163 146 164 ### not needed to have such an extensive temp file name. 147 165 my ($list1File, $list1Name) = tempfile( "/tmp/$exp_tag.cm.$cam_id.b1.list.XXXX", UNLINK => !$save_temps ); # For binning 1 … … 177 195 print $list4File ($chipMask . "\n"); 178 196 179 push @outMasks, $ipprc->filename("PSASTRO.OUTPUT.MASK", $outroot, $class_id) ;197 push @outMasks, $ipprc->filename("PSASTRO.OUTPUT.MASK", $outroot, $class_id) if $produceMasks; 180 198 } 181 199 close $list1File;
Note:
See TracChangeset
for help on using the changeset viewer.
