NetCDF  4.9.2
simple_xy_nc4_rd.c File Reference

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

#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <netcdf.h>
Include dependency graph for simple_xy_nc4_rd.c:

Go to the source code of this file.

Macros

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

Functions

int main ()
 

Detailed Description

Read 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 which uses netCDF-4 features, such as compression. Please see the simple_xy example to learn more about the netCDF-3 API.

Like simple_xy_rd.c, this example reads a small dummy array, which was written by simple_xy_wr.c, and is compressed. This is intended to illustrate the use of the netCDF C API.

Full documentation for netCDF can be found at: https://docs.unidata.ucar.edu/netcdf-c.

Author
Ed Hartnett

Definition in file simple_xy_nc4_rd.c.