IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24191


Ignore:
Timestamp:
May 14, 2009, 5:01:49 PM (17 years ago)
Author:
Paul Price
Message:

Fixing bugs found when testing.

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

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

    r24190 r24191  
    7878check_fitsio($status);
    7979
    80 # Plate scales
    81 my $cdelt1 = $$inHeader{'CDELT1'} or die("Can't find CDELT1");
    82 my $cdelt2 = $$inHeader{'CDELT2'} or die("Can't find CDELT2");
    83 
    8480# Read table data
    8581$inFits->movnam_hdu(BINARY_TBL, $extname, 0, $status) and check_fitsio($status);
     
    109105}
    110106
     107# Plate scales
     108#my $cdelt1 = $$inHeader{'CDELT1'} or die("Can't find CDELT1");
     109#my $cdelt2 = $$inHeader{'CDELT2'} or die("Can't find CDELT2");
     110### XXX WCS wasn't being set in inverse diffs, but it's available elsewhere
     111my $cdelt1 = $$scale[0] / 3600;
     112my $cdelt2 = $$scale[1] / 3600;
    111113
    112114# Parse the list of columns
  • trunk/ippScripts/scripts/ipp_serial_mops.pl

    r24190 r24191  
    8989    JOIN diffInputSkyfile USING(diff_id)
    9090    WHERE diffInputSkyfile.warp1 IS NOT NULL
     91        AND diffRun.state = 'full'
    9192        AND diffRun.exposure = 1
    9293        $where_label
     
    100101    JOIN diffInputSkyfile USING(diff_id)
    101102    WHERE diffInputSkyfile.warp2 IS NOT NULL
     103        AND diffRun.state = 'full'
    102104        AND diffRun.exposure = 1
    103105        AND diffRun.bothways = 1
     
    108110JOIN camRun USING(cam_id)
    109111JOIN chipRun USING(chip_id)
    110 WHERE diffRun.state = 'full'
    111     AND rawExp.camera = '$camera'
     112JOIN rawExp USING(exp_id)
     113WHERE rawExp.camera = '$camera'
    112114GROUP BY exp_id;";
    113115
     
    129131
    130132    foreach my $skycell ( @$skycells ) {
    131         my $skycell_id = $diff->{skycell_id};
    132         my $path_base = $diff->{path_base};
     133        my $skycell_id = $skycell->{skycell_id};
     134        my $path_base = $skycell->{path_base};
    133135
    134136        my $sources = $inverse ? "PPSUB.INVERSE.SOURCES" : "PPSUB.OUTPUT.SOURCES";
Note: See TracChangeset for help on using the changeset viewer.