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: "Matt Kennedy" <address@hidden> >Subject: cannot find g++ >Organization: NOAA >Keywords: 200312221430.hBMEUbp2027556 netCDF Linux g++ Hi Matt, > The beta built fine!!! Thanks! > > Is there a newer users guide than the one at > http://www.unidata.ucar.edu/packages/netcdf/guide.txn_toc.html > for changes reflected in the new versions? The Fortran-90 Users Guide at http://www.unidata.ucar.edu/packages/netcdf/f90/Documentation/f90-html-docs/ is the most up-to-date, with some extra sections and more correct information on writing netCDF files larger than 2 Gbytes. The latest C, Fortran-77, and C++ documentation is still from 1997, unfortunately, but those interfaces haven't changed since then. There is a good up-to-date netCDF Java User Manual at http://www.unidata.ucar.edu/packages/netcdf-java/v2.1/NetcdfJavaUserManual.htm > Is there any code samples or tutorials on the ucar site? No tutorials, and very few examples. On my to-do list is developing some exemplary examples for new users to supplement the documentation. The Fortran-90 Users Guide has more complete examples that the C or Fortran-77 guides, which have fragmentary examples with each section. There is a C++ example in the distribution in src/cxx/example.cpp You should also look at http://www.unidata.ucar.edu/packages/netcdf/BestPractices.html to see some Best Practices for creating netCDF files. One way to get a simple example is to just cut and paste the example CDL file from Chapter 2 of the User's Guide, that starts netcdf example_1 { // example of CDL notation for a netCDF dataset dimensions: // dimension names and lengths are declared first lat = 5, lon = 10, level = 4, time = unlimited; and put it in a file named example_1.cdl. Then to see an example of a C program that would create the corresponding netCDF file, just run ncgen -c example_1.cdl > example_1.c and similarly for Fortran and "ncgen -f". You can do the same with CDL files you create yourself. --Russ