Changeset 31906 for trunk/ippScripts/scripts/camera_exp.pl
- Timestamp:
- Jul 19, 2011, 1:33:02 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/camera_exp.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r31531 r31906 155 155 156 156 { # Determine if FWHM is too large to bother continuing. 157 my $command = "$ppConfigDump -camera $camera -dump-camera -"; 157 my $maxFWHM = 0; 158 my $command = "$ppConfigDump -camera $camera -get-key MAX_ALLOWED_FWHM"; 158 159 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 159 160 run(command => $command, verbose => $verbose); … … 162 163 &my_die("Unable to perform ppConfigDump: $error_code", $cam_id, $PS_EXIT_CONFIG_ERROR); 163 164 } 164 my $cameraConfig = $mdcParser->parse(join "", @$stdout_buf) or 165 &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_CONFIG_ERROR); 166 167 my $maxFWHM = metadataLookupStr($cameraConfig, 'MAX_ALLOWED_FWHM'); 165 if (@$stdout_buf) { 166 my $cameraConfig = $mdcParser->parse(join "", @$stdout_buf) or 167 &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_CONFIG_ERROR); 168 $maxFWHM = metadataLookupStr($cameraConfig, 'MAX_ALLOWED_FWHM'); 169 } 168 170 if ($maxFWHM) { 169 171 my $expFWHM;
Note:
See TracChangeset
for help on using the changeset viewer.
