Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

pmAstrometryDistortion.h

Go to the documentation of this file.
00001 /** @file  pmAstrometryDistortion.h
00002 *
00003 *  @brief This file defines the basic types for measuring and fitting the focal-plane distortion.
00004 *
00005 *  @ingroup AstroImage
00006 *
00007 *  @author EAM, IfA
00008 *
00009 *  @version $Revision: 1.1 $ $Name: rel12 $
00010 *  @date $Date: 2006/05/19 15:39:53 $
00011 *
00012 *  Copyright 2006 Institute for Astronomy, University of Hawaii
00013 */
00014 
00015 #ifndef PM_ASTROMETRY_DISTORTION_H
00016 #define PM_ASTROMETRY_DISTORTION_H
00017 
00018 /* The following data structure carries the information about the residual
00019  * gradient of source positions in the tangent plane (pmAstromObj.TP) as a
00020  * function of position in the focal plane (pmAstromObj.FP).
00021  */
00022 typedef struct
00023 {
00024     psPlane FP;
00025     psPlane dTPdL;
00026     psPlane dTPdM;
00027 }
00028 pmAstromGradient;
00029 
00030 pmAstromGradient *pmAstromGradientAlloc ();
00031 
00032 /* The following function determines the position residual, in the tangent
00033  * plane, as a function of position in the focal plane, for a collection of raw
00034  * measurements and matched reference stars. The configuration data must include
00035  * the bin size over which the gradient is measured (keyword: ASTROM.GRAD.BOX).
00036  * The function returns an array of pmAstromGradient structures, defined below.
00037  */
00038 psArray *pmAstromMeasureGradients(
00039     psArray *gradients,
00040     psArray *rawstars,
00041     psArray *refstars,
00042     psArray *matches,
00043     psMetadata *config
00044 );
00045 
00046 /* The gradient set measured above can be fitted with a pair of 2D
00047  * polynomials. The resulting fits can then be related back to the implied
00048  * polynomials which represent the distortion. The following function performs
00049  * the fit and applies the result to the distortion transformation of the
00050  * supplied pmFPA structure. The configuration variable supplies the polynomial
00051  * order (keyword: ASTROM.DISTORT.ORDER).
00052  */
00053 bool pmAstromFitDistortion(
00054     pmFPA *fpa,
00055     psArray *gradients,
00056     psMetadata *config);
00057 
00058 #endif // PM_ASTROMETRY_DISTORTION_H

Generated on Mon Jul 3 14:24:27 2006 for Pan-STARRS Module Library by  doxygen 1.4.4