IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10519


Ignore:
Timestamp:
Dec 6, 2006, 4:13:06 PM (20 years ago)
Author:
Paul Price
Message:

Adding ESSENCE camera.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/inject.pl

    r10473 r10519  
    5454    } elsif ($camera eq "MCSHORT") {
    5555        @classes = ( 'ccd12', 'ccd13', 'ccd14', 'ccd21', 'ccd22', 'ccd23' );
     56    } elsif ($camera eq "CTIO_MOSAIC2") {
     57        @classes = ();
    5658    } else {
    5759        die "Unrecognised camera name: $camera.\n";
     
    5961
    6062    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 run
     63        my $command = "$pxinject -newExp -exp_id $exp -inst $camera -telescope $telescope -exp_type $exp_type -imfiles " . (scalar @classes or 1) ; # Command to run
    6264        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    6365            run( command => $command, verbose => 1 );
     
    7274            die "Unable to inject $exp $class_id: $error_code\n" if not $success;
    7375        }
     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
    7484    }
    7585}
Note: See TracChangeset for help on using the changeset viewer.