Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

MSDOS int problem

We have discovered that on a 16 bit MS-DOS machine we
cannot access data beyond the 32,768th element in any
given dimension.  This is because the netcdf routine
ncvarget, the corners are declared as "int", which on 
a 16 bit machine, are 16 bits. 

 It appears that what is needed is to write a new routine
for 16 bit platforms called ncvargetl (or something) that
uses long integers instead of ints.   Has anybody confronted
this problem?  

We cannot simply use a 32-bit 386 machine, because we are 
creating a CD-ROM that neads to work on campuses and high
schools around the country.  From my inquiries, it seems that
no compiler for 16 bit machines has the option of intepreting
ints as longs.

-- 
Rich Signell               |   rsignell@xxxxxxxxxxxxxxxxxx
U.S. Geological Survey     |   (508) 548-8700
Quissett Campus            |   "You need a license to dig clams...
Woods Hole, MA  02543      |      ... but anybody can have kids."


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690