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