IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2004, 10:43:36 AM (22 years ago)
Author:
Paul Price
Message:

Removed psAstromCoeffs in favour of newly-defined general polynomial types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psAstrom.h

    r214 r216  
    1010/* Include colour definitions */
    1111#include "psColour.h"
     12/* Include matrix definitions */
    1213#include "psMatrix.h"
    13 
    14 
    15 
    16 /***********************************************************************************************************/
    17 
    18 /** Astrometric coefficients.
    19  * First twelve coefficients are: const, x, y, x*x, x*y, y*y, x*x*x, x*x*y, x*y*y, y*y*y, mag, color
    20  */
    21 typedef struct {
    22     psDoubleArray *restrict coeff;      //!< Coefficients of astrometric solution
    23     psDoubleArray *restrict coeffErr;   //!< Error in coefficients
    24     psBitMask *restrict coeffMask;      //!< Use this coefficient?
    25     psColourRef colourRef;              //!< Colour reference
    26 } psAstromCoeffs;
    27 
    28 /** Constructor */
    29 psAstromCoeffs *
    30 psAstromCoeffsAlloc(void);
    31 
    32 /** Destructor */
    33 void
    34 psAstromCoeffsFree(psAstromCoeffs *restrict myAstromCoeffs //!< Object to destroy
    35     );
     14/* Include polynomial definitions */
     15#include "psFunctions.h"
    3616
    3717/***********************************************************************************************************/
     
    163143 * must calculate for each tangent point.
    164144 *
    165  * Coordinate frames 2 and 3 are hidden from the user because all they care about is going between frames 1
    166  * and 4.
     145 * Coordinate frames 2 and 3 are generally hidden from the user because all they care about is going between
     146 * frames 1 and 4.
    167147 */
    168148typedef struct {
    169149    /* Focal plane to and from tangent plane */
    170     psAstromCoeffs *restrict tpToFP;    //!< General astrometric solution for tangent plane to focal plane
    171     psAstromCoeffs *restrict fpToTP;    //!< General astrometric solution for focal plane to tangent plane
     150    psDPolynomial2D *restrict tpToFP;   //!< General astrometric solution for tangent plane to focal plane
     151    psDPolynomial2D *restrict fpToTP;   //!< General astrometric solution for focal plane to tangent plane
     152    enum psColorRef colorRef;           //!< Colour reference
    172153    psMatrix *pattern;                  //!< Fixed pattern distortions for focal plane to tangent plane (simply
    173154                                        //!< * -1 for the reverse); MAY NEED TO BE REVISED UPON IMPLEMENTATION
Note: See TracChangeset for help on using the changeset viewer.