Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a variable to an existing nc file #149

Open
jbensabat opened this issue Mar 8, 2024 · 0 comments
Open

adding a variable to an existing nc file #149

jbensabat opened this issue Mar 8, 2024 · 0 comments

Comments

@jbensabat
Copy link

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:

  • the version of the software with which you are encountering an issue
  • environmental information (i.e. Operating System, compiler info, java version, python version, etc.)
  • a description of the issue with the steps needed to reproduce it

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant