Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Cannot write nested structures to NetCDF-4 #298

Open
cwardgar opened this issue Nov 21, 2015 · 0 comments
Open

Cannot write nested structures to NetCDF-4 #298

cwardgar opened this issue Nov 21, 2015 · 0 comments

Comments

@cwardgar
Copy link
Contributor

cwardgar commented Nov 21, 2015

Demonstrated by TestNc4Structures.writeNestedStructure(), which I will be committing to 5.0.0 shortly. The test is currently ignored, until we resolve this issue.

The failure stems from here. The method doesn't create and add a Structure member variable, even if dtype == DataType.STRUCTURE. That's just the first method that'll need to be changed; there are several more downstream.

cwardgar pushed a commit to cwardgar/thredds that referenced this issue Nov 23, 2015
* Added tests to TestNc4Structures to demonstrate GitHub issues Unidata#296, Unidata#298, and
  Unidata#299.
* NetcdfFileWriter.addStructureMember() recalculates structure element size.
* NetcdfFileWriter.addStructure() renamed to addCopyOfStructure(), for clarity.
  Improved Javadoc.
* NetcdfFileWriter.addCopyOfStructure now propagates original structure's
  attributes.
* Removed debugging code from TestNc4IospWriting.writeEnumType().
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant