NetCDF  4.6.3
 All Data Structures Files Functions Variables Typedefs Macros Modules Pages
simple_nc4_rd.c File Reference

Read a simple 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.

Macros

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

Functions

int main ()
 

Detailed Description

Read a simple file, with some of the features of netCDF-4.

This is a very simple example which demonstrates some of the new features of netCDF-4.0.

This example reads a simple file created by simple_nc4_wr.c. This is intended to illustrate the use of the netCDF-4 C API.

This is part of the netCDF package. Copyright 2006-2018 University Corporation for Atmospheric Research/Unidata. See COPYRIGHT file for conditions of use. Full documentation of the netCDF can be found at http://www.unidata.ucar.edu/software/netcdf/docs.

Definition in file simple_nc4_rd.c.


Return to the Main Unidata NetCDF page.
Generated on Sat Apr 6 2019 08:19:00 for NetCDF. NetCDF is a Unidata library.