public String getWmoTableBName() { return tlookup.getWmoTableBName(); }
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()); */ }
public TableB.Descriptor getDescriptorTableB(short fxy) { TableB.Descriptor b = null; boolean isWmoRange = Descriptor.isWmoRange(fxy); if (isWmoRange && (mode == BufrTables.Mode.wmoOnly)) { b = wmoTableB.getDescriptor(fxy); } else if (isWmoRange && (mode == BufrTables.Mode.wmoLocal)) { b = wmoTableB.getDescriptor(fxy); if ((b == null) && (localTableB != null)) b = localTableB.getDescriptor(fxy); } else if (isWmoRange && (mode == BufrTables.Mode.localOverride)) { if (localTableB != null) b = localTableB.getDescriptor(fxy); if (b == null) b = wmoTableB.getDescriptor(fxy); else b.setLocalOverride(true); } else if (!isWmoRange) { if (localTableB != null) b = localTableB.getDescriptor(fxy); } if (b == null && showErrors) System.out.printf(" TableLookup cant find Table B descriptor = %s in tables %s, %s mode=%s%n", Descriptor.makeString(fxy), getLocalTableBName(), getWmoTableBName(), mode); return b; }