IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2007, 5:12:27 PM (19 years ago)
Author:
magnier
Message:

using pmFPAExtent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryDistortion.c

    r10879 r11461  
    77*  @author EAM, IfA
    88*
    9 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2007-01-03 01:21:38 $
     9*  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2007-01-31 03:12:27 $
    1111*
    1212*  Copyright 2006 Institute for Astronomy, University of Hawaii
     
    2727#include <pslib.h>
    2828#include "pmFPA.h"
     29#include "pmFPAExtent.h"
    2930#include "pmAstrometryObjects.h"
    3031#include "pmAstrometryDistortion.h"
     
    322323    // XXX choose an appropriate region based on the range of values
    323324    // in L and M?
    324     psRegion region = psRegionSet (-125000, +125000, -125000, +125000);
     325    // psRegion region = psRegionSet (-125000, +125000, -125000, +125000);
     326    psRegion *region = pmFPAExtent (fpa);
    325327    psFree (fpa->fromTPA);
    326     fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, region, 50);
     328    fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, *region, 50);
     329    psFree (region);
    327330
    328331    return true;
Note: See TracChangeset for help on using the changeset viewer.