Unidata / netcdf-cxx4

Official GitHub repository for netCDF-C++ libraries and utilities.
Other
124 stars 49 forks source link

adding a variable to an existing nc file #149

Open jbensabat opened 4 months ago

jbensabat commented 4 months ago

Hello I have a nc file which has many variables with dimension NC_UNLIM, nx, ny I am trying to add an additional variable with same dimensions: I retrieve the dimensions from an another variable and get a std::vector Then I define the new variable and initialize it with a default value. In the updated file the new variable has the dimensions NC_UNLIMnxny but the size is 0nxny while the other variables have the size 1nxny I guess I am doing something wrong but I can't manage to figure out any help would be appreciated best jac

To report a non-security related issue, please provide:

If you have a general question about the software, please view our Suggested Support Process.