IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9998


Ignore:
Timestamp:
Nov 14, 2006, 4:50:24 PM (19 years ago)
Author:
Paul Price
Message:

Fixing case where numScans == 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPARead.c

    r9983 r9998  
    261261        if (readdir == 1) {
    262262            // Reading rows
     263            if (numScans == 0) {
     264                numScans = naxis2 - readout->row0;
     265            }
    263266            readout->row0 += readout->image->numRows;
    264267            offset = readout->row0;
    265             if (numScans == 0) {
    266                 numScans = naxis2 - offset;
    267             }
    268268        } else {
    269269            // Reading columns
     270            if (numScans == 0) {
     271                numScans = naxis1 - readout->col0;
     272            }
    270273            readout->col0 += readout->image->numCols;
    271274            offset = readout->col0;
    272             if (numScans == 0) {
    273                 numScans = naxis1 - offset;
    274             }
     275        }
     276    } else {
     277        if (numScans == 0) {
     278            if (readdir == 1) {
     279                numScans = naxis2;
     280            } else
     281                numScans = naxis1;
    275282        }
    276283    }
Note: See TracChangeset for help on using the changeset viewer.