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.
>To: address@hidden >From: Shoji Makino <address@hidden> >Subject: Q: How to use netCDF on Windows95? >Organization: JEOL Ltd., Japan >Keywords: 199712181219.FAA25060 Hi, > I am a programmer work for JEOL Ltd. > This company is a manufacturer of analytical instruments. > > I would like to use "andi/MS" tool kit on Windows95. > The tool kit uses netCDF V2.3.2, and provides source codes and makefile > for various UNIX and MS-DOS. > > I successfully build ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/maks.zip > to make DLL, but sample program of andi/MS shows run-time error as bellow: > > ncdimid: ncid 3: Invalid dimension id or name > > I also try the following netCDF library from > ftp.jasco.co.jp/pub/NetCDF/Win32DLL/netcdf-3.3a/bin/: > > *pre-compiled DLL(netCDF V3.3 from) > --> same run-time error > > *pre-compiled static library (netCDF V2.4.1) > --> ncdimid: dim "group_number" not found > > I can build netCDF V2.3.2 and run the sample program on HP-UX I expected. > > I wonder if you give me any information to use such toolkit > with latest version ofnetCDF library on Windows95. I don't know anything about the sample program for andi/MS (it was developed by someone else and never made available to us), so I cannot duplicate the above error. After you have installed the netCDF library, does the "make test" work? That's what we use to verify whether the library has been built correctly. It runs a sequence of tests on all the netCDF interfaces. The "Invalid dimension id or name" might arise from trying to call one of the netCDF dimension functions with an invalid dimension ID, for example trying to find the name of the fifth dimension in a netCDF file that only had four dimensions. Is it possible that the test file you are using to run the andi/MS test is corrupted or truncated, making the test fail? A more recent DLL for netcdf-3.3 is netcdf3.3Win32DLL.zip available from: ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/netcdf3.3Win32src.zip so you might try that. Sorry I can't be more helpful. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu