| | 1 | This describes the columns and flags in the CMF/SMF files, version PS1_V3. They are listed in psModules/src/objects/pmSourceIO_CMF_PS1_V3.c, this is a slightly more descriptive version. |
| | 2 | |
| | 3 | == Columns == |
| | 4 | |
| | 5 | * IPP_IDET - detection id (increment from 0 per chip - gaps are from magic) |
| | 6 | * X_PSF -position (in pixels |
| | 7 | * Y_PSF -position in pixels |
| | 8 | * X_PSF_SIGMA -position sigma |
| | 9 | * Y_PSF_SIGMA -position sigma |
| | 10 | * POSANGLE - position angle of the instrument coordinate system at source (ie, the angle between north and the y-axis) in degrees |
| | 11 | * PLTSCALE - plate-scale at the source position (it varies across the exposure!) in arcsec |
| | 12 | * PSF_INST_MAG - PSF Instrumental mag |
| | 13 | * PSF_INST_MAG_SIG - error for that |
| | 14 | * PSF_INST_FLUX |
| | 15 | * PSF_INST_FLUX_SIG |
| | 16 | * AP_MAG - aperture mag |
| | 17 | * AP_MAG_RAW |
| | 18 | * AP_MAG_RADIUS - aperture mag radius (pixels) |
| | 19 | * AP_FLUX - counts |
| | 20 | * AP_FLUX_SIG - error on previous |
| | 21 | * PEAK_FLUX_AS_MAG - as it says, it is the flux (counts/pixel) for the peak pixel expressed as an instrumental magnitude (-2.5*log(flux)) |
| | 22 | * CAL_PSF_MAG - calibrated PSF MAG |
| | 23 | * CAL_PS_MAG_SIG - error |
| | 24 | * RA_PSF - ra |
| | 25 | * DEC_PSF - dec |
| | 26 | * SKY - background in counts (DN, not electrons) |
| | 27 | * SKY_SIGMA -error |
| | 28 | * PSF_CHISQ - chisq of psf |
| | 29 | * CR_NSIGMA - cosmic ray |
| | 30 | * EXT_NSIGMA - extended source |
| | 31 | * PSF_MAJOR - major axis (pixel) |
| | 32 | * PSF_MINOR - minor axis (pixel) |
| | 33 | * PSF_THETA - angle |
| | 34 | * PSF_QF - the psf-weighted fraction of unmasked pixels: |
| | 35 | * {{{\Sum_i (psf_i * !masked) / \Sum_i (psf_i)}}} |
| | 36 | * PSF_QF_PERFECT - the psf-weighted fraction of unmasked pixels (including suspect pixels): |
| | 37 | * {{{\Sum_i (psf_i * !masked) / \Sum_i (psf_i)}}} |
| | 38 | * PSF_NDOF - number of degrees of freedom for the fit -- for the diff detections, the only free parameter is the flux, so N_DOF = N_PIX - 1; in other cases, there may be more parameters (eg, position, size, etc). |
| | 39 | * PSF_NPIX - number of pixels for fit |
| | 40 | * MOMENTS_XX - second moment in x: |
| | 41 | * {{{\Sum ((x_i - x_o)^2 f_i) / \Sum (f_i) }}} where x_o is the centroid {{{ \Sum (x_i f_i) / \Sum f_i }}} |
| | 42 | * MOMENTS_XY - second moment in xy: |
| | 43 | * {{{\Sum ((x_i - x_o)(y_i - y_o)^2 f_i) / \Sum (f_i) }}} |
| | 44 | * MOMENTS_YY - second moment in xy |
| | 45 | * {{{\Sum ((y_i - y_o)^2 f_i) / \Sum (f_i) }}} |
| | 46 | |
| | 47 | * MOMENTS_R1 - first radial moment (used to define the Kron radius = 2.5 R1) |
| | 48 | * {{{\Sum r f_i) / \Sum (f_i) }}} where r is radius from the centroid |
| | 49 | * MOMENTS_RH - half radial moment (an indicator of concentration) |
| | 50 | * {{{\Sum sqrt(r) f_i) / \Sum (f_i) }}} where r is radius from the centroid |
| | 51 | * KRON_FLUX - flux within Kron Radius (2.5 * first radial moment) |
| | 52 | * KRON_FLUX_ERR - error on the above |
| | 53 | |
| | 54 | * KRON_FLUX_INNER - flux within annulus (1.0 R1 < R < 2.5 R1) |
| | 55 | * KRON_FLUX_OUTER - flux within annulus (2.5 R1 < R < 4.0 R1) |
| | 56 | |
| | 57 | * FLAGS - see below |
| | 58 | * FLAGS2 - see below |
| | 59 | |
| | 60 | * N_FRAMES - this is not currently set, but it is supposed to have the value of the number of input images overlapping the center of the source (for warp-warp diff, it would be 2, for a single image it would be 1, for a stack it may be something else). |
| | 61 | * PADDING - a dummy block of data needed to fit the rows into 8-byte boundaries (this lets me read into structures as a bulk byte read operation). |
| | 62 | |
| | 63 | === FLAGS === |
| | 64 | |
| | 65 | (see also [wiki:IPP_Detection_Bitmasks) |
| | 66 | |
| | 67 | ||DEFAULT || 0x0000.0000 || Initial value: resets all bits || |
| | 68 | ||PSFMODEL || 0x0000.0001 || Source fitted with a psf model (linear or non-linear) || |
| | 69 | ||EXTMODEL || 0x0000.0002 || Source fitted with an extended-source model|| |
| | 70 | ||FITTED || 0x0000.0004 || Source fitted with non-linear model (PSF or EXT; good or bad)|| |
| | 71 | ||FITFAIL || 0x0000.0008 || Fit (non-linear) failed (non-converge, off-edge, run to zero)|| |
| | 72 | ||POORFIT || 0x0000.0010 || Fit succeeds, but low-SN, high-Chisq, or large (for PSF -- drop?)|| |
| | 73 | ||PAIR || 0x0000.0020 || Source fitted with a double psf || |
| | 74 | ||PSFSTAR || 0x0000.0040 || Source used to define PSF model || |
| | 75 | ||SATSTAR || 0x0000.0080 || Source model peak is above saturation || |
| | 76 | ||BLEND || 0x0000.0100 || Source is a blend with other sourcers || |
| | 77 | ||EXTERNALPOS" || 0x0000.0200 || Source based on supplied input position || |
| | 78 | ||BADPSF || 0x0000.0400 || Failed to get good estimate of object's PSF || |
| | 79 | ||DEFECT || 0x0000.0800 || Source is thought to be a defect || |
| | 80 | ||SATURATED || 0x0000.1000 || Source is thought to be saturated pixels (bleed trail) || |
| | 81 | ||CR_LIMIT || 0x0000.2000 || Source has crNsigma above limit || |
| | 82 | ||EXT_LIMIT || 0x0000.4000 || Source has extNsigma above limit || |
| | 83 | ||MOMENTS_FAILURE || 0x0000.8000 || could not measure the moments || |
| | 84 | ||SKY_FAILURE || 0x0001.0000 || could not measure the local sky || |
| | 85 | ||SKYVAR_FAILURE || 0x0002.0000 || could not measure the local sky variance || |
| | 86 | ||MOMENTS_SN || 0x0004.0000 || moments not measured due to low S/N || |
| | 87 | ||BIG_RADIUS || 0x0008.0000 || poor moments for small radius, try large radius|| |
| | 88 | ||AP_MAGS || 0x0010.0000 || source has an aperture magnitude || |
| | 89 | ||BLEND_FIT || 0x0020.0000 || source was fitted as a blend || |
| | 90 | ||EXTENDED_FIT || 0x0040.0000 || full extended fit was used || |
| | 91 | ||EXTENDED_STATS || 0x0080.0000 || extended aperture stats calculated || |
| | 92 | ||LINEAR_FIT || 0x0100.0000 || source fitted with the linear fit || |
| | 93 | ||NONLINEAR_FIT || 0x0200.0000 || source fitted with the non-linear fit || |
| | 94 | ||RADIAL_FLUX || 0x0400.0000 || radial flux measurements calculated|| |
| | 95 | ||SIZE_SKIPPED || 0x0800.0000 || size could not be determined || |
| | 96 | ||ON_SPIKE || 0x1000.0000 || peak lands on diffraction spike || |
| | 97 | ||ON_GHOST || 0x2000.0000 || peak lands on ghost or glint || |
| | 98 | ||OFF_CHIP || 0x4000.0000 || peak lands off edge of chip|| |
| | 99 | |
| | 100 | === FLAGS2 === |
| | 101 | || DIFF_WITH_SINGLE || 0x0000.0001 || diff source matched to a single positive detection || |
| | 102 | || DIFF_WITH_DOUBLE || 0x0000.0002 || diff source matched to positive detections in both images || |
| | 103 | || MATCHED || 0x0000.0004 || source was supplied at this location from somewhere else (eg, another image, forced photometry location, etc) || |