staxWriter.writeCharacters(message.getCenterName()); staxWriter.writeEndElement();
public void dumpHeaderShort(Formatter out) { out.format(" %s, Cat= %s, Center= %s (%s), Table= %d.%d.%d %n", getHeader(), getCategoryName(), getCenterName(), getCenterNo(), ids.getMasterTableId(), ids.getMasterTableVersion(), ids.getLocalTableVersion()); }
public void dumpHeader(Formatter out) { out.format(" BUFR edition %d time= %s wmoHeader=%s %n", is.getBufrEdition(), getReferenceTime(), getHeader()); out.format(" Category= %d %s %s %n", ids.getCategory(), getCategoryName(), getCategoryNo()); out.format(" Center= %s %s %n", getCenterName(), getCenterNo()); out.format(" Table= %d.%d local= %d wmoTables= %s,%s localTables= %s,%s %n", ids.getMasterTableId(), ids.getMasterTableVersion(), ids.getLocalTableVersion(), lookup.getWmoTableBName(),lookup.getWmoTableDName(),lookup.getLocalTableBName(),lookup.getLocalTableDName()); out.format(" DDS nsubsets=%d type=0x%x isObs=%b isCompressed=%b\n", dds.getNumberDatasets(), dds.getDataType(), dds.isObserved(), dds.isCompressed()); }
public void dump(Formatter out) throws IOException { int listHash = dds.getDataDescriptors().hashCode(); out.format(" BUFR edition %d time= %s wmoHeader=%s hash=[0x%x] listHash=[0x%x] (%d) %n", is.getBufrEdition(), getReferenceTime(), getHeader(), hashCode(), listHash, listHash); out.format(" Category= %s %n", getCategoryFullName()); out.format(" Center= %s %n", getCenterName()); out.format(" Table= %s %n", getTableName()); out.format(" Table B= wmoTable= %s localTable= %s mode=%s%n", lookup.getWmoTableBName(), lookup.getLocalTableBName(), lookup.getMode()); out.format(" Table D= wmoTable= %s localTable= %s%n", lookup.getWmoTableDName(), lookup.getLocalTableDName()); out.format(" DDS nsubsets=%d type=0x%x isObs=%b isCompressed=%b\n", dds.getNumberDatasets(), dds.getDataType(), dds.isObserved(), dds.isCompressed()); long startPos = is.getStartPos(); long startData = dataSection.getDataPos(); out.format(" startPos=%d len=%d endPos=%d dataStart=%d dataLen=%d dataEnd=%d %n", startPos, is.getBufrLength(), (startPos + is.getBufrLength()), startData, dataSection.getDataLength(), startData +dataSection.getDataLength()); dumpDesc(out, dds.getDataDescriptors(), lookup, 4); out.format("%n CDM Nested Table=\n"); DataDescriptor root = new DataDescriptorTreeConstructor().factory(lookup, dds); dumpKeys(out, root, 4); /* int nbits = m.getTotalBits(); int nbytes = (nbits % 8 == 0) ? nbits / 8 : nbits / 8 + 1; out.format(" totalBits = %d (%d bytes) outputBytes= %d isVarLen=%s isCompressed=%s\n\n", nbits, nbytes, root.getByteWidthCDM(), root.isVarLength(), m.dds.isCompressed()); */ }
ncfile.addAttribute(null, new Attribute("BUFR:subCategory", subcat)); ncfile.addAttribute(null, new Attribute("BUFR:localSubCategory", proto.ids.getLocalSubCategory())); ncfile.addAttribute(null, new Attribute("BUFR:centerName", proto.getCenterName())); ncfile.addAttribute(null, new Attribute("BUFR:center", proto.ids.getCenterId())); ncfile.addAttribute(null, new Attribute("BUFR:subCenter", proto.ids.getSubCenterId()));