Changeset 21392
- Timestamp:
- Feb 6, 2009, 1:36:21 PM (17 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 6 edited
-
Makefile.am (modified) (1 diff)
-
psphot.h (modified) (1 diff)
-
psphotDetect.h (modified) (1 diff)
-
psphotDetectReadout.c (modified) (2 diffs)
-
psphotMagnitudes.c (modified) (5 diffs)
-
psphotSetThreads.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/Makefile.am
r21356 r21392 19 19 psphotImageLoop.c \ 20 20 psphotMosaicChip.c \ 21 psphotSetMaskBits.c \22 21 psphotParseCamera.c 22 23 psphotDetect_SOURCES = \ 24 psphotDetect.c \ 25 psphotDetectArguments.c \ 26 psphotDetectParseCamera.c \ 27 psphotDetectImageLoop.c \ 28 psphotDetectReadout.c \ 29 psphotMosaicChip.c \ 30 psphotCleanup.c 23 31 24 32 psphotTest_SOURCES = \ -
trunk/psphot/src/psphot.h
r21366 r21392 60 60 bool psphotMagnitudes (pmConfig *config, pmReadout *readout, const pmFPAview *view, psArray *sources, pmPSF *psf); 61 61 bool psphotMagnitudes_Threaded (psThreadJob *job); 62 63 bool psphotPSFWeights(pmConfig *config, pmReadout *readout, const pmFPAview *view, psArray *sources); 64 bool psphotPSFWeights_Threaded (psThreadJob *job); 62 65 63 66 bool psphotApResid (pmConfig *config, pmReadout *readout, psArray *sources, pmPSF *psf); -
trunk/psphot/src/psphotDetect.h
r21353 r21392 12 12 13 13 // Top level functions 14 pmConfig *psphotArguments (int argc, char **argv); 15 bool psphotParseCamera (pmConfig *config); 16 bool psphotImageLoop (pmConfig *config); 17 bool psphotMosaicChip(pmConfig *config, const pmFPAview *view, char *outFile, char *inFile); 18 void psphotCleanup (pmConfig *config); 19 psExit psphotGetExitStatus (); 14 pmConfig *psphotDetectArguments(int argc, char **argv); 15 bool psphotDetectParseCamera (pmConfig *config); 16 bool psphotDetectImageLoop (pmConfig *config); 17 bool psphotDetectReadout(pmConfig *config, const pmFPAview *view); 18 19 bool psphotMosaicChip(pmConfig *config, const pmFPAview *view, char *outFile, char *inFile); 20 void psphotCleanup (pmConfig *config); 21 psExit psphotGetExitStatus (); 20 22 21 23 #endif -
trunk/psphot/src/psphotDetectReadout.c
r21353 r21392 30 30 psAssert (psf, "psf should be loaded"); 31 31 32 33 32 // grab the sources of interest from the storage location (pmFPAfile PSPHOT.INPUT.CMF) 34 33 psArray *sources = psphotLoadPSFSources (config, view); … … 59 58 60 59 // calculate source magnitudes 61 psphotPSFWeights(config, readout, view, sources , psf);60 psphotPSFWeights(config, readout, view, sources); 62 61 63 62 // create the exported-metadata and free local data -
trunk/psphot/src/psphotMagnitudes.c
r21359 r21392 199 199 } 200 200 201 # if (0) 202 bool psphotPSFWeights(pmConfig *config, pmReadout *readout, const pmFPAview *view, psArray *sources, pmPSF *psf) { 201 bool psphotPSFWeights(pmConfig *config, pmReadout *readout, const pmFPAview *view, psArray *sources) { 203 202 204 203 bool status = false; 205 int Nap = 0;206 204 207 205 psTimerStart ("psphot.mags"); … … 229 227 maskVal |= markVal; 230 228 231 pmSourcePhotometryMode photMode = PM_SOURCE_PHOT_APCORR | PM_SOURCE_PHOT_WEIGHT;232 if (!IGNORE_GROWTH) photMode |= PM_SOURCE_PHOT_GROWTH;233 if (INTERPOLATE_AP) photMode |= PM_SOURCE_PHOT_INTERP;234 235 229 // choose Cx, Cy (see psphotThreadTools.c for overview of the concepts) 236 230 int Cx = 1, Cy = 1; … … 249 243 250 244 psArrayAdd(job->args, 1, cells->data[j]); // sources 251 psArrayAdd(job->args, 1, psf);252 245 PS_ARRAY_ADD_SCALAR(job->args, maskVal, PS_TYPE_IMAGE_MASK); 253 246 … … 289 282 290 283 psArray *sources = job->args->data[0]; 291 pmPSF *psf = job->args->data[1]; 292 psImageMaskType maskVal = PS_SCALAR_VALUE(job->args->data[2],PS_TYPE_IMAGE_MASK_DATA); 284 psImageMaskType maskVal = PS_SCALAR_VALUE(job->args->data[1],PS_TYPE_IMAGE_MASK_DATA); 293 285 294 286 for (int i = 0; i < sources->n; i++) { … … 314 306 return true; 315 307 } 316 317 # endif318 -
trunk/psphot/src/psphotSetThreads.c
r21166 r21392 12 12 task = psThreadTaskAlloc("PSPHOT_MAGNITUDES", 8); 13 13 task->function = &psphotMagnitudes_Threaded; 14 psThreadTaskAdd(task); 15 psFree(task); 16 17 task = psThreadTaskAlloc("PSPHOT_PSF_WEIGHTS", 2); 18 task->function = &psphotPSFWeights_Threaded; 14 19 psThreadTaskAdd(task); 15 20 psFree(task);
Note:
See TracChangeset
for help on using the changeset viewer.
