netCDF  4.2.1.1
Defines | Functions
/usr/src/RPM/BUILD/libnetcdf7-seq-4.2.1.1/examples/C/simple_xy_nc4_wr.c File Reference

Write the simple_xy file, with some of the features of netCDF-4. More...

#include <stdlib.h>
#include <stdio.h>
#include <netcdf.h>

Go to the source code of this file.

Defines

#define FILE_NAME   "simple_xy_nc4.nc"
#define NDIMS   2
#define NX   60
#define NY   120
#define ERRCODE   2
#define ERR(e)   {printf("Error: %s\n", nc_strerror(e)); exit(ERRCODE);}

Functions

int main ()

Detailed Description

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. Please see the simple_xy example to learn more about the netCDF-3 API.

Like simple_xy_wr.c, this program writes a 2D netCDF variable (called "data") and fills it with sample data. It has two dimensions, "x" and "y".

Full documentation for netCDF can be found at: http://www.unidata.ucar.edu/netcdf/docs

Definition in file simple_xy_nc4_wr.c.

 All Data Structures Files Functions Variables Typedefs Defines

Generated on Sat Sep 15 2012 12:44:33 for netCDF. NetCDF is a Unidata library.