Package ucar.nc2.iosp.bufr.tables
Class BufrTables
- java.lang.Object
-
- ucar.nc2.iosp.bufr.tables.BufrTables
-
public class BufrTables extends Object
Reads BUFR tables of various forms. Interacts with TableLookup.Table B: csv---------- Class,FXY,enElementName,BUFR_Unit,BUFR_Scale,BUFR_ReferenceValue,BUFR_DataWidth_Bits,CREX_Unit,CREX_Scale,CREX_DataWidth,Status 00,000001,Table A: entry,CCITT IA5,0,0,24,Character,0,3,Operational ecmwf--------- 000001 TABLE A: ENTRY CCITTIA5 0 0 24 CHARACTER 0 3 000001 TABLE A: ENTRY CCITTIA5 0 0 24 CHARACTER 0 3 mel-bufr----------- 0; 7; 190; 1; -1024; 12; M; HEIGHT INCREMENT mel-tabs (tab delimited) --------------- F X Y Scale RefVal Width Units Element Name 0 0 1 0 0 24 CCITT_IA5 Table A: entry 0 0 2 0 0 256 CCITT_IA5 Table A: data category description, line 1 ncep----------- #==================================================================================================== # F-XX-YYY |SCALE| REFERENCE | BIT | UNIT | MNEMONIC ;DESC ; ELEMENT NAME # | | VALUE |WIDTH| | ;CODE ; #==================================================================================================== 0-00-001 | 0 | 0 | 24 | CCITT IA5 | TABLAE ; ; Table A: entry opera ---------------------------- 0;02;181;Supplementary present weather sensor;Flag-Table;0;0;21 0;07;192;Pixel size in Z-direction;Meters;-1;0;16 0;21;036;Radar rainfall intensity;mm*h-1;2;0;16 =============================================================== Table D: csv---------- SNo,Category,FXY1,enElementName1,FXY2,enElementName2,Status 1,00,300002,,000002,"Table A category, line 1",Operational ecmwf------------- 300002 2 000002 000003 300003 3 000010 000011 000012 mel-bufr------------ 3 1 192 optional_name 0 1 7 0 25 60 0 1 33 1 1 2 3 61 169 0 5 40 -1 ncep ------------------ #==================================================================================================== # F-XX-YYY | MNEMONIC ;DCOD ; NAME <-- sequence definition # | F-XX-YYY > | NAME <-- element definition (first thru next-to-last) # | F-XX-YYY | NAME <-- element definition (last) #==================================================================================================== 3-00-002 | TABLACAT ; ; Table A category definition | 0-00-002 > | Table A category, line 1 | 0-00-003 | Table A category, line 2 opera --------------- # Heights of side view 3;13;192; 1;01;000 ; ; ; 0;31;001 ; ; ; 0;10;007 # 4 bit per pixel radar images (top view) 3;21;192; 1;10;000 ...
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBufrTables.Formatstatic classBufrTables.Modestatic classBufrTables.TableConfigstatic classBufrTables.Tables
-
Constructor Summary
Constructors Constructor Description BufrTables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddLookupFile(String filename)static BufrTables.TablesgetLocalTables(int center, int subcenter, int master, int local, int cat)static BufrTables.TableConfig[]getTableConfigsAsArray()static List<BufrTables.TableConfig>getTables()static TableBgetWmoTableB(int masterTableVersion)static TableBgetWmoTableBlatest()static TableDgetWmoTableD(int masterTableVersion)static TableDgetWmoTableDlatest()static TableBreadTableB(String location, BufrTables.Format format, boolean force)static TableDreadTableD(String location, BufrTables.Format format, boolean force)
-
-
-
Method Detail
-
addLookupFile
public static void addLookupFile(String filename) throws FileNotFoundException
- Throws:
FileNotFoundException
-
getTables
public static List<BufrTables.TableConfig> getTables()
-
getTableConfigsAsArray
public static BufrTables.TableConfig[] getTableConfigsAsArray()
-
getLocalTables
public static BufrTables.Tables getLocalTables(int center, int subcenter, int master, int local, int cat) throws IOException
- Throws:
IOException
-
getWmoTableBlatest
public static TableB getWmoTableBlatest()
-
getWmoTableB
public static TableB getWmoTableB(int masterTableVersion) throws IOException
- Throws:
IOException
-
readTableB
public static TableB readTableB(String location, BufrTables.Format format, boolean force) throws IOException
- Throws:
IOException
-
getWmoTableDlatest
public static TableD getWmoTableDlatest()
-
getWmoTableD
public static TableD getWmoTableD(int masterTableVersion) throws IOException
- Throws:
IOException
-
readTableD
public static TableD readTableD(String location, BufrTables.Format format, boolean force) throws IOException
- Throws:
IOException
-
-