IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 17, 2004, 5:33:48 PM (22 years ago)
Author:
eugene
Message:

cleaned up structures to compile successfully

File:
1 edited

Legend:

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

    r251 r253  
    77 */
    88
    9 /*************************************************/
     9/** A point in 2-D space, with errors.
     10 */
    1011typedef struct {
    1112    union {
    1213        double x;                               //!< x position
    1314        double r;                               //!< x position
    14     }
     15    } x;
    1516    union {
    1617        double xErr;                            //!< Error in x position
    1718        double rErr;                            //!< Error in x position
    18     }
     19    } dx;
    1920    union {
    2021        double y;                               //!< y position
    2122        double d;                               //!< y position
    22     }
     23    } y;
    2324    union {
    2425        double yErr;                            //!< Error in y position
    2526        double dErr;                            //!< Error in y position
    26     }
     27    } dy;
    2728} psCoord;
    2829
     30/** A polynomial transformation between coordinate frames.  This may be a linear relationship, or may
     31 * represent a higher-order transformation.
     32 */
     33typedef struct {
     34    psDPolynomial2D *x;
     35    psDPolynomial2D *y;
     36} psCoordXform;
     37
     38/** The optical distortion terms.  The lowest two terms are the x and y axis of the target system.  The higher
     39 * two terms represent magnitude and color terms.
     40 */
    2941typedef struct {
    3042    psDPolynomial4D *x;
    3143    psDPolynomial4D *y;
    3244} psDistortion;
    33 
    34 typedef struct {
    35     psDPolynomial2D *x;
    36     psDPolynomial2D *y;
    37 } psCoordXform;
    3845
    3946psCoord *psCoordXformApply (psCoordXform *frame, psCoord *coords);
     
    4653
    4754/** Get offset (RA,Dec) on the sky between two positions position1 and position2 may not be identical */
    48 psCoords *
    49 psGetOffset(const psCoords *restrict position1, //!< Position 1
    50             const psCoords *restrict position2, //!< Position 2
     55psCoord *
     56psGetOffset(const psCoord *restrict position1, //!< Position 1
     57            const psCoord *restrict position2, //!< Position 2
    5158            char *system
    5259            );
    5360
    5461/** Apply an offset to a position */
    55 psCoords *
    56 psApplyOffset(const psCoords *restrict position, //!< Position
    57               const psCoords *restrict offset, //!< Offset
     62psCoord *
     63psApplyOffset(const psCoord *restrict position, //!< Position
     64              const psCoord *restrict offset, //!< Offset
    5865              char *system
    5966    );
     
    6471
    6572/** Get Sun Position */
    66 psCoords *
     73psCoord *
    6774psGetSunPos(float mjd                   //!< MJD to get position for
    6875            );
    6976
    7077/** Get Moon position */
    71 psCoords *
     78psCoord *
    7279psGetMoonPos(float mjd,                 //!< MJD to get position for
    7380             double latitude,           //!< Latitude for apparent position
     
    8188
    8289/** Get Planet positions */
    83 psCoords *
     90psCoord *
    8491psGetSolarSystemPos(char *solarSystemObject, //!< Named S.S. object
    8592                    float mjd           //!< MJD to get position for
Note: See TracChangeset for help on using the changeset viewer.