Changeset 12650
- Timestamp:
- Mar 28, 2007, 1:27:23 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsAverage.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsAverage.c
r12630 r12650 39 39 int readdir = 0; // Cell read direction 40 40 int xBin = 0, yBin = 0; // Binning 41 int x0 = 0, y0 = 0; // Offset 41 42 42 43 int nCells = 0; // Number of cells; … … 60 61 xBin = psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN"); 61 62 yBin = psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN"); 63 x0 = psMetadataLookupS32(NULL, cell->concepts, "CELL.X0"); 64 y0 = psMetadataLookupS32(NULL, cell->concepts, "CELL.Y0"); 62 65 } else { 63 66 if (timeSys != psMetadataLookupS32(NULL, cell->concepts, "CELL.TIMESYS")) { 64 psLogMsg(__func__, PS_LOG_ERROR, "Differing time systemsin use: %d vs %d\n", timeSys,67 psLogMsg(__func__, PS_LOG_ERROR, "Differing CELL.TIMESYS in use: %d vs %d\n", timeSys, 65 68 psMetadataLookupS32(NULL, cell->concepts, "CELL.TIMESYS")); 66 69 success = false; 67 70 } 68 71 if (readdir != psMetadataLookupS32(NULL, cell->concepts, "CELL.READDIR")) { 69 psLogMsg(__func__, PS_LOG_ERROR, "Differing cell read directionsin use: %d vs %d\n", readdir,72 psLogMsg(__func__, PS_LOG_ERROR, "Differing CELL.READDIR in use: %d vs %d\n", readdir, 70 73 psMetadataLookupS32(NULL, cell->concepts, "CELL.READDIR")); 71 74 success = false; 72 75 } 73 76 if (xBin != psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN")) { 74 psLogMsg(__func__, PS_LOG_ERROR, "Differing cell x binningsin use: %d vs %d\n", xBin,77 psLogMsg(__func__, PS_LOG_ERROR, "Differing CELL.XBIN in use: %d vs %d\n", xBin, 75 78 psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN")); 76 79 success = false; 77 80 } 78 81 if (yBin != psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN")) { 79 psLogMsg(__func__, PS_LOG_ERROR, "Differing cell y binningsin use: %d vs %d\n", yBin,82 psLogMsg(__func__, PS_LOG_ERROR, "Differing CELL.YBIN in use: %d vs %d\n", yBin, 80 83 psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN")); 84 success = false; 85 } 86 if (x0 != psMetadataLookupS32(NULL, cell->concepts, "CELL.X0")) { 87 psLogMsg(__func__, PS_LOG_ERROR, "Differing CELL.X0 in use: %d vs %d\n", x0, 88 psMetadataLookupS32(NULL, cell->concepts, "CELL.X0")); 89 success = false; 90 } 91 if (y0 != psMetadataLookupS32(NULL, cell->concepts, "CELL.Y0")) { 92 psLogMsg(__func__, PS_LOG_ERROR, "Differing CELL.Y0 in use: %d vs %d\n", y0, 93 psMetadataLookupS32(NULL, cell->concepts, "CELL.Y0")); 81 94 success = false; 82 95 } … … 110 123 MD_UPDATE(target->concepts, "CELL.XBIN", S32, xBin); 111 124 MD_UPDATE(target->concepts, "CELL.YBIN", S32, yBin); 125 MD_UPDATE(target->concepts, "CELL.X0", S32, x0); 126 MD_UPDATE(target->concepts, "CELL.Y0", S32, y0); 112 127 113 128 // CELL.TIME needs special care
Note:
See TracChangeset
for help on using the changeset viewer.
