I have to create a netCDF file with different subsets. For example subset1 must be a 2d matrix, subset2 a vector, etc.
I am using functions of netcdf library in C/C++ code:
nc_create for the file creation,
nc_def_dim for dimensions definition,
nc_def_var for variable (subsets) definition.
Can you indicate me an example code which creates more variables with several dimensions?
I didn't find it.