IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 25, 2007, 3:20:29 PM (19 years ago)
Author:
magnier
Message:

incorporating updates from eam_02_branch (cached models, pmPSF FITS IO)

File:
1 edited

Legend:

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

    r12696 r13034  
    4444            psRegion *trimsec = psMetadataLookupPtr(NULL, cell->concepts, "CELL.TRIMSEC"); // Trim section
    4545            *trimsec = psImageBinningSetRuffRegion (binning, *trimsec);
     46            // force integer pixels : truncate x0, roundup x1:
     47            trimsec->x0 = (int)trimsec->x0;
     48            if (trimsec->x1 > (int)trimsec->x1) {
     49                trimsec->x1 = (int)trimsec->x1 + 1;
     50            } else {
     51                trimsec->x1 = (int)trimsec->x1;
     52            }           
     53            trimsec->y0 = (int)trimsec->y0;
     54            if (trimsec->y1 > (int)trimsec->y1) {
     55                trimsec->y1 = (int)trimsec->y1 + 1;
     56            } else {
     57                trimsec->y1 = (int)trimsec->y1;
     58            }           
    4659            psMetadataRemoveKey(cell->concepts, "CELL.TRIMSEC.UPDATE");
    4760        }
     
    5467            while ((biassec = psListGetAndIncrement(biassecsIter))) {
    5568                *biassec = psImageBinningSetRuffRegion (binning, *biassec);
     69                // force integer pixels : truncate x0, roundup x1:
     70                biassec->x0 = (int)biassec->x0;
     71                if (biassec->x1 > (int)biassec->x1) {
     72                    biassec->x1 = (int)biassec->x1 + 1;
     73                } else {
     74                    biassec->x1 = (int)biassec->x1;
     75                }               
     76                biassec->y0 = (int)biassec->y0;
     77                if (biassec->y1 > (int)biassec->y1) {
     78                    biassec->y1 = (int)biassec->y1 + 1;
     79                } else {
     80                    biassec->y1 = (int)biassec->y1;
     81                }               
    5682            }
    5783            psFree(biassecsIter);
Note: See TracChangeset for help on using the changeset viewer.