Changeset 23184
- Timestamp:
- Mar 4, 2009, 2:03:08 PM (17 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 2 added
- 4 edited
-
objects/Makefile.am (modified) (2 diffs)
-
objects/pmSource.h (modified) (3 diffs)
-
objects/pmSourceIO_CMF_PS1_V1.c (modified) (1 diff)
-
objects/pmSourceMasks.c (added)
-
objects/pmSourceMasks.h (added)
-
psmodules.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/Makefile.am
r21516 r23184 19 19 pmModelUtils.c \ 20 20 pmSource.c \ 21 pmSourceMasks.c \ 21 22 pmSourceMoments.c \ 22 23 pmSourceExtendedPars.c \ … … 69 70 pmModelUtils.h \ 70 71 pmSource.h \ 72 pmSourceMasks.h \ 71 73 pmSourceExtendedPars.h \ 72 74 pmSourceUtils.h \ -
trunk/psModules/src/objects/pmSource.h
r21516 r23184 19 19 /// @addtogroup Objects Object Detection / Analysis Functions 20 20 /// @{ 21 22 #include <pmSourceMasks.h> 21 23 22 24 /** pmSourceType enumeration … … 34 36 PM_SOURCE_TYPE_EXTENDED, ///< an extended object (eg, galaxy) (subtracted model is EXT) 35 37 } pmSourceType; 36 37 // bit flags to distinguish analysis results38 typedef enum {39 PM_SOURCE_MODE_DEFAULT = 0x00000000, ///< Initial value: resets all bits40 PM_SOURCE_MODE_PSFMODEL = 0x00000001, ///< Source fitted with a psf model (linear or non-linear)41 PM_SOURCE_MODE_EXTMODEL = 0x00000002, ///< Source fitted with an extended-source model42 PM_SOURCE_MODE_FITTED = 0x00000004, ///< Source fitted with non-linear model (PSF or EXT; good or bad)43 PM_SOURCE_MODE_FAIL = 0x00000008, ///< Fit (non-linear) failed (non-converge, off-edge, run to zero)44 PM_SOURCE_MODE_POOR = 0x00000010, ///< Fit succeeds, but low-SN, high-Chisq, or large (for PSF -- drop?)45 PM_SOURCE_MODE_PAIR = 0x00000020, ///< Source fitted with a double psf46 PM_SOURCE_MODE_PSFSTAR = 0x00000040, ///< Source used to define PSF model47 PM_SOURCE_MODE_SATSTAR = 0x00000080, ///< Source model peak is above saturation48 PM_SOURCE_MODE_BLEND = 0x00000100, ///< Source is a blend with other sourcers49 PM_SOURCE_MODE_EXTERNAL = 0x00000200, ///< Source based on supplied input position50 PM_SOURCE_MODE_BADPSF = 0x00000400, ///< Failed to get good estimate of object's PSF51 PM_SOURCE_MODE_DEFECT = 0x00000800, ///< Source is thought to be a defect52 PM_SOURCE_MODE_SATURATED = 0x00001000, ///< Source is thought to be saturated pixels (bleed trail)53 PM_SOURCE_MODE_CR_LIMIT = 0x00002000, ///< Source has crNsigma above limit54 PM_SOURCE_MODE_EXT_LIMIT = 0x00004000, ///< Source has extNsigma above limit55 PM_SOURCE_MODE_MOMENTS_FAILURE = 0x00008000, ///< could not measure the moments56 PM_SOURCE_MODE_SKY_FAILURE = 0x00010000, ///< could not measure the local sky57 PM_SOURCE_MODE_SKYVAR_FAILURE = 0x00020000, ///< could not measure the local sky variance58 PM_SOURCE_MODE_BELOW_MOMENTS_SN = 0x00040000, ///< moments not measured due to low S/N59 PM_SOURCE_MODE_BIG_RADIUS = 0x00100000, ///< poor moments for small radius, try large radius60 PM_SOURCE_MODE_AP_MAGS = 0x00200000, ///< source has an aperture magnitude61 PM_SOURCE_MODE_BLEND_FIT = 0x00400000, ///< source was fitted as a blend62 PM_SOURCE_MODE_EXTENDED_FIT = 0x00800000, ///< full extended fit was used63 PM_SOURCE_MODE_EXTENDED_STATS = 0x01000000, ///< extended aperture stats calculated64 PM_SOURCE_MODE_LINEAR_FIT = 0x02000000, ///< source fitted with the linear fit65 PM_SOURCE_MODE_NONLINEAR_FIT = 0x04000000, ///< source fitted with the non-linear fit66 PM_SOURCE_MODE_RADIAL_FLUX = 0x08000000, ///< radial flux measurements calculated67 PM_SOURCE_MODE_SIZE_SKIPPED = 0x10000000, ///< size could not be determined68 } pmSourceMode;69 38 70 39 typedef enum { … … 101 70 pmSourceType type; ///< Best identification of object. 102 71 pmSourceMode mode; ///< analysis flags set for object. 103 pmSourceTmpF tmpFlags; ///< internal-only flags72 pmSourceTmpF tmpFlags; ///< internal-only flags 104 73 psArray *blends; ///< collection of sources thought to be confused with object 105 74 float psfMag; ///< calculated from flux in modelPSF -
trunk/psModules/src/objects/pmSourceIO_CMF_PS1_V1.c
r21528 r23184 209 209 } 210 210 211 psMetadata *header = psMetadataCopy(NULL, tableHeader); 212 pmSourceMasksHeader(header); 213 211 214 if (table->n == 0) { 212 psFitsWriteBlank (fits, tableHeader, extname); 213 psFree (table); 215 psFitsWriteBlank(fits, header, extname); 216 psFree(table); 217 psFree(header); 214 218 return true; 215 219 } 216 220 217 221 psTrace ("pmFPAfile", 5, "writing ext data %s\n", extname); 218 if (!psFitsWriteTable (fits, tableHeader, table, extname)) {222 if (!psFitsWriteTable(fits, header, table, extname)) { 219 223 psError(PS_ERR_IO, false, "writing ext data %s\n", extname); 220 224 psFree(table); 225 psFree(header); 221 226 return false; 222 227 } 223 psFree (table); 228 psFree(table); 229 psFree(header); 224 230 225 231 return true; -
trunk/psModules/src/psmodules.h
r22699 r23184 113 113 #include <pmPSF.h> 114 114 #include <pmModel.h> 115 #include <pmSourceMasks.h> 115 116 #include <pmSource.h> 116 117 #include <pmSourceUtils.h>
Note:
See TracChangeset
for help on using the changeset viewer.
