- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/camera_exp.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippScripts/scripts/camera_exp.pl
r31906 r33415 88 88 89 89 if ($redirect) { 90 $ipprc->redirect_ output($logDest) or my_die( "Unable to redirect output", $cam_id, $PS_EXIT_SYS_ERROR );90 $ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $cam_id, $PS_EXIT_SYS_ERROR ); 91 91 print "\n\n"; 92 92 print "Starting script $0 on $host\n\n"; … … 156 156 { # Determine if FWHM is too large to bother continuing. 157 157 my $maxFWHM = 0; 158 # XXX: temporary hack if this is a CNP exposure set maxFWHM to a large 159 # value. 160 # Before the next tag we will put this into a recipe 161 if ($outroot =~ /CNP/) { 162 $maxFWHM = 25; 163 } else { 158 164 my $command = "$ppConfigDump -camera $camera -get-key MAX_ALLOWED_FWHM"; 159 165 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 168 174 $maxFWHM = metadataLookupStr($cameraConfig, 'MAX_ALLOWED_FWHM'); 169 175 } 176 } 170 177 if ($maxFWHM) { 171 178 my $expFWHM; … … 403 410 &my_die("Couldn't find expected output file: $file", $cam_id, $PS_EXIT_SYS_ERROR) unless 404 411 $ipprc->file_exists($file); 412 413 # Funpack to confirm we've really made things correctly 414 my $diskfile = $ipprc->file_resolve($file); 415 if ($diskfile =~ /fits/) { 416 my $funpack = can_run('funpack') or &my_die ("Can't find funpack", $cam_id, $PS_EXIT_SYS_ERROR); 417 my $check_command = "$funpack -S $diskfile > /dev/null"; 418 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 419 run(command => $check_command, verbose => $verbose); 420 if (!$success) { 421 &my_die("Output file not a valid fits file: $file", $cam_id, $PS_EXIT_SYS_ERROR); 422 } 423 } 424 ##### 425 405 426 406 427 my $scheme = file_scheme($file);
Note:
See TracChangeset
for help on using the changeset viewer.
