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/camera/pmFPACopy.c

    r12838 r13034  
    211211        if (mdok && trimsec && !psRegionIsNaN(*trimsec)) {
    212212            *trimsec = psImageBinningSetRuffRegion(binning, *trimsec);
     213            // force integer pixels : truncate x0, roundup x1:
     214            trimsec->x0 = (int)trimsec->x0;
     215            if (trimsec->x1 > (int)trimsec->x1) {
     216                trimsec->x1 = (int)trimsec->x1 + 1;
     217            } else {
     218                trimsec->x1 = (int)trimsec->x1;
     219            }           
     220            trimsec->y0 = (int)trimsec->y0;
     221            if (trimsec->y1 > (int)trimsec->y1) {
     222                trimsec->y1 = (int)trimsec->y1 + 1;
     223            } else {
     224                trimsec->y1 = (int)trimsec->y1;
     225            }           
    213226        }
    214227        psList *biassecs = psMetadataLookupPtr(&mdok, target->concepts, "CELL.BIASSEC"); // The bias sections
     
    219232                if (!psRegionIsNaN(*biassec)) {
    220233                    *biassec = psImageBinningSetRuffRegion(binning, *biassec);
     234                    // force integer pixels : truncate x0, roundup x1:
     235                    biassec->x0 = (int)biassec->x0;
     236                    if (biassec->x1 > (int)biassec->x1) {
     237                        biassec->x1 = (int)biassec->x1 + 1;
     238                    } else {
     239                        biassec->x1 = (int)biassec->x1;
     240                    }           
     241                    biassec->y0 = (int)biassec->y0;
     242                    if (biassec->y1 > (int)biassec->y1) {
     243                        biassec->y1 = (int)biassec->y1 + 1;
     244                    } else {
     245                        biassec->y1 = (int)biassec->y1;
     246                    }           
    221247                }
    222248            }
Note: See TracChangeset for help on using the changeset viewer.