private void addGlobalAttributes(TagVGroup group) throws IOException { // look for attributes for (int i = 0; i < group.nelems; i++) { Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i])); if (tag == null) throw new IllegalStateException(); if (tag.code == 1962) { TagVH vh = (TagVH) tag; if (vh.className.startsWith("Att")) { String lowername = vh.name.toLowerCase(); if ((vh.nfields == 1) && (H4type.setDataType(vh.fld_type[0], null) == DataType.CHAR) && ((vh.fld_isize[0] > 4000) || lowername.startsWith("archivemetadata") || lowername.startsWith("coremetadata") || lowername.startsWith("productmetadata") || lowername.startsWith("structmetadata"))) { ncfile.addVariable(null, makeVariable(vh)); // // large EOS metadata - make into variable in root group } else { Attribute att = makeAttribute(vh); if (null != att) ncfile.addAttribute(null, att); // make into attribute in root group } } } } group.used = true; }
private void addGlobalAttributes(TagVGroup group) throws IOException { // look for attributes for (int i = 0; i < group.nelems; i++) { Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i])); if (tag == null) throw new IllegalStateException(); if (tag.code == 1962) { TagVH vh = (TagVH) tag; if (vh.className.startsWith("Att")) { String lowername = vh.name.toLowerCase(); if ((vh.nfields == 1) && (H4type.setDataType(vh.fld_type[0], null) == DataType.CHAR) && ((vh.fld_isize[0] > 4000) || lowername.startsWith("archivemetadata") || lowername.startsWith("coremetadata") || lowername.startsWith("productmetadata") || lowername.startsWith("structmetadata"))) { ncfile.addVariable(null, makeVariable(vh)); // // large EOS metadata - make into variable in root group } else { Attribute att = makeAttribute(vh); if (null != att) ncfile.addAttribute(null, att); // make into attribute in root group } } } } group.used = true; }
private void addGlobalAttributes(TagVGroup group) throws IOException { // look for attributes for (int i = 0; i < group.nelems; i++) { Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i])); if (tag == null) throw new IllegalStateException(); if (tag.code == 1962) { TagVH vh = (TagVH) tag; if (vh.className.startsWith("Att")) { String lowername = vh.name.toLowerCase(); if ((vh.nfields == 1) && (H4type.setDataType(vh.fld_type[0], null) == DataType.CHAR) && ((vh.fld_isize[0] > 4000) || lowername.startsWith("archivemetadata") || lowername.startsWith("coremetadata") || lowername.startsWith("productmetadata") || lowername.startsWith("structmetadata"))) { ncfile.addVariable(null, makeVariable(vh)); // // large EOS metadata - make into variable in root group } else { Attribute att = makeAttribute(vh); if (null != att) ncfile.addAttribute(null, att); // make into attribute in root group } } } } group.used = true; }
Variable v = makeVariable(vgroup); if (v != null) vars.add(v); TagVH tagVH = (TagVH) t; if (tagVH.className.startsWith("Data")) { Variable v = makeVariable(tagVH); if (v != null) vars.add(v); Variable v = makeVariable((TagGroup) t); if (v != null) vars.add(v); TagVH vh = (TagVH) t; if (!vh.className.startsWith("Att") && !vh.className.startsWith("_HDF_CHK_TBL")) { Variable v = makeVariable(vh); if (v != null) vars.add(v);
Variable v = makeVariable(vgroup); if (v != null) vars.add(v); TagVH tagVH = (TagVH) t; if (tagVH.className.startsWith("Data")) { Variable v = makeVariable(tagVH); if (v != null) vars.add(v); Variable v = makeVariable((TagGroup) t); if (v != null) vars.add(v); TagVH vh = (TagVH) t; if (!vh.className.startsWith("Att") && !vh.className.startsWith("_HDF_CHK_TBL")) { Variable v = makeVariable(vh); if (v != null) vars.add(v);
Variable v = makeVariable(vgroup); if (v != null) vars.add(v); TagVH tagVH = (TagVH) t; if (tagVH.className.startsWith("Data")) { Variable v = makeVariable(tagVH); if (v != null) vars.add(v); Variable v = makeVariable((TagGroup) t); if (v != null) vars.add(v); TagVH vh = (TagVH) t; if (!vh.className.startsWith("Att") && !vh.className.startsWith("_HDF_CHK_TBL")) { Variable v = makeVariable(vh); if (v != null) vars.add(v);