private void addVariableAttributes(TagGroup group, Vinfo vinfo) 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")) { Attribute att = makeAttribute(vh); if (null != att) { vinfo.v.addAttribute(att); if (att.getShortName().equals(CDM.FILL_VALUE)) vinfo.setFillValue(att); } } } } }
private void addVariableAttributes(TagGroup group, Vinfo vinfo) 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")) { Attribute att = makeAttribute(vh); if (null != att) { vinfo.v.addAttribute(att); if (att.getShortName().equals(CDM.FILL_VALUE)) vinfo.setFillValue(att); } } } } }
private void addVariableAttributes(TagGroup group, Vinfo vinfo) 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")) { Attribute att = makeAttribute(vh); if (null != att) { vinfo.v.addAttribute(att); if (att.getShortName().equals(CDM.FILL_VALUE)) vinfo.setFillValue(att); } } } } }
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; }
TagVH vh = (TagVH) tag; if (vh.className.startsWith("Att")) { Attribute att = makeAttribute(vh); if (null != att) group.addAttribute(att); } else if (tag.vinfo != null) {
TagVH vh = (TagVH) tag; if (vh.className.startsWith("Att")) { Attribute att = makeAttribute(vh); if (null != att) group.addAttribute(att); } else if (tag.vinfo != null) {
TagVH vh = (TagVH) tag; if (vh.className.startsWith("Att")) { Attribute att = makeAttribute(vh); if (null != att) group.addAttribute(att); } else if (tag.vinfo != null) {