NetCDF: Difference between revisions

Jump to navigation Jump to search
137 bytes removed ,  6 years ago
Line 69: Line 69:


=== Example ===
=== Example ===
<syntaxhighlight lang="cpp" line highlight="1,2,7">
Here is a simple example demonstrating the compression with NetCDF. This program writes a 2D netCDF variable (called "data") and fills it
/**
Write the simple_xy file, with some of the features of netCDF-4.
This is a very simple example which is based on the simple_xy example,
but whch uses netCDF-4 features, such as compression.
This program writes a 2D netCDF variable (called "data") and fills it
with sample data.  It has two dimensions, "x" and "y".
with sample data.  It has two dimensions, "x" and "y".
   
   
Full documentation for netCDF can be found at:
Full documentation for netCDF can be found at:
http://www.unidata.ucar.edu/netcdf/docs
http://www.unidata.ucar.edu/netcdf/docs
*/
 
<syntaxhighlight lang="cpp" line highlight="">
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
Bureaucrats, cc_docs_admin, cc_staff
337

edits

Navigation menu