IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 26, 2009, 4:43:29 PM (17 years ago)
Author:
Paul Price
Message:

Use new binary to do translation.

File:
1 edited

Legend:

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

    r24193 r24252  
    1919# Look for programs we need
    2020my $missing_tools;
    21 my $mops = can_run('ipp_mops_translate.pl') or (warn "Can't find ipp_mops_translate.pl" and $missing_tools = 1);
     21my $ppmops = can_run('ppMops') or (warn "Can't find ppMops" and $missing_tools = 1);
    2222my $dsreg = can_run('dsreg') or (warn "Can't find dsreg" and $missing_tools = 1);
    2323die "Can't find required tools.\n" if $missing_tools;
     
    7777-- Get a list of exposures on which magic may be performed
    7878SELECT
    79     exp_id,
     79    rawExp.exp_id,
     80    camProcessedExp.zp_obs,
    8081    MAX(diffWarps.diff_id) AS diff_id,
    8182    -- The following trick pulls out the 'inverse' value for the maximum diff_id
     
    110111JOIN fakeRun USING(fake_id)
    111112JOIN camRun USING(cam_id)
     113JOIN camProcessedExp USING(cam_id)
    112114JOIN chipRun USING(chip_id)
    113115JOIN rawExp USING(exp_id)
     
    125127foreach my $diff ( @$diffs ) {
    126128    my $exp_id = $diff->{exp_id};
     129    my $zp = $diff->{zp_obs};
    127130    my $diff_id = $diff->{diff_id};
    128131    my $inverse = $diff->{inverse};
     
    146149        unless ($no_op) {
    147150            $ipprc->file_prepare($output);
    148             my $command = "$mops --input $input --extname SkyChip.psf --output $output";
     151            my $command = "$ppmops $input $zp $output";
    149152            my $success = run( command => $command, verbose => $verbose );
    150153            (carp "Couldn't translate $input\n" and next) unless $success;
Note: See TracChangeset for help on using the changeset viewer.