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.
Unidata Support <address@hidden> writes: > ------- Forwarded Message > > >To: address@hidden > >From: "Kirk Alford" <address@hidden> > >Subject: netCDF Windows - Installing Net CDF > >Organization: UCAR/Unidata > >Keywords: 200411051647.iA5GlZwO000227 > > Institution: CMS Field Products > Package Version: 3.6 > Operating System: Windows XP > Hardware Information: Pentium 4 > Inquiry: To Whom It May Concern: > > I am currently trying to install NetCDF onto my computer so that I can > use it to format data into a form that can be used with AMDIS_32. I > have fought with NetCDF for the past three days and have had no luck > building an executable with any version or the already built dlls. I > am also having trouble with comprehending the install README file. > What I am asking for is further elaboration on installing NetCDF and > the easiest way to get a working executable on my computer. As far as > development suites go, I have LabWindows/CVi, Microsoft Visual > Studio.net, and JGrasp. Any help would be greatly appreciated. Thank > you for your time. The difficulties on PCs are usually caused by the development environments. To install the dll, just drop it in \windows\system32. To install the ncdump and ncgen executables, drop them anywhere in your path (or in \windows\system32, if you're feeling lazy). That's it - the dll is installed. Now the problem is how to use it... In visual studio.net you import the library from the project properties page, put the netcdf.h file in your code directory, and define the preprocessor value DLL_NETCDF. (In VS.NET terms the netcdf library is unmanaged code). I don't have LabWindows or JGrasp. Try looking in their documentation for ways to import dlls of C functions. You may need to create their equivalent of C prototypes. If JGrasp is Java based, perhaps the Java version of netcdf would be more helpful? I don't know enough about JGrasp to say. Ed Hartnett Unidata