![]() |
NetCDF 4.9.3-rc1
|
Write a file demonstrating some of the features of netCDF-4. More...
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.nc" |
| #define | NX 6 |
| #define | NY 12 |
Functions | |
| int | main () |
Write a file demonstrating some of the features of netCDF-4.
This is a simple example which reads a small dummy array, which was written by simple_xy_wr.c. 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.
Definition in file simple_xy_rd.c.
| #define ERR | ( | e | ) | {printf("Error: %s\n", nc_strerror(e)); exit(ERRCODE);} |
Definition at line 30 of file simple_xy_rd.c.
| #define ERRCODE 2 |
Definition at line 29 of file simple_xy_rd.c.
| #define FILE_NAME "simple_xy.nc" |
Definition at line 21 of file simple_xy_rd.c.
| #define NX 6 |
Definition at line 24 of file simple_xy_rd.c.
| #define NY 12 |
Definition at line 25 of file simple_xy_rd.c.
| int main | ( | ) |
Definition at line 33 of file simple_xy_rd.c.