IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 9, 2004, 12:28:16 PM (22 years ago)
Author:
Paul Price
Message:

Doxygen-ated the source files.

File:
1 edited

Legend:

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

    r149 r153  
    77/***********************************************************************************************************/
    88
    9 /* Magic values for errors */
     9/** Magic values for errors */
    1010enum {
    11     PS_NO_VALUE = -111.0,               // Corresponding value not yet measured
    12     PS_NO_ERROR = -222.0                // Corresponding value has no error
     11    PS_NO_VALUE = -111.0,               //!< Corresponding value not yet measured
     12    PS_NO_ERROR = -222.0                //!< Corresponding value has no error
    1313};
    1414
    1515/***********************************************************************************************************/
    1616
    17 /* Planets */
     17/** Planets */
    1818enum {
    1919    PS_MERCURY = 1,
     
    2727} psPlanetNum;
    2828
    29 /* Catalogues */
     29/** Catalogues */
    3030enum {
    31     PS_PANSTARRS,                       // Pan-STARRS object catalogue
    32     PS_USNO,                            // USNO-B1 catalogue
    33     PS_2MASS,                           // 2MASS catalogue
    34     PS_TYCHO,                           // Tycho catalogue
    35     UCAC2 = 4                           // UCAC2 catalogue
     31    PS_PANSTARRS,                       //!< Pan-STARRS object catalogue
     32    PS_USNO,                            //!< USNO-B1 catalogue
     33    PS_2MASS,                           //!< 2MASS catalogue
     34    PS_TYCHO,                           //!< Tycho catalogue
     35    PS_UCAC2 = 4                        //!< UCAC2 catalogue
    3636} psCatalogue;
    3737
    3838/***********************************************************************************************************/
    3939
    40 /* A position on a detector */
     40/** A position on a detector */
    4141typedef struct {
    42     int chip;                           // Chip number
    43     float x;                            // x position
    44     float xErr;                         // Error in x position
    45     float y;                            // y position
    46     float yErr;                         // Error in y position
     42    int chip;                           //!< Chip number
     43    float x;                            //!< x position
     44    float xErr;                         //!< Error in x position
     45    float y;                            //!< y position
     46    float yErr;                         //!< Error in y position
    4747} psOTAPos;
    4848
    49 /* Constructor */
     49/** Constructor */
    5050psOTAPos *
    5151psOTAPosNew(void);
    5252
    53 /* Destructor */
     53/** Destructor */
    5454void
    55 psOTAPosDel(psOTAPos *restrict myOTAPos // Object to destroy
     55psOTAPosDel(psOTAPos *restrict myOTAPos //!< Object to destroy
    5656    );
    5757
    5858/***********************************************************************************************************/
    5959
    60 /* An array of detector positions */
     60/** An array of detector positions */
    6161PS_DECLARE_ARRAY_TYPE(psOTAPos);
    6262PS_CREATE_ARRAY_TYPE(psOTAPos);
     
    6464/***********************************************************************************************************/
    6565
    66 /* A simple RA/Dec position on the sky, default system is ICRS. */
    67 /* Double precision needed for milli-arcsec */
     66/*
     67 * \brief A simple RA/Dec position on the sky, default system is ICRS.  Double precision needed for
     68 * milli-arcsec.
     69 */
    6870typedef struct {
    69     double ra;                          // Right Ascension
    70     double raErr;                       // Error in RA
    71     double dec;                         // Declination
    72     double decErr;                      // Error in Dec
     71    double ra;                          //!< Right Ascension
     72    double raErr;                       //!< Error in RA
     73    double dec;                         //!< Declination
     74    double decErr;                      //!< Error in Dec
    7375} psSkyPos;
    7476
    75 /* Constructor */
     77/** Constructor */
    7678psSkyPos *
    7779psSkyPosNew(void);
    7880
    79 /* Destructor */
     81/** Destructor */
    8082void
    81 psSkyPosDel(psSkyPos *restrict mySkyPos // Object to destroy
     83psSkyPosDel(psSkyPos *restrict mySkyPos //!< Object to destroy
    8284    );
    8385
    8486/***********************************************************************************************************/
    8587
    86 /* An array of sky positions */
     88/** An array of sky positions */
    8789PS_DECLARE_ARRAY_TYPE(psSkyPos);
    8890PS_CREATE_ARRAY_TYPE(psSkyPos);
     
    9092/***********************************************************************************************************/
    9193
    92 /* Latitude and Longitude. */
    93 /* Double precision needed for milli-arcsec */
     94/** Latitude and Longitude.  Double precision needed for milli-arcsec */
    9495typedef struct {
    95     double lat;                         // Latitude
    96     double latErr;                      // Error in Latitude
    97     double lng;                         // Longitude (can't use "long")
    98     double lngErr;                      // Error in Longitude
     96    double lat;                         //!< Latitude
     97    double latErr;                      //!< Error in Latitude
     98    double lng;                         //!< Longitude (can't use "long")
     99    double lngErr;                      //!< Error in Longitude
    99100} psLatLong;
    100101
    101 /* Constructor */
     102/** Constructor */
    102103psLatLong *
    103104psLatLongNew(void);
    104105
    105 /* Destructor */
     106/** Destructor */
    106107void
    107 psLatLongDel(psLatLong *restrict myLatLong // Object to destroy
     108psLatLongDel(psLatLong *restrict myLatLong //!< Object to destroy
    108109    );
    109110
     
    112113/* Offsets */
    113114
    114 /* Get offset (RA,Dec) on the sky between two positions */
    115 /* position1 and position2 may not be identical */
     115/** Get offset (RA,Dec) on the sky between two positions position1 and position2 may not be identical */
    116116psSkyPos *
    117 psGetOffset(const psSkyPos *restrict position1, // Position 1
    118             const psSkyPos *restrict position2 // Position 2
     117psGetOffset(const psSkyPos *restrict position1, //!< Position 1
     118            const psSkyPos *restrict position2 //!< Position 2
    119119            );
    120120
    121 /* Apply an offset to a position */
     121/** Apply an offset to a position */
    122122psSkyPos *
    123 psApplyOffset(const psSkyPos *restrict position, // Position
    124               const psSkyPos *restrict offset // Offset
     123psApplyOffset(const psSkyPos *restrict position, //!< Position
     124              const psSkyPos *restrict offset //!< Offset
    125125              );
    126126
     
    129129/* Positions of well-known objects */
    130130
    131 /* Get Sun Position */
     131/** Get Sun Position */
    132132psSkyPos *
    133 psGetSunPos(float mjd                   // MJD to get position for
     133psGetSunPos(float mjd                   //!< MJD to get position for
    134134            );
    135135
    136 /* Get Moon position */
     136/** Get Moon position */
    137137psSkyPos *
    138 psGetMoonPos(float mjd,                 // MJD to get position for
    139              double latitude,           // Latitude for apparent position
    140              double longitude           // Longitude for apparent position
     138psGetMoonPos(float mjd,                 //!< MJD to get position for
     139             double latitude,           //!< Latitude for apparent position
     140             double longitude           //!< Longitude for apparent position
    141141             );
    142142
    143 /* Get Moon phase */
     143/** Get Moon phase */
    144144float
    145 psGetMoonPhase(float mjd                // MJD to get phase for
     145psGetMoonPhase(float mjd                //!< MJD to get phase for
    146146               );
    147147
    148 /* Get Planet positions */
     148/** Get Planet positions */
    149149psSkyPos *
    150 psGetPlanetPos(enum psPlanetNum myPlanetNum, // Number for planet
    151                float mjd                // MJD to get position for
     150psGetPlanetPos(enum psPlanetNum myPlanetNum, //!< Number for planet
     151               float mjd                //!< MJD to get position for
    152152               );
    153153
    154 /* Get star list from catalogue */
     154/** Get star list from catalogue */
    155155psObjectArray *
    156 psReadStarCatalogue(double ra,          // RA of centre of search
    157                     double dec,         // Declination of centre of search
    158                     float radius,       // Radius of search for stars in catalogue
    159                     float mjd,          // The epoch (in MJD) for which to get positions
    160                     enum psCatalogue myCatalogue // The catalogue to use
     156psReadStarCatalogue(double ra,          //!< RA of centre of search
     157                    double dec,         //!< Declination of centre of search
     158                    float radius,       //!< Radius of search for stars in catalogue
     159                    float mjd,          //!< The epoch (in MJD) for which to get positions
     160                    enum psCatalogue myCatalogue //!< The catalogue to use
    161161    );
    162162
     
    165165/* Celestial coordinate conversions */
    166166
    167 /* Convert ICRS to Ecliptic */
     167/** Convert ICRS to Ecliptic */
    168168psLatLong *
    169 psCoordinatesItoE(const psSkyPos *restrict coordinates // ICRS coordinates to convert
     169psCoordinatesItoE(const psSkyPos *restrict coordinates //!< ICRS coordinates to convert
    170170                  );
    171171
    172 /* Convert Ecliptic to ICRS */
     172/** Convert Ecliptic to ICRS */
    173173psSkyPos *
    174 psCoordinatesEtoI(const psLatLong *restrict coordinates // Ecliptic coordinates to convert
     174psCoordinatesEtoI(const psLatLong *restrict coordinates //!< Ecliptic coordinates to convert
    175175                  );
    176176
    177 /* Convert ICRS to Galactic */
     177/** Convert ICRS to Galactic */
    178178psLatLong *
    179 psCoordinatesItoG(const psSkyPos *restrict coordinates // ICRS coordinates to convert
     179psCoordinatesItoG(const psSkyPos *restrict coordinates //!< ICRS coordinates to convert
    180180                  );
    181181
    182 /* Convert Galactic to ICRS */
     182/** Convert Galactic to ICRS */
    183183psSkyPos *
    184 psCoordinatesGtoI(const psLatLong *restrict coordinates // Galactic coordinates to convert
     184psCoordinatesGtoI(const psLatLong *restrict coordinates //!< Galactic coordinates to convert
    185185                  );
    186186
Note: See TracChangeset for help on using the changeset viewer.