Example netCDF programs
Below we provide links to some sample netCDF programs.
- Write a two-dimensional array of sample data that looks like simple_xy.cdl:
- Read data from the simple file written above:
- Write some variables with units attributes and coordinate
dimensions that will look like sfc_pres_temp.cdl:
- Read data variables and attributes from the file written above:
- Write some four-dimensional variables using a record dimension
in a file that will look like pres_temp_4D.cdl:
- Read from the variables in the file written above:
- Test MATLAB native support for netCDF-4: nc4test.m
- Copy any netCDF classic or 64-bit offset file, using only the
netCDF-3 API:
- Copy any netCDF file, using the netCDF-4 API:
- Write profile data according to CF Conventions version 1.6,
Appendix H:
Last modified: Wed Mar 19 13:24:20 MDT 2014