Changeset 28209 for trunk/ppTranslate/src/ppMops.h
- Timestamp:
- Jun 3, 2010, 5:38:55 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppTranslate/src/ppMops.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppTranslate/src/ppMops.h
r28027 r28209 7 7 #define IN_EXTNAME "SkyChip.psf" // Extension name for data in input 8 8 #define OBSERVATORY_CODE "F51" // IAU Observatory Code 9 #define OUT_EXTNAME "MOPS_TRANSIENT_DETECTIONS" // Extension name for data in output10 #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 exclude12 9 13 10 // Configuration data … … 27 24 } ppMopsArguments; 28 25 29 #if 030 TTYPE19 = 'PSF_CHISQ' / label for field 1931 TFORM19 = '1E ' / data format of field: 4-byte REAL32 TTYPE20 = 'CR_NSIGMA' / label for field 2033 TFORM20 = '1E ' / data format of field: 4-byte REAL34 TTYPE21 = 'EXT_NSIGMA' / label for field 2135 TFORM21 = '1E ' / data format of field: 4-byte REAL36 TTYPE22 = 'PSF_MAJOR' / label for field 2237 TFORM22 = '1E ' / data format of field: 4-byte REAL38 TTYPE23 = 'PSF_MINOR' / label for field 2339 TFORM23 = '1E ' / data format of field: 4-byte REAL40 TTYPE24 = 'PSF_THETA' / label for field 2441 TFORM24 = '1E ' / data format of field: 4-byte REAL42 TTYPE25 = 'PSF_QF ' / label for field 2543 TFORM25 = '1E ' / data format of field: 4-byte REAL44 TTYPE26 = 'PSF_NDOF' / label for field 2645 TFORM26 = '1J ' / data format of field: 4-byte INTEGER46 TTYPE27 = 'PSF_NPIX' / label for field 2747 TFORM27 = '1J ' / data format of field: 4-byte INTEGER48 TTYPE28 = 'MOMENTS_XX' / label for field 2849 TFORM28 = '1E ' / data format of field: 4-byte REAL50 TTYPE29 = 'MOMENTS_XY' / label for field 2951 TFORM29 = '1E ' / data format of field: 4-byte REAL52 TTYPE30 = 'MOMENTS_YY' / label for field 3053 TFORM30 = '1E ' / data format of field: 4-byte REAL54 #endif55 56 26 /// Parse arguments 57 27 ppMopsArguments *ppMopsArgumentsParse(int argc, char *argv[]); 58 28 59 29 typedef struct { 30 psMetadata *header; // FITS header 60 31 psString raBoresight, decBoresight; // RA,Dec of telescope boresight 61 32 psString filter; // Filter for exposure … … 64 35 double posangle; // Position angle 65 36 double alt, az; // Telescope altitude and azimuth 66 double mjd; // Modified Julian Date 37 double mjd; // Modified Julian Date of exposure mid-point 67 38 float seeing; // Seeing of exposure 39 int naxis1, naxis2; // Size of image 68 40 long num; // Number of detections 41 psMetadata *table; // Columns of data 69 42 psVector *x, *y; // Image coordinates 70 43 psVector *ra, *dec; // Sky coordinates 71 psVector *raErr, *decErr; // Error in sky coordinates72 psVector *mag, *magErr; // Magnitude and associated error73 psVector *chi2, *dof; // Chi^2 from fitting, with associated degrees of freedom74 psVector *cr, *extended; // Measures of CR-ness and extendedness75 psVector *psfMajor, *psfMinor, *psfTheta; // PSF major and minor axes, and position angle76 psVector *quality, *numPix; // PSF quality factor and number of pixels77 psVector *xxMoment, *xyMoment, *yyMoment; // Moments78 psVector *flags; // psphot flags79 psVector *diffSkyfileId; // Identifier for source image80 psVector *naxis1, *naxis2; // Size of image81 psVector *mask; // Mask for detections82 psVector *nPos; // Number of positive pixels83 psVector *fPos; // Fraction of positive flux84 psVector *nRatioBad; // Fraction of positive pixels to negative85 psVector *nRatioMask; // Fraction of positive pixels to masked86 psVector *nRatioAll; // Fraction of positive pixels to all87 44 } ppMopsDetections; 88 45 89 90 ppMopsDetections *ppMopsDetectionsAlloc(long num); 91 92 /// Copy a detection 93 bool ppMopsDetectionsCopySingle(ppMopsDetections *target, const ppMopsDetections *source, long index); 94 95 /// Purge the detections list of masked detections 96 bool ppMopsDetectionsPurge(ppMopsDetections *detections); 97 46 // Allocator 47 ppMopsDetections *ppMopsDetectionsAlloc(void); 98 48 99 49 /// Read detections 100 50 psArray *ppMopsRead(const ppMopsArguments *args); 101 51 102 /// Merge detections103 ppMopsDetections *ppMops Merge(const psArray *detections);52 /// Purge duplicate detections 53 ppMopsDetections *ppMopsPurgeDuplicates(const psArray *detections); 104 54 105 55 /// Write detections 106 bool ppMopsWrite(const p pMopsDetections*detections, const ppMopsArguments *args);56 bool ppMopsWrite(const psArray *detections, const ppMopsArguments *args); 107 57 108 58 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
