Skip to content

adding a variable to an existing nc file  #149

Description

@jbensabat

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions