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/psObjects.h

    r149 r153  
    2020/***********************************************************************************************************/
    2121
    22 /* Object definition, to handle both objects we detect, and catalogues */
     22/** Object definition, to handle both objects we detect, and catalogues */
    2323typedef struct {
    24     psOTAPos *otaPos;                   // Centre position on OTA, with associated error
    25     psSkyPos *skyPos;                   // Position on the sky, with associated error
    26     float mag, magErr;                  // Magnitude and associated error
    27     float isoMag, isoMagErr;            // Isophotal magnitude and associated error
    28     float fwhm, fwhmErr;                // FWHM and associated error
    29     float ellipA, ellipB;               // Elliptical semi-major (A) and semi-minor (B) axes
    30     float ellipAngle;                   // Ellipse position angle
    31     float sky, skyErr;                  // Local sky level, and associated error
    32     float colour, colourErr;            // Colour and associated error, if known
    33     enum psColourRef colourRef;         // Colour reference
    34     psBitMask *quality;                 // Bit mask for quality information
     24    psOTAPos *otaPos;                   //!< Centre position on OTA, with associated error
     25    psSkyPos *skyPos;                   //!< Position on the sky, with associated error
     26    float mag, magErr;                  //!< Magnitude and associated error
     27    float isoMag, isoMagErr;            //!< Isophotal magnitude and associated error
     28    float fwhm, fwhmErr;                //!< FWHM and associated error
     29    float ellipA, ellipB;               //!< Elliptical semi-major (A) and semi-minor (B) axes
     30    float ellipAngle;                   //!< Ellipse position angle
     31    float sky, skyErr;                  //!< Local sky level, and associated error
     32    float colour, colourErr;            //!< Colour and associated error, if known
     33    enum psColourRef colourRef;         //!< Colour reference
     34    psBitMask *quality;                 //!< Bit mask for quality information
    3535} psObject;
    3636
    37 /* Constructor */
     37/** Constructor */
    3838psObject *
    3939psObjectNew(void);
    4040
    41 /* Destructor */
     41/** Destructor */
    4242void
    4343psObjectDel(psObject *restrict myObject);
     
    4545/***********************************************************************************************************/
    4646
    47 /* An assembly of objects */
     47/** An assembly of objects */
    4848PS_DECLARE_ARRAY_TYPE(psObject);
    4949PS_CREATE_ARRAY_TYPE(psObject);
     
    5151/***********************************************************************************************************/
    5252
    53 /* Associates objects on an image with the image */
     53/** Associates objects on an image with the image */
    5454typedef struct {
    55     const psImage *image;               // Image that produced the objects, which has metadata we need
    56     psObjectArray *objects;             // The objects
     55    const psImage *image;               //!< Image that produced the objects, which has metadata we need
     56    psObjectArray *objects;             //!< The objects
    5757} psImageObjects;
    5858
    59 /* Constructor */
     59/** Constructor */
    6060psImageObjects *
    61 psImageObjectsNew(const psImage *image, // Image that produced the objects, which has metadata we need
    62                   psObjectArray *objects // The objects
     61psImageObjectsNew(const psImage *image, //!< Image that produced the objects, which has metadata we need
     62                  psObjectArray *objects //!< The objects
    6363                  );
    6464
    65 /* Destructor */
     65/** Destructor */
    6666void
    67 psImageObjectsDel(psImageObjects *restrict myImageObjects // Object to destroy
     67psImageObjectsDel(psImageObjects *restrict myImageObjects //!< Object to destroy
    6868                  );
    6969
    7070/***********************************************************************************************************/
    7171
    72 /* Objects from a catalogue */
     72/** Objects from a catalogue */
    7373typedef struct {
    74     enum psCatalogue catalogue;         // Source catalogue from which objects come
    75     psObjectArray *object;              // The objects
     74    enum psCatalogue catalogue;         //!< Source catalogue from which objects come
     75    psObjectArray *object;              //!< The objects
    7676} psCatalogueObjects;
    7777
    78 /* Constructor */
     78/** Constructor */
    7979psCatalogueObjects *
    80 psCatalogueObjectsNew(enum psCatalogue *catalogue, // Source catalogue
    81                       psObjectArray *objects // The objects
     80psCatalogueObjectsNew(enum psCatalogue *catalogue, //!< Source catalogue
     81                      psObjectArray *objects //!< The objects
    8282                      );
    8383
    84 /* Destructor */
     84/** Destructor */
    8585void
    86 psCatalogueObjectsDel(psCatalogeObjects *restrict myCatalogueObjects // Object to destroy
     86psCatalogueObjectsDel(psCatalogeObjects *restrict myCatalogueObjects //!< Object to destroy
    8787                      );
    8888
    8989/***********************************************************************************************************/
    9090
    91 /* A "super" object --- an object with multiple detections in different images */
     91/** A "super" object --- an object with multiple detections in different images */
    9292typedef struct {
    93     const psImageArray *images;         // Images that provided the different measurements
    94     const psObjectArray *objects;       // Individual object measurements
     93    const psImageArray *images;         //!< Images that provided the different measurements
     94    const psObjectArray *objects;       //!< Individual object measurements
    9595
    9696    /* Derived quantities */
    97     psSkyPos *meanSkyPos;               // Mean position on the sky
    98     double pmRA, pmDec;                 // Proper motion in RA and Dec
    99     double pmRAErr, pmDecErr;           // Errors in proper motion
    100     float posChi2;                      // chi^2 for position
     97    psSkyPos *meanSkyPos;               //!< Mean position on the sky
     98    double pmRA, pmDec;                 //!< Proper motion in RA and Dec
     99    double pmRAErr, pmDecErr;           //!< Errors in proper motion
     100    float posChi2;                      //!< chi^2 for position
    101101} psSuperObject;
    102102
    103 /* Constructor */
     103/** Constructor */
    104104psSuperObject *
    105 psSuperObjectNew(const psImageArray *images, // The images with the measurements
    106                  const psObjectArray *objects // Object measurements
     105psSuperObjectNew(const psImageArray *images, //!< The images with the measurements
     106                 const psObjectArray *objects //!< Object measurements
    107107                 );
    108108
    109 /* Destructor */
     109/** Destructor */
    110110void
    111 psSuperObjectDel(psSuperObject *restrict mySuperObject // Object to destroy
     111psSuperObjectDel(psSuperObject *restrict mySuperObject //!< Object to destroy
    112112                 );
    113113
     
    118118
    119119
    120 /* Correlate two OTA object arrays */
    121 /*
     120/** Correlate two OTA object arrays.
    122121 * Returns an array with the indices of the object in the second bunch that matched the corresponding object
    123122 * in the first bunch, or -1 if none that match.
    124123 */
    125124psIntArray *
    126 psCorrelateObjects(const psObjectArray *restrict myObjects1, // First bunch of objects
    127                    const psObjectArray *restrict myObjects2, // Second bunch of objects
    128                    const psOTADescription *myOTA1, // OTA description for first bunch of objects, or NULL for
    129                                                    // sky
    130                    const psOTADescription *myOTA2 // OTA description for second bunch of objects, or NULL for
    131                                                   // sky
     125psCorrelateObjects(const psObjectArray *restrict myObjects1, //!< First bunch of objects
     126                   const psObjectArray *restrict myObjects2, //!< Second bunch of objects
     127                   const psOTADescription *myOTA1, //!< OTA description for first bunch of objects, or NULL for
     128                                                   //!< sky
     129                   const psOTADescription *myOTA2 //!< OTA description for second bunch of objects, or NULL for
     130                                                  //!< sky
    132131                   );
    133132
    134133
    135 /* Get matched lists from a correlated index array */
    136 /* Returns a status number, and matched1 and matched2 are manipulated to contain matches */
     134/** Get matched lists from a correlated index array Returns a status number, and matched1 and matched2
     135 * are manipulated to contain matches
     136 */
    137137int
    138 psGetCorrelatedMatches(const psIntArray matches, // Index array specifying matches */
    139                        const psObjectArray *restrict myObjects1, // First bunch of objects
    140                        const psObjectArray *restrict myObjects2, // Second bunch of objects
    141                        psObjectArray *matched1, // Matched objects in first bunch
    142                        psObjectArray *matched2 // Matched objects in second bunch
     138psGetCorrelatedMatches(const psIntArray matches, //!< Index array specifying matches */
     139                       const psObjectArray *restrict myObjects1, //!< First bunch of objects
     140                       const psObjectArray *restrict myObjects2, //!< Second bunch of objects
     141                       psObjectArray *matched1, //!< Matched objects in first bunch
     142                       psObjectArray *matched2 //!< Matched objects in second bunch
    143143                       );
    144144
     
    147147/* Object selection */
    148148
    149 /* Get objects within a particular magnitude range */
     149/** Get objects within a particular magnitude range */
    150150psObjectArray *
    151 psSelectObjectMag(psObjectArray *restrict myArray, // Bunch of objects to select from
    152                   float magLower,       // Lower bound for magnitude
    153                   float magUpper        // Upper bound for magnitude
     151psSelectObjectMag(psObjectArray *restrict myArray, //!< Bunch of objects to select from
     152                  float magLower,       //!< Lower bound for magnitude
     153                  float magUpper        //!< Upper bound for magnitude
    154154                  );
    155155
    156 /* Get objects within a radius on the sky */
     156/** Get objects within a radius on the sky */
    157157psObjectArray *
    158 psSelectObjectSkyDist(psObjectArray *restrict myArray, // Bunch of objects to select from
    159                       psSkyPos *skyPos, // Position on the sky
    160                       float radius,     // Radius of search
    161                       int circleOrSquare // Circle = 1, Square = 2
     158psSelectObjectSkyDist(psObjectArray *restrict myArray, //!< Bunch of objects to select from
     159                      psSkyPos *skyPos, //!< Position on the sky
     160                      float radius,     //!< Radius of search
     161                      int circleOrSquare //!< Circle = 1, Square = 2
    162162                      );
    163163
    164 /* Get objects within a particular colour range */
     164/** Get objects within a particular colour range */
    165165psObjectArray *
    166 psSelectObjectColour(psObjectArray *restrict myArray, // Bunch of objects to select from
    167                      float magLower,    // Lower bound for colour
    168                      float magUpper,    // Upper bound for colour
    169                      enum psColourRef colourRef // Only select those with this colour reference
     166psSelectObjectColour(psObjectArray *restrict myArray, //!< Bunch of objects to select from
     167                     float magLower,    //!< Lower bound for colour
     168                     float magUpper,    //!< Upper bound for colour
     169                     enum psColourRef colourRef //!< Only select those with this colour reference
    170170                     );
    171171
Note: See TracChangeset for help on using the changeset viewer.