![]() |
NetCDF 4.10.1
|
An example program demonstrating a simple 2D write. More...

Go to the source code of this file.
Macros | |
| #define | ERR(e) |
| #define | ERRCODE 2 |
| #define | FILE_NAME "simple_xy.nc" |
| #define | NDIMS 2 |
| #define | NX 6 |
| #define | NY 12 |
Functions | |
| int | main () |
An example program demonstrating a simple 2D write.
This is a simple example which writes a 2D array of sample integer data. The companion program simple_xy_rd.c shows how to read the netCDF data file created by this program.
Full documentation for netCDF can be found at: https://docs.unidata.ucar.edu/netcdf-c.
Definition in file simple_xy_wr.c.
| #define ERR | ( | e | ) |
Definition at line 34 of file simple_xy_wr.c.
| #define ERRCODE 2 |
Definition at line 33 of file simple_xy_wr.c.
| #define FILE_NAME "simple_xy.nc" |
Definition at line 24 of file simple_xy_wr.c.
| #define NDIMS 2 |
Definition at line 27 of file simple_xy_wr.c.
| #define NX 6 |
Definition at line 28 of file simple_xy_wr.c.
| #define NY 12 |
Definition at line 29 of file simple_xy_wr.c.
| int main | ( | ) |
Definition at line 37 of file simple_xy_wr.c.