Closed ddshd closed 8 months ago
I believe isUnlimited
means that the dimension has a size but can grow and isVariableLength
means the size is not currently known, see here. So perhaps isVariableLength
is more what you are looking for?
Actually, let me walk back my last comment a bit-- I don't know if you should use isVariableLength
here-- it is usually used as the dimension for a variable that is a "ragged array" (see "VLEN" section here if you are interested).
But regardless, the behavior of isUnlimited
that you show is correct-- you need to specify a starting length for the dimension, though it is allowed to grow.
But regardless, the behavior of isUnlimited that you show is correct-- you need to specify a starting length for the dimension, though it is allowed to grow.
Is it possible to grow the variable after the file is already out of define mode? I'm facing an issue where it's not possible to write an array of 1D data greater than the size of the unlimited variable's initial variable.
Is it expected that we must know the max size of data we need to write (and to set it as the initial value of the unlimited variable) before going out of define mode?
Versions impacted by the bug
netcdfAll 5.5.3
What went wrong?
The following dimension in ncml file cannot be parsed by
ncml:
but adding
length="<some_n>"
to the above allows it to work, but negates the point of unlimited.Relevant stack trace
Relevant log messages
No response
If you have an example file that you can share, please attach it to this issue.
If so, may we include it in our test datasets to help ensure the bug does not return once fixed? Note: the test datasets are publicly accessible without restriction.
Yes
Code of Conduct