ucar.nc2.iosp.bufr.tables
Class CommonCodeTables

java.lang.Object
  extended by ucar.nc2.iosp.bufr.tables.CommonCodeTables

public class CommonCodeTables
extends Object

COMMON CODE TABLE C-1: Identification of originating/generating centre COMMON CODE TABLE C-12: Sub-Centres of Originating Centres COMMON CODE TABLE C-13: Data sub categories of categories defined by entries in BUFR Table A Table A: data categories Apparently C-11 is the same as C-1, but C-11 is for GRIB and C-1 is for BUFR

Since:
Dec 15, 2009
Author:
caron
See Also:
"http://www.wmo.int/pages/prog/www/WMOCodes/Operational/CommonTables/BufrCommon-11-2008.doc"

Constructor Summary
CommonCodeTables()
           
 
Method Summary
static String getCenterName(int center_id)
          Center name, from table C-1
static String getDataCategory(int cat)
          data category name, from table A
static String getDataSubcategoy(int cat, int subcat)
          data subcategory name, from table C-13
static String getSubCenterName(int center_id, int subcenter_id)
          Subcenter name, from table C-12
static void main(String[] arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonCodeTables

public CommonCodeTables()
Method Detail

getCenterName

public static String getCenterName(int center_id)
Center name, from table C-1

Parameters:
center_id - center id
Returns:
center name, or "unknown"

getSubCenterName

public static String getSubCenterName(int center_id,
                                      int subcenter_id)
Subcenter name, from table C-12

Parameters:
center_id - center id
subcenter_id - subcenter id
Returns:
subcenter name, or null if not found

getDataSubcategoy

public static String getDataSubcategoy(int cat,
                                       int subcat)
data subcategory name, from table C-13

Parameters:
cat - data category
subcat - data subcategory
Returns:
subcategory name, or null if not found

getDataCategory

public static String getDataCategory(int cat)
data category name, from table A

Parameters:
cat - data category
Returns:
category name, or null if not found

main

public static void main(String[] arg)
                 throws IOException
Throws:
IOException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.