Changeset 10519
- Timestamp:
- Dec 6, 2006, 4:13:06 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/inject.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/inject.pl
r10473 r10519 54 54 } elsif ($camera eq "MCSHORT") { 55 55 @classes = ( 'ccd12', 'ccd13', 'ccd14', 'ccd21', 'ccd22', 'ccd23' ); 56 } elsif ($camera eq "CTIO_MOSAIC2") { 57 @classes = (); 56 58 } else { 57 59 die "Unrecognised camera name: $camera.\n"; … … 59 61 60 62 foreach my $exp ( @ARGV ) { 61 my $command = "$pxinject -newExp -exp_id $exp -inst $camera -telescope $telescope -exp_type $exp_type -imfiles " . scalar @classes; # Command to run63 my $command = "$pxinject -newExp -exp_id $exp -inst $camera -telescope $telescope -exp_type $exp_type -imfiles " . (scalar @classes or 1) ; # Command to run 62 64 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 63 65 run( command => $command, verbose => 1 ); … … 72 74 die "Unable to inject $exp $class_id: $error_code\n" if not $success; 73 75 } 76 77 if (scalar @classes == 0) { 78 my $command = "$pxinject -newImfile -exp_tag $exp_tag -class fpa -class_id fpa -uri $path/$exp.fits"; # Command to run 79 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 80 run( command => $command, verbose => 1 ); 81 die "Unable to inject $exp imfile: $error_code\n" if not $success; 82 } 83 74 84 } 75 85 }
Note:
See TracChangeset
for help on using the changeset viewer.
