![]() |
NetCDF 4.9.3
|
Write the simple_xy file, with some of the features of netCDF-4. More...
Go to the source code of this file.
Macros | |
#define | ERR(e) |
#define | ERRCODE 2 |
#define | FILE_NAME "simple_xy_nc4.nc" |
#define | NDIMS 2 |
#define | NX 6 |
#define | NY 12 |
Functions | |
int | main () |
Write the simple_xy file, with some of the features of netCDF-4.
This is a very simple example which is based on the simple_xy example, but which uses netCDF-4 features, such as compression. Please see the simple_xy example to learn more about the netCDF-3 API.
Like simple_xy_wr.c, this program writes a 2D netCDF variable (called "data") and fills it with sample data. It has two dimensions, "x" and "y".
Full documentation for netCDF can be found at: https://docs.unidata.ucar.edu/netcdf-c.
Definition in file simple_xy_nc4_wr.c.
#define ERR | ( | e | ) |
Definition at line 36 of file simple_xy_nc4_wr.c.
#define ERRCODE 2 |
Definition at line 35 of file simple_xy_nc4_wr.c.
#define FILE_NAME "simple_xy_nc4.nc" |
Definition at line 26 of file simple_xy_nc4_wr.c.
#define NDIMS 2 |
Definition at line 29 of file simple_xy_nc4_wr.c.
#define NX 6 |
Definition at line 30 of file simple_xy_nc4_wr.c.
#define NY 12 |
Definition at line 31 of file simple_xy_nc4_wr.c.
int main | ( | ) |
Definition at line 39 of file simple_xy_nc4_wr.c.