IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 214


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

Fixed psAstromCoeffs to contain coefficients, errors and a mask that
turns coefficients on and off after consultation with Dave Monet:

"Having a fixed sequence of terms and a vector of bits that
disable/enable fitting these is fine. I look enviously at the amazing
generality of many of the other modules, but I can easily live with
astrometry having a relatively fixed environment. The sequencing of
the first 12 can be done now:

const, x, y, x*x, x*y, y*y, x*x*x, x*x*y, x*y*y, y*y*y, mag, color"

File:
1 edited

Legend:

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

    r212 r214  
    1313
    1414
    15 /***********************************************************************************************************/
    16 
    17 /** Astrometric coefficients */
    18 typedef struct {
    19     int xyOrder;                        //!< Spatial (x,y) order of polynomial
    20     int colourOrder;                    //!< Order of polynomial in colour
    21     int magOrder;                       //!< Order of polynomial in magnitude
    22     int xyColourOrder;                  //!< Spatial (x,y) order of polynomial in colour times x and y
    23     int xyMagOrder;                     //!< Spatial (x,y) order of polynomial in magnitude times x and y
    24     psColourRef colourRef;              //!< Colour reference
     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 */
     21typedef struct {
    2522    psDoubleArray *restrict coeff;      //!< Coefficients of astrometric solution
    2623    psDoubleArray *restrict coeffErr;   //!< Error in coefficients
    2724    psBitMask *restrict coeffMask;      //!< Use this coefficient?
     25    psColourRef colourRef;              //!< Colour reference
    2826} psAstromCoeffs;
    2927
    3028/** Constructor */
    3129psAstromCoeffs *
    32 psAstromCoeffsAlloc(int xyOrder,        //!< Spatial (x,y) order of polynomial
    33                     int colourOrder,    //!< Order of polynomial in colour
    34                     int magOrder,       //!< Order of polynomial in magnitude
    35                     int xyColourOrder,  //!< Spatial (x,y) order of polynomial in colour times x and y
    36                     int xyMagOrder,     //!< Spatial (x,y) order of polynomial in magnitude times x and y
    37                     psColourRef colourRef //!< Colour reference
    38     );
     30psAstromCoeffsAlloc(void);
    3931
    4032/** Destructor */
Note: See TracChangeset for help on using the changeset viewer.