- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStack/src/ppStackSources.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ppStack/src/ppStackSources.c
r31158 r33415 1 1 #include "ppStack.h" 2 2 3 //#define TESTING // Enable debugging output3 #define TESTING // Enable debugging output 4 4 5 5 //#define ASTROMETRY // Correct astrometry? … … 7 7 #ifdef TESTING 8 8 // Size of fake image; set by hand because it's trouble to get it from other places 9 #define FAKE_COLS 4861 10 #define FAKE_ROWS 4913 9 //#define FAKE_COLS 4861 10 //#define FAKE_ROWS 4913 11 #define FAKE_COLS 1000 12 #define FAKE_ROWS 1000 11 13 #endif 12 14 … … 57 59 PS_ASSERT_PTR_NON_NULL(config, false); 58 60 61 //MEH - added for not matchZP option - need to fix logic 62 psLogMsg("ppStack", PS_LOG_WARN, "TESTING:options: %d : %d", options->matchZPs,options->photometry); 63 if (!options->matchZPs) { 64 options->norm = psVectorAlloc(options->num, PS_TYPE_F32); 65 psVectorInit(options->norm, 0.0); 66 } 67 // ----- 68 59 69 if (!options->matchZPs && !options->photometry) { 60 options->norm = psVectorAlloc(options->num, PS_TYPE_F32);70 options->norm = psVectorAlloc(options->num, PS_TYPE_F32); 61 71 psVectorInit(options->norm, 0.0); 62 72 return true; … … 71 81 PS_ASSERT_VECTOR_SIZE(inputMask, sourceLists->n, false); 72 82 73 #if defined(TESTING) && 1 83 //MEH 1->0 - dont want to add offsets until understand what it doing 84 #if defined(TESTING) && 0 74 85 { 75 86 // Deliberately induce a major transparency difference … … 159 170 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT", i); // File of interest 160 171 161 #if defined(TESTING) && 0 172 //MEH 0->1 173 #if defined(TESTING) && 1 162 174 pmReadout *fake = pmReadoutAlloc(NULL); // Fake readout 163 175 pmPSF *psf = psMetadataLookupPtr(NULL, config->arguments, "PSF.TARGET"); // PSF for fake image … … 333 345 psArray *sources = sourceLists->data[i]; // Sources of interest 334 346 float magCorr = zp->data.F32[i] - trans->data.F32[i] - 2.5*log10(options->sumExposure) - airmassTerm * airmassTarget; 347 //MEH 348 psLogMsg("ppStack", PS_LOG_INFO,"TESTING:: %d: %f %f %f\n",i,magCorr,trans->data.F32[i],zp->data.F32[i]); 335 349 if (zpExpNum == numGoodImages) { // case (a) 336 350 // Using measured zero points, so attempt to set target zero point 337 351 // XXX see NOTE above regarding case (b) : this is wrong. the code should load a nominal zero point and supply it above 338 352 // 339 magCorr -= zpTarget; 353 magCorr -= zpTarget; 354 //MEH 355 psLogMsg("ppStack", PS_LOG_INFO,"TESTING:if: %d: %f %f %f\n",i,magCorr,trans->data.F32[i],zp->data.F32[i]); 340 356 } 341 357 options->norm->data.F32[i] = magCorr;
Note:
See TracChangeset
for help on using the changeset viewer.
