Changeset 27158
- Timestamp:
- Mar 3, 2010, 1:38:58 PM (16 years ago)
- Location:
- trunk/ppStack/src
- Files:
-
- 7 edited
-
ppStackFinish.c (modified) (1 diff)
-
ppStackLoop.c (modified) (1 diff)
-
ppStackOptions.c (modified) (1 diff)
-
ppStackOptions.h (modified) (1 diff)
-
ppStackPhotometry.c (modified) (1 diff)
-
ppStackSetup.c (modified) (1 diff)
-
ppStackSources.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackFinish.c
r27157 r27158 70 70 // Write out summary statistics 71 71 if (options->stats) { 72 73 psMetadataAddS32(options->stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE, 74 "Bad data quality flag", options->quality); 72 75 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_STACK", 0, 73 76 "Total time", psTimerClear("PPSTACK_TOTAL")); -
trunk/ppStack/src/ppStackLoop.c
r27155 r27158 80 80 psTimerClear("PPSTACK_STEPS")); 81 81 ppStackMemDump("prepare"); 82 82 if (options->quality) { 83 // Can't do anything else 84 return true; 85 } 83 86 84 87 // Convolve inputs -
trunk/ppStack/src/ppStackOptions.c
r26898 r27158 56 56 options->convVariances = NULL; 57 57 options->num = 0; 58 options->quality = 0; 58 59 options->psf = NULL; 59 60 options->inputSeeing = NULL; -
trunk/ppStack/src/ppStackOptions.h
r26898 r27158 17 17 psArray *origCovars; // Original covariances matrices 18 18 int num; // Number of inputs 19 int quality; // Bad data quality flag 19 20 // Prepare 20 21 pmPSF *psf; // Target PSF -
trunk/ppStack/src/ppStackPhotometry.c
r27004 r27158 72 72 psErrorStackPrint(stderr, "Unable to perform photometry on image"); 73 73 psWarning("Unable to perform photometry on image --- suspect bad data quality."); 74 if (options->stats && psMetadataLookupS32(NULL, options->stats, "QUALITY") == 0) { 75 psMetadataAddS32(options->stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE, 76 "Unable to perform photometry on image", psErrorCodeLast()); 74 if (options->quality == 0) { 75 options->quality = psErrorCodeLast(); 77 76 } 78 77 psErrorClear(); -
trunk/ppStack/src/ppStackSetup.c
r27004 r27158 48 48 psFree(resolved); 49 49 options->stats = psMetadataAlloc(); 50 psMetadataAddS32(options->stats, PS_LIST_TAIL, "QUALITY", 0, "No problems", 0);51 50 } 52 51 -
trunk/ppStack/src/ppStackSources.c
r27004 r27158 127 127 float airmassTerm = NAN; // Airmass term 128 128 float sumExpTime = 0.0; // Sum of the exposure time 129 int numGoodImages = 0; // Number of good images 129 130 for (int i = 0; i < num; i++) { 131 psArray *sources = sourceLists->data[i]; // Source list 132 psAssert(sources, "Don't have source list %d", i); 133 if (sources->n == 0) { 134 options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i] |= PPSTACK_MASK_CAL; 135 continue; 136 } 137 numGoodImages++; 138 130 139 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT", i); // File of interest 131 140 pmCell *cell = pmFPAviewThisCell(view, file->fpa); // Cell of interest … … 145 154 psFree(fake); 146 155 #endif 147 148 156 149 157 float exptime = psMetadataLookupF32(NULL, cell->concepts, "CELL.EXPOSURE"); // Exposure time
Note:
See TracChangeset
for help on using the changeset viewer.
