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

A simple example of writing a netCDF file. More...

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

Go to the source code of this file.

Defines

#define FILE_NAME   "sfc_pres_temp.nc"
#define NDIMS   2
#define NLAT   6
#define NLON   12
#define LAT_NAME   "latitude"
#define LON_NAME   "longitude"
#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 ERR(e)   {printf("Error: %s\n", nc_strerror(e)); return 2;}

Functions

int main ()

Detailed Description

A simple example of writing a netCDF file.

This example writes some surface pressure and temperatures. It is intended to illustrate the use of the netCDF C API. The companion program sfc_pres_temp_rd.c shows how to read the netCDF data file created by this program.

Copyright 2006 University Corporation for Atmospheric Research/Unidata. See COPYRIGHT file for conditions of use.

Definition in file sfc_pres_temp_wr.c.

 All Data Structures Files Functions Variables Typedefs Defines

Generated on Tue Aug 6 2013 11:40:57 for netCDF. NetCDF is a Unidata library.