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.
> Organization: Dept. Of Chem., U of Western Ontario > Keywords: 199401142233.AA24283 > Dear Mr. Davis: In the future, please direct netCDF questions to "address@hidden", so they will be sent to someone who can provide a timely response. Thanks. > I am sending this e-mail to ask your help. Recently, we are developing a > program that will be able to diagnose a GC system automatically. We decide > to use AIA formated data as our program's input, and an AIA software kit > has been installed in our computer (the compilation has been completed under > Microsoft C6.0 environment). The problem is: when we write some codes to test > part functions, such as ncopen, with Visual C++, the compilation s is no > problem, but the while running the code, the result shows that ncopen does > not work. No any error message comes out. Do your know why and how to solve > it. We have no direct connection with AIA, and are not very familiar with the software kit they are distributing. We have tested the current release under the Microsoft C 5.0 environment, and it passes all the tests performed by the "nctest" program, which includes many calls to ncopen. If you are using the C++ interface, you should not be using the ncopen function, but instead just the NcNewFile or NcOldFile constructors. If you are using the C interface and calling ncopen, you will have to provide us with more details to enable us to diagnose the problem, since we know ncopen is working fine in other codes developed with the AIA software kit. Does the AIA software kit include the nctest program, and if so, have you run it to verify the correct compilation of the library? If running the nctest program reveals problems, please send us the output, showing the error messages produced. If running nctest reveals no problems, then the problem is likely to be in the way ncopen is invoked. If the AIA software kit does not include the nctest program, does it include the nctest directory of sources, so you can compile and run the nctest program? If not, you may want to get a copy of the latest netCDF release via anonymous FTP from host: ftp.unidata.ucar.edu file: pub/netcdf/netcdf.tar.Z and use the nctest sources there to help narrow the problem down. --Russ __________________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden P.O. Box 3000 (303)497-8645 Boulder, Colorado 80307-3000