IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 21, 2007, 12:00:49 PM (19 years ago)
Author:
magnier
Message:

fixed the source of the focal-plane region; added astrometric extent functions

File:
1 edited

Legend:

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

    r12485 r12519  
    77*  @author EAM, IfA
    88*
    9 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2007-03-18 22:06:58 $
     9*  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2007-03-21 22:00:49 $
    1111*
    1212*  Copyright 2006 Institute for Astronomy, University of Hawaii
     
    2929#include "pmFPAExtent.h"
    3030#include "pmAstrometryObjects.h"
     31#include "pmAstrometryRegions.h"
    3132#include "pmAstrometryDistortion.h"
    3233#include "pmKapaPlots.h"
     
    317318    // reset the fromTPA terms here. choose an appropriate region based on the dimensions of
    318319    // the complete FPA
    319     psRegion *region = pmFPAExtent (fpa);
    320     region->x0 *= pixelScale;
    321     region->x1 *= pixelScale;
    322     region->y0 *= pixelScale;
    323     region->y1 *= pixelScale;
    324     int xCenter = 0.5*(region->x0 + region->x1);
    325     int yCenter = 0.5*(region->y0 + region->y1);
    326     region->x0 -= xCenter;
    327     region->x1 -= xCenter;
    328     region->y0 -= yCenter;
    329     region->y1 -= yCenter;
     320    psRegion *region = pmAstromFPAExtent (fpa);
     321
    330322    psFree (fpa->fromTPA);
    331323    fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, *region, 50);
Note: See TracChangeset for help on using the changeset viewer.