IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7152


Ignore:
Timestamp:
May 19, 2006, 5:39:53 AM (20 years ago)
Author:
magnier
Message:

added distortion gradient fitting functions, split from pmAstrometryObjects

Location:
trunk/psModules/src
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/Makefile.am

    r7019 r7152  
    44libpsmoduleastrom_la_LDFLAGS  = -release $(PACKAGE_VERSION)
    55libpsmoduleastrom_la_SOURCES  = \
    6         pmAstrometryObjects.c
    7 
    8 #       pmFPAAstrometry.c
     6        pmAstrometryObjects.c \
     7        pmAstrometryDistortion.c
    98
    109psmoduleincludedir = $(includedir)
    1110psmoduleinclude_HEADERS = \
    12         pmAstrometryObjects.h
    13 
    14 #       pmFPAAstrometry.h
     11        pmAstrometryObjects.h \
     12        pmAstrometryDistortion.h
  • trunk/psModules/src/astrom/pmAstrometryObjects.c

    r7005 r7152  
    88*  @author EAM, IfA
    99*
    10 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2006-04-30 22:03:58 $
     10*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2006-05-19 15:39:53 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1717/*  INCLUDE FILES                                                             */
    1818/******************************************************************************/
     19#include <stdio.h>
    1920#include <string.h>
    2021#include <math.h>
     22#include <unistd.h>   // for unlink
    2123#include "pslib.h"
    2224#include "psVectorSmooth.h"
  • trunk/psModules/src/astrom/pmAstrometryObjects.h

    r7005 r7152  
    88*  @author EAM, IfA
    99*
    10 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2006-04-30 22:03:58 $
     10*  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2006-05-19 15:39:53 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1414*/
    1515
    16 #if !defined(PM_ASTROMETRYOBJECTS_H)
    17 #define PM_PM_ASTROMETRYOBJECTS_H_H
    18 
    19 # include <stdio.h>
    20 # include <strings.h>  // for strcasecmp
    21 # include <unistd.h>   // for unlink
    22 # include <pslib.h>
    23 # include <pmFPA.h>
     16#ifndef PM_ASTROMETRY_OBJECTS_H
     17#define PM_ASTROMETRY_OBJECTS_H
    2418
    2519/*
     
    4640    psPlane *FP;   ///< the position in the pmFPA frame
    4741    psPlane *TP;   ///< the position in the tangent plane
    48     psSphere *sky;   ///< the position on the Celestial Sphere.
     42    psSphere *sky;        ///< the position on the Celestial Sphere.
    4943    double Mag;                         ///< object magnitude XXX what filter?
    5044    double dMag;                        ///< error on object magnitude
     
    255249
    256250
    257 /*
    258  *
    259  * The following function determines the position residual, in the tangent
    260  * plane, as a function of position in the focal plane, for a collection of raw
    261  * measurements and matched reference stars. The configuration data must include
    262  * the bin size over which the gradient is measured (keyword: ASTROM.GRAD.BOX).
    263  * The function returns an array of pmAstromGradient structures, defined below.
    264  *
    265  * XXX: No prototype code.
    266  *
    267  */
    268 psArray pmAstromMeasureGradients(
    269     psArray *starlist1,
    270     psArray *starlist2,
    271     psArray *match,
    272     psMetadata *config
    273 );
    274 
    275 
    276 
    277 /*
    278  *
    279  * The following data structure carries the information about the residual
    280  * gradient of source positions in the tangent plane (pmAstromObj.TP) as a
    281  * function of position in the focal plane (pmAstromObj.FP).
    282  *
    283  */
    284 typedef struct
    285 {
    286     psPlane FP;
    287     psPlane dTPdL;
    288     psPlane dTPdM;
    289 }
    290 pmAstromGradient;
    291 
    292 
    293 /*
    294  *
    295  * The gradient set measured above can be fitted with a pair of 2D
    296  * polynomials. The resulting fits can then be related back to the implied
    297  * polynomials which represent the distortion. The following function performs
    298  * the fit and applies the result to the distortion transformation of the
    299  * supplied pmFPA structure. The configuration variable supplies the polynomial
    300  * order (keyword: ASTROM.DISTORT.ORDER).
    301  *
    302  * XXX: No prototype code.
    303  *
    304  */
    305 psArray pmAstromFitDistortion(
    306     pmFPA *fpa,
    307     psArray *gradients,
    308     psMetadata *config);
    309 
    310 
    311 
    312 
    313 
    314251/*******************************************************************************
    315252 The following functions and structs were in the prototype code, but not the
     
    394331);
    395332
    396 #endif
    397 
     333#endif // PM_ASTROMETRY_OBJECTS_H
  • trunk/psModules/src/psmodules.h

    r7065 r7152  
    4141#include <pmFPA_JPEG.h>
    4242#include <pmReadout.h>
     43#include <pmChipMosaic.h>
    4344
    4445// the following headers are from psModule:astrom
    4546#include <pmAstrometryObjects.h>
    46 #include <pmChipMosaic.h>
     47#include <pmAstrometryDistortion.h>
    4748
    4849// the following headers are from psModule:detrend
Note: See TracChangeset for help on using the changeset viewer.