libwreport
2.4
|
00001 /* 00002 * wreport/codetables - Code table constants 00003 * 00004 * Copyright (C) 2011 ARPA-SIM <urpsim@smr.arpa.emr.it> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 * 00019 * Author: Enrico Zini <enrico@enricozini.com> 00020 */ 00021 00022 #ifndef WREPORT_CODETABLES 00023 #define WREPORT_CODETABLES 00024 00030 namespace wreport { 00031 00032 // 7 bit, leftmost is bit 1 00033 namespace BUFR08001 { 00035 00036 const unsigned int MISSING = 0x01; /* 7 */ 00037 const unsigned int SIGWIND = 0x02; /* 6 */ 00038 const unsigned int SIGTH = 0x04; /* 5 */ 00039 const unsigned int MAXWIND = 0x08; /* 4 */ 00040 const unsigned int TROPO = 0x10; /* 3 */ 00041 const unsigned int STD = 0x20; /* 2 */ 00042 const unsigned int SURFACE = 0x40; /* 1 */ 00043 const unsigned int ALL_MISSING = 0x7f; 00045 } 00046 00047 // 18 bit, leftmost is bit 1 00048 namespace BUFR08042 { 00050 00051 const unsigned int MISSING = 0x00001; /* 18 */ 00052 const unsigned int H2PRESS = 0x00002; /* 17 */ 00053 const unsigned int RESERVED = 0x00004; /* 16 */ 00054 const unsigned int REGIONAL = 0x00008; /* 15 */ 00055 const unsigned int TOPWIND = 0x00010; /* 14 */ 00056 const unsigned int ENDMISSW = 0x00020; /* 13 */ 00057 const unsigned int BEGMISSW = 0x00040; /* 12 */ 00058 const unsigned int ENDMISSH = 0x00080; /* 11 */ 00059 const unsigned int BEGMISSH = 0x00100; /* 10 */ 00060 const unsigned int ENDMISST = 0x00200; /* 9 */ 00061 const unsigned int BEGMISST = 0x00400; /* 8 */ 00062 const unsigned int SIGWIND = 0x00800; /* 7 */ 00063 const unsigned int SIGHUM = 0x01000; /* 6 */ 00064 const unsigned int SIGTEMP = 0x02000; /* 5 */ 00065 const unsigned int MAXWIND = 0x04000; /* 4 */ 00066 const unsigned int TROPO = 0x08000; /* 3 */ 00067 const unsigned int STD = 0x10000; /* 2 */ 00068 const unsigned int SURFACE = 0x20000; /* 1 */ 00069 const unsigned int ALL_MISSING = 0x3ffff; 00071 } 00072 00073 } 00074 00075 /* vim:set ts=4 sw=4: */ 00076 #endif