Changeset 30027
- Timestamp:
- Dec 11, 2010, 8:21:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psphot/src/psphotStackReadout.c
r29936 r30027 2 2 3 3 # define STACK_RAW "PSPHOT.STACK.INPUT.RAW" 4 # define STACK_CNV "PSPHOT.STACK.INPUT.CNV" 4 5 # define STACK_OUT "PSPHOT.STACK.OUTPUT.IMAGE" 5 6 … … 20 21 PS_ASSERT_PTR_NON_NULL (breakPt, false); 21 22 23 BST = RAW : CNV; 24 22 25 // we have 3 relevant files: RAW, CNV, OUT 23 26 24 27 // set the photcode for each image 25 if (!psphotAddPhotcode (config, view, STACK_ OUT)) {28 if (!psphotAddPhotcode (config, view, STACK_BST)) { 26 29 psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode"); 27 30 return false; … … 190 193 } 191 194 195 /* here is the process: 196 197 * we have three(*) images: 198 * RAW : unconvolved image stack 199 * CNV : input convolved image 200 201 * OUT : psf-matched output image (there may be more than one of 202 * these. we will generate the first matched image by selecting the 203 * target PSF and doing a full psf-maching process (as used by ppStack 204 * and ppSub). But, additional target output files should use a 205 * simple gaussian convolution kernel determind from therms of the 206 * current and the target). 207 208 * the output should be / could be one of the matched images, but not 209 * all. should we ensure the first gets written out, and ot save the 210 * others (or only optionally). 211 212 * by default, we probably only sve the cmf ffile outputs. 213 214 * load the RAW image (unconvolved stacks) 215 * add photcode to the output headers / readout->analysis 216 * generate mask and variance image (this is probably never needed in 217 practice: we always load an input mask & var. 218 * generate & subtract a model background for ?? (RAW? CNV? OUT? all?) 219 * load a PSF (probably not yet working) 220 221 * generate the CHISQ image from the RAW input images (why save on OUT?) 222 223 * find detections on RAW 224 225 * copy detections to OUT 226 227 * generate source stats (moments) for OUT 228 229 * match sources across inputs (on OUT?) 230 231 * generate source stats for the new constructions 232 233 * rough class (star, galaxy, cosmic, etc) 234 235 * Image quality 236 237 * generate PSF 238 239 * guess models 240 241 * merge sources (new -> old) 242 243 * linear fit to the psf 244 245 * find ApResid 246 247 * assign common positions 248 249 * radial apertures (** this should be on the PSF-matched images 250 251 * extended analysis (elliptical profile & petrosian) 252 253 * extended fits (sersic, etc) 254 255 * psphot magnitudes 256 257 258 ****** 259 260 the above is all wrong: first, we sohould be doing the full 261 morphology analysis (ExtendedAnalysis & ExtendedFits) on the CNV or 262 RAW image (as desired optionally), etc. 263 264 In the discussion below, 'BST' (best) means optionally RAW or CNV 265 266 * detection : RAW & CHISQ (of RAW) 267 * moments : used by psf analysis & classification (BST) 268 * rough class : uses moments, not pixels 269 * image quality : uses moments as well 270 * generate PSF : (BST) 271 * guess models (BST) 272 * linear fit (BST) 273 * find ApResid (BST) -- uses sources not pixels 274 * extended analysis (BST) 275 * extended fits (BST) 276 * detection efficiency (BST) 277 278 * somehow need to copy the sources so they point at the pixels on the 279 * OUT image 280 281 * foreach target PSF 282 * radial aperture 283 * convolve to next target PSF 284 285 * somehow need to organize the output file to have the values from 286 * the different PSFs in separate tables (with header info to 287 * specify the size of that PSF) 288 289 */
Note:
See TracChangeset
for help on using the changeset viewer.
