IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2006, 4:13:17 PM (20 years ago)
Author:
Paul Price
Message:

Adding XBIN and YBIN to list that gets checked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsAverage.c

    r9572 r9943  
    3737    psTimeType timeSys = 0;             // Time system
    3838    int readdir      = 0;               // Cell read direction
     39    int xBin = 0, yBin = 0;             // Binning
    3940
    4041    int nCells = 0;                     // Number of cells;
     
    5657            timeSys = psMetadataLookupS32(NULL, cell->concepts, "CELL.TIMESYS");
    5758            readdir = psMetadataLookupS32(NULL, cell->concepts, "CELL.READDIR");
     59            xBin    = psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN");
     60            yBin    = psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN");
    5861        } else {
    5962            if (timeSys != psMetadataLookupS32(NULL, cell->concepts, "CELL.TIMESYS")) {
     
    6568                psLogMsg(__func__, PS_LOG_ERROR, "Differing cell read directions in use: %d vs %d\n", readdir,
    6669                         psMetadataLookupS32(NULL, cell->concepts, "CELL.READDIR"));
     70                success = false;
     71            }
     72            if (xBin != psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN")) {
     73                psLogMsg(__func__, PS_LOG_ERROR, "Differing cell x binnings in use: %d vs %d\n", xBin,
     74                         psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN"));
     75                success = false;
     76            }
     77            if (yBin != psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN")) {
     78                psLogMsg(__func__, PS_LOG_ERROR, "Differing cell y binnings in use: %d vs %d\n", yBin,
     79                         psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN"));
    6780                success = false;
    6881            }
Note: See TracChangeset for help on using the changeset viewer.