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

Example program for reading a 4D netCDF file. More...

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

Go to the source code of this file.

Defines

#define FILE_NAME   "pres_temp_4D.nc"
#define NDIMS   4
#define NLAT   6
#define NLON   12
#define LAT_NAME   "latitude"
#define LON_NAME   "longitude"
#define NREC   2
#define REC_NAME   "time"
#define LVL_NAME   "level"
#define NLVL   2
#define PRES_NAME   "pressure"
#define TEMP_NAME   "temperature"
#define UNITS   "units"
#define DEGREES_EAST   "degrees_east"
#define DEGREES_NORTH   "degrees_north"
#define SAMPLE_PRESSURE   900
#define SAMPLE_TEMP   9.0
#define START_LAT   25.0
#define START_LON   -125.0
#define UNITS   "units"
#define PRES_UNITS   "hPa"
#define TEMP_UNITS   "celsius"
#define LAT_UNITS   "degrees_north"
#define LON_UNITS   "degrees_east"
#define MAX_ATT_LEN   80
#define ERR(e)   {printf("Error: %s\n", nc_strerror(e)); return 2;}

Functions

int main ()

Detailed Description

Example program for reading a 4D netCDF file.

This is an example which reads some 4D pressure and temperatures. The data file read by this program is produced by the companion program pres_temp_4D_wr.c. It is intended to illustrate the use of the netCDF C API.

This is part of the netCDF package. Copyright 2006-2011 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 pres_temp_4D_rd.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.