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.
> Greetings, > > I am looking at the Netcdf Tutorial > (http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-tutorial/index.html) > which has code examples but I do not see netcdf4 sample data. Is there > any? Where can I get it? > > Thanks very much, > --dan > > -- > Daniel Kahn > Science Systems and Applications Inc. > 301-867-2162 > All the example come in two parts, a write and a read program. Build and run the write program, and it will create the netCDF-4 file. The read program will read it. For a more tailored example, just add NC_NETCDF4 to the create mode flag for one of your programs that creates a netCDF file. If you do this, a netCDF-4/HDF5 file of the exact same data contents will be constructed. Good luck! Ed > Ticket Details =================== Ticket ID: SWB-752299 Department: Support netCDF Priority: Normal Status: Closed