IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2010, 10:44:29 AM (16 years ago)
Author:
Paul Price
Message:

Reverse merging to the 'new old version' of ppMops (r28043), since this is what MOPS wants right now. The 'new version' is at /branches/ppTranslate/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppTranslate/src/ppMops.h

    r28243 r28623  
    77#define IN_EXTNAME "SkyChip.psf"        // Extension name for data in input
    88#define OBSERVATORY_CODE "F51"          // IAU Observatory Code
     9#define OUT_EXTNAME "MOPS_TRANSIENT_DETECTIONS" // Extension name for data in output
     10#define SOURCE_MASK (PM_SOURCE_MODE_FAIL | PM_SOURCE_MODE_BADPSF | PM_SOURCE_MODE_SATURATED | \
     11                     PM_SOURCE_MODE_CR_LIMIT | PM_SOURCE_MODE_SKY_FAILURE) // Flags to exclude
    912
    1013// Configuration data
     
    2427} ppMopsArguments;
    2528
     29#if 0
     30TTYPE19 = 'PSF_CHISQ'          / label for field  19
     31TFORM19 = '1E      '           / data format of field: 4-byte REAL
     32TTYPE20 = 'CR_NSIGMA'          / label for field  20
     33TFORM20 = '1E      '           / data format of field: 4-byte REAL
     34TTYPE21 = 'EXT_NSIGMA'         / label for field  21
     35TFORM21 = '1E      '           / data format of field: 4-byte REAL
     36TTYPE22 = 'PSF_MAJOR'          / label for field  22
     37TFORM22 = '1E      '           / data format of field: 4-byte REAL
     38TTYPE23 = 'PSF_MINOR'          / label for field  23
     39TFORM23 = '1E      '           / data format of field: 4-byte REAL
     40TTYPE24 = 'PSF_THETA'          / label for field  24
     41TFORM24 = '1E      '           / data format of field: 4-byte REAL
     42TTYPE25 = 'PSF_QF  '           / label for field  25
     43TFORM25 = '1E      '           / data format of field: 4-byte REAL
     44TTYPE26 = 'PSF_NDOF'           / label for field  26
     45TFORM26 = '1J      '           / data format of field: 4-byte INTEGER
     46TTYPE27 = 'PSF_NPIX'           / label for field  27
     47TFORM27 = '1J      '           / data format of field: 4-byte INTEGER
     48TTYPE28 = 'MOMENTS_XX'         / label for field  28
     49TFORM28 = '1E      '           / data format of field: 4-byte REAL
     50TTYPE29 = 'MOMENTS_XY'         / label for field  29
     51TFORM29 = '1E      '           / data format of field: 4-byte REAL
     52TTYPE30 = 'MOMENTS_YY'         / label for field  30
     53TFORM30 = '1E      '           / data format of field: 4-byte REAL
     54#endif
     55
    2656/// Parse arguments
    2757ppMopsArguments *ppMopsArgumentsParse(int argc, char *argv[]);
    2858
    2959typedef struct {
    30     psString component;                 // Component name
    31     psMetadata *header;                 // FITS header (extension names *.hdr)
    3260    psString raBoresight, decBoresight; // RA,Dec of telescope boresight
    3361    psString filter;                    // Filter for exposure
     
    3664    double posangle;                    // Position angle
    3765    double alt, az;                     // Telescope altitude and azimuth
    38     double mjd;                         // Modified Julian Date of exposure mid-point
     66    double mjd;                         // Modified Julian Date
    3967    float seeing;                       // Seeing of exposure
    40     int naxis1, naxis2;                 // Size of image
    4168    long num;                           // Number of detections
    42     psMetadata *psfHeader;              // FITS header (extension names *.psf)
    43     psMetadata *table;                  // Columns of data
    4469    psVector *x, *y;                    // Image coordinates
    4570    psVector *ra, *dec;                 // Sky coordinates
    46     psMetadata *deteffHeader;           // Detection efficiency header (extension names *.deteff)
    47     psMetadata *deteffTable;            // Detection efficiency table
     71    psVector *raErr, *decErr;           // Error in sky coordinates
     72    psVector *mag, *magErr;             // Magnitude and associated error
     73    psVector *chi2, *dof;               // Chi^2 from fitting, with associated degrees of freedom
     74    psVector *cr, *extended;            // Measures of CR-ness and extendedness
     75    psVector *psfMajor, *psfMinor, *psfTheta; // PSF major and minor axes, and position angle
     76    psVector *quality, *numPix;               // PSF quality factor and number of pixels
     77    psVector *xxMoment, *xyMoment, *yyMoment; // Moments
     78    psVector *flags;                    // psphot flags
     79    psVector *diffSkyfileId;            // Identifier for source image
     80    psVector *naxis1, *naxis2;          // Size of image
     81    psVector *mask;                     // Mask for detections
     82    psVector *nPos;                     // Number of positive pixels
     83    psVector *fPos;                     // Fraction of positive flux
     84    psVector *nRatioBad;                // Fraction of positive pixels to negative
     85    psVector *nRatioMask;               // Fraction of positive pixels to masked
     86    psVector *nRatioAll;                // Fraction of positive pixels to all
    4887} ppMopsDetections;
    4988
    50 // Allocator
    51 ppMopsDetections *ppMopsDetectionsAlloc(void);
     89
     90ppMopsDetections *ppMopsDetectionsAlloc(long num);
     91
     92/// Copy a detection
     93bool ppMopsDetectionsCopySingle(ppMopsDetections *target, const ppMopsDetections *source, long index);
     94
     95/// Purge the detections list of masked detections
     96bool ppMopsDetectionsPurge(ppMopsDetections *detections);
     97
    5298
    5399/// Read detections
    54100psArray *ppMopsRead(const ppMopsArguments *args);
    55101
    56 /// Purge duplicate detections
    57 bool ppMopsPurgeDuplicates(const psArray *detections);
     102/// Merge detections
     103ppMopsDetections *ppMopsMerge(const psArray *detections);
    58104
    59105/// Write detections
    60 bool ppMopsWrite(const psArray *detections, const ppMopsArguments *args);
     106bool ppMopsWrite(const ppMopsDetections *detections, const ppMopsArguments *args);
    61107
    62108#endif
Note: See TracChangeset for help on using the changeset viewer.