This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>From: address@hidden >Organization: ? >Keywords: 199706161859.MAA14113 netCDF Cray J20 Hi, > I am trying to install a software to read data files in netcdf > format. My platform is CRAY J20 9.0.2.0. The software links the > netcdf library (our version is 2.3.2). The software passed the > compiling and can be run. But the output is wrong. The apparent > problem comes from integer*2 array. For example, the software call > call ncvgt(inet,ivar,start,count,idata,icode) > where idata is a 2-dimensional integer*2 array. Unfortunately, in > CRAY there is no integer*2. I compile the software using -i64 > option (all integer has 64 bits = 8 byte length, The CRAY default > integer length is 48 bits = 6 bytes). Thus the idata array is > expected to output each element value of about 100 to 1000 range. > The software actuary output value of 4160749568. Could you help me > to resolve this problem? Yes, I suggest you get the latest release of netCDF, version 3.3.1, available from ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf.tar.Z This has been tested on a J90 under 9.2.0.3 (or 9.0.2.3?) and there are detailed instructions about what compiler flags were required to get it to work in the INSTALL file included as part of the software. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu