From 49cf520a9765f2d3d79cc00f9f9aef585b1fb2de Mon Sep 17 00:00:00 2001 From: Tara Drwenski Date: Mon, 12 Jun 2023 11:41:22 -0600 Subject: [PATCH] Fix nested structures in NcStream --- cdm/core/src/main/java/ucar/nc2/stream/NcStreamDataCol.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cdm/core/src/main/java/ucar/nc2/stream/NcStreamDataCol.java b/cdm/core/src/main/java/ucar/nc2/stream/NcStreamDataCol.java index bb9d8e7cd3..65e45e5188 100644 --- a/cdm/core/src/main/java/ucar/nc2/stream/NcStreamDataCol.java +++ b/cdm/core/src/main/java/ucar/nc2/stream/NcStreamDataCol.java @@ -699,6 +699,9 @@ private void decodeMemberData(StructureMembers.Builder members, NcStreamProto.Da StructureMembers.MemberBuilder result = members.addMember(name, null, null, dataType, msection.getShape()); Array data = decode(memberData, parentSection); result.setDataArray(data); + if (data instanceof ArrayStructure) { + result.setStructureMembers(((ArrayStructure) data).getStructureMembers()); + } } }