IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2004, 5:01:04 PM (22 years ago)
Author:
Paul Price
Message:

Standardised on /< as Doxygen comment for variable.

File:
1 edited

Legend:

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

    r251 r344  
    1111/** Object definition, to handle both objects we detect, and catalogues */
    1212typedef struct {
    13     psCoord *cell;                      //!< Centre position on Cell, with associated error
    14     psCoord *sky;                       //!< Position on the sky, with associated error
    15     float mag, magErr;                  //!< Magnitude and associated error
    16     float isoMag, isoMagErr;            //!< Isophotal magnitude and associated error
    17     float fwhm, fwhmErr;                //!< FWHM and associated error
    18     float ellipA, ellipB;               //!< Elliptical semi-major (A) and semi-minor (B) axes
    19     float ellipAngle;                   //!< Ellipse position angle
    20     float sky, skyErr;                  //!< Local sky level, and associated error
    21     float colour, colourErr;            //!< Colour and associated error, if known
    22     psPhotSysrem colorPlus, colorMinus; //!< Colour reference
    23     psBitMask *quality;                 //!< Bit mask for quality information
     13    psCoord *cell;                      ///< Centre position on Cell, with associated error
     14    psCoord *sky;                       ///< Position on the sky, with associated error
     15    float mag, magErr;                  ///< Magnitude and associated error
     16    float isoMag, isoMagErr;            ///< Isophotal magnitude and associated error
     17    float fwhm, fwhmErr;                ///< FWHM and associated error
     18    float ellipA, ellipB;               ///< Elliptical semi-major (A) and semi-minor (B) axes
     19    float ellipAngle;                   ///< Ellipse position angle
     20    float sky, skyErr;                  ///< Local sky level, and associated error
     21    float colour, colourErr;            ///< Colour and associated error, if known
     22    psPhotSysrem colorPlus, colorMinus; ///< Colour reference
     23    psBitMask *quality;                 ///< Bit mask for quality information
    2424    psCell *parentCell;                 ///< Cell this measurement came from
    2525} psObject;
     
    3737/** An assembly of objects */
    3838typedef struct {
    39     psType type;                        //!< Type of data.  THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!
    40     int size;                           //!< Total number of elements available
    41     int n;                              //!< Number of elements in use
    42     psObject *arr;                      //!< The array data
     39    psType type;                        ///< Type of data.  THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!
     40    int size;                           ///< Total number of elements available
     41    int n;                              ///< Number of elements in use
     42    psObject *arr;                      ///< The array data
    4343} psObjectArray;
    4444
    4545/** Constructor */
    46 psObjectArray *psObjectArrayAlloc(int s, //!< Total number of elements to make available
    47                                   int n //!< Number of elements that will be used
     46psObjectArray *psObjectArrayAlloc(int s, ///< Total number of elements to make available
     47                                  int n ///< Number of elements that will be used
    4848    );
    4949/** Reallocator */
    50 psObjectArray *psObjectArrayRealloc(psObjectArray *myArray, //!< Array to reallocate
    51                                     int s //!< Total number of elements to make available
     50psObjectArray *psObjectArrayRealloc(psObjectArray *myArray, ///< Array to reallocate
     51                                    int s ///< Total number of elements to make available
    5252    );
    5353/** Destructor */
    54 void psObjectArrayFree(psObjectArray *restrict myArray //!< Array to free
     54void psObjectArrayFree(psObjectArray *restrict myArray ///< Array to free
    5555    );
    5656
     
    5959/** Associates objects on an image with the image */
    6060typedef struct {
    61     const struct psImage *image;        //!< Image that produced the objects, which has metadata we need
    62     psObjectArray *objects;             //!< The objects
     61    const struct psImage *image;        ///< Image that produced the objects, which has metadata we need
     62    psObjectArray *objects;             ///< The objects
    6363} psImageObjects;
    6464
    6565/** Constructor */
    6666psImageObjects *
    67 psImageObjectsAlloc(const struct psImage *image, //!< Image that produced the objects, with needed metadata
    68                     psObjectArray *objects //!< The objects
     67psImageObjectsAlloc(const struct psImage *image, ///< Image that produced the objects, with needed metadata
     68                    psObjectArray *objects ///< The objects
    6969    );
    7070
    7171/** Destructor */
    7272void
    73 psImageObjectsFree(psImageObjects *restrict myImageObjects //!< Object to destroy
     73psImageObjectsFree(psImageObjects *restrict myImageObjects ///< Object to destroy
    7474                  );
    7575
     
    7878/** Objects from a catalogue */
    7979typedef struct {
    80     psCatalogue catalogue;              //!< Source catalogue from which objects come
    81     psObjectArray *object;              //!< The objects
     80    psCatalogue catalogue;              ///< Source catalogue from which objects come
     81    psObjectArray *object;              ///< The objects
    8282} psCatalogueObjects;
    8383
    8484/** Constructor */
    8585psCatalogueObjects *
    86 psCatalogueObjectsAlloc(enum psCatalogue *catalogue, //!< Source catalogue
    87                         psObjectArray *objects //!< The objects
     86psCatalogueObjectsAlloc(enum psCatalogue *catalogue, ///< Source catalogue
     87                        psObjectArray *objects ///< The objects
    8888    );
    8989
    9090/** Destructor */
    9191void
    92 psCatalogueObjectsFree(psCatalogueObjects *restrict myCatalogueObjects //!< Object to destroy
     92psCatalogueObjectsFree(psCatalogueObjects *restrict myCatalogueObjects ///< Object to destroy
    9393                      );
    9494
     
    9797/** A "super" object --- an object with multiple detections in different images */
    9898typedef struct {
    99     const struct  psImageArray *images; //!< Images that provided the different measurements
    100     const psObjectArray *objects;       //!< Individual object measurements
     99    const struct  psImageArray *images; ///< Images that provided the different measurements
     100    const psObjectArray *objects;       ///< Individual object measurements
    101101
    102102    /* Derived quantities */
    103     psSkyPos *meanSkyPos;               //!< Mean position on the sky
    104     double pmRA, pmDec;                 //!< Proper motion in RA and Dec
    105     double pmRAErr, pmDecErr;           //!< Errors in proper motion
    106     float posChi2;                      //!< chi^2 for position
     103    psSkyPos *meanSkyPos;               ///< Mean position on the sky
     104    double pmRA, pmDec;                 ///< Proper motion in RA and Dec
     105    double pmRAErr, pmDecErr;           ///< Errors in proper motion
     106    float posChi2;                      ///< chi^2 for position
    107107} psSuperObject;
    108108
    109109/** Constructor */
    110110psSuperObject *
    111 psSuperObjectAlloc(const struct psImageArray *images, //!< The images with the measurements
    112                    const psObjectArray *objects //!< Object measurements
     111psSuperObjectAlloc(const struct psImageArray *images, ///< The images with the measurements
     112                   const psObjectArray *objects ///< Object measurements
    113113    );
    114114
    115115/** Destructor */
    116116void
    117 psSuperObjectFree(psSuperObject *restrict mySuperObject //!< Object to destroy
     117psSuperObjectFree(psSuperObject *restrict mySuperObject ///< Object to destroy
    118118                 );
    119119
     
    129129 */
    130130psIntArray *
    131 psCorrelateObjects(const psObjectArray *restrict myObjects1, //!< First bunch of objects
    132                    const psObjectArray *restrict myObjects2, //!< Second bunch of objects
    133                    const psOTADescription *myOTA1, //!< OTA description for first bunch of objects, or NULL for
    134                                                    //!< sky
    135                    const psOTADescription *myOTA2 //!< OTA description for second bunch of objects, or NULL for
    136                                                   //!< sky
     131psCorrelateObjects(const psObjectArray *restrict myObjects1, ///< First bunch of objects
     132                   const psObjectArray *restrict myObjects2, ///< Second bunch of objects
     133                   const psOTADescription *myOTA1, ///< OTA description for first bunch of objects, or NULL for
     134                                                   ///< sky
     135                   const psOTADescription *myOTA2 ///< OTA description for second bunch of objects, or NULL for
     136                                                  ///< sky
    137137                   );
    138138
     
    142142 */
    143143int
    144 psGetCorrelatedMatches(const psIntArray matches, //!< Index array specifying matches */
    145                        const psObjectArray *restrict myObjects1, //!< First bunch of objects
    146                        const psObjectArray *restrict myObjects2, //!< Second bunch of objects
    147                        psObjectArray *matched1, //!< Matched objects in first bunch
    148                        psObjectArray *matched2 //!< Matched objects in second bunch
     144psGetCorrelatedMatches(const psIntArray matches, ///< Index array specifying matches */
     145                       const psObjectArray *restrict myObjects1, ///< First bunch of objects
     146                       const psObjectArray *restrict myObjects2, ///< Second bunch of objects
     147                       psObjectArray *matched1, ///< Matched objects in first bunch
     148                       psObjectArray *matched2 ///< Matched objects in second bunch
    149149                       );
    150150
     
    155155/** Get objects within a particular magnitude range */
    156156psObjectArray *
    157 psSelectObjectMag(psObjectArray *restrict myArray, //!< Bunch of objects to select from
    158                   float magLower,       //!< Lower bound for magnitude
    159                   float magUpper        //!< Upper bound for magnitude
     157psSelectObjectMag(psObjectArray *restrict myArray, ///< Bunch of objects to select from
     158                  float magLower,       ///< Lower bound for magnitude
     159                  float magUpper        ///< Upper bound for magnitude
    160160                  );
    161161
    162162/** Get objects within a radius on the sky */
    163163psObjectArray *
    164 psSelectObjectSkyDist(psObjectArray *restrict myArray, //!< Bunch of objects to select from
    165                       psSkyPos *skyPos, //!< Position on the sky
    166                       float radius,     //!< Radius of search
    167                       int circleOrSquare //!< Circle = 1, Square = 2
     164psSelectObjectSkyDist(psObjectArray *restrict myArray, ///< Bunch of objects to select from
     165                      psSkyPos *skyPos, ///< Position on the sky
     166                      float radius,     ///< Radius of search
     167                      int circleOrSquare ///< Circle = 1, Square = 2
    168168                      );
    169169
    170170/** Get objects within a particular colour range */
    171171psObjectArray *
    172 psSelectObjectColour(psObjectArray *restrict myArray, //!< Bunch of objects to select from
    173                      float magLower,    //!< Lower bound for colour
    174                      float magUpper,    //!< Upper bound for colour
    175                      psColourRef colourRef //!< Only select those with this colour reference
     172psSelectObjectColour(psObjectArray *restrict myArray, ///< Bunch of objects to select from
     173                     float magLower,    ///< Lower bound for colour
     174                     float magUpper,    ///< Upper bound for colour
     175                     psColourRef colourRef ///< Only select those with this colour reference
    176176                     );
    177177
Note: See TracChangeset for help on using the changeset viewer.