#include <GRIB.h>
Public Methods | |
GRIB_MESSAGE () | |
Constructor. | |
~GRIB_MESSAGE () | |
Destructor. | |
int | Decode (unsigned char *message, size_t reclen) |
Decode a message. Not to be used. | |
void | Encode () |
Encode a message. Not to be used. | |
void | set_grid (GRIB_GRID &grid) |
Set the grid. | |
void | set_grid (int code) |
void | set_time (GRIB_TIME >ime) |
Set time. | |
void | set_level (GRIB_LEVEL &level) |
Set vertical level of grid. | |
void | set_field (GRIB_FIELD &field) |
Set the field to be stored. | |
Public Attributes | |
size_t | reclen |
Overall message record lenght. | |
unsigned char * | message |
Encoded message. | |
GRIB_GRID | grid |
The grid (local storage. Filled on set and on ReadMessage). | |
GRIB_LEVEL | level |
The level (local storage. Filled on set and on ReadMessage). | |
GRIB_TIME | gtime |
The time (local storage. Filled on set and on ReadMessage). | |
GRIB_FIELD | field |
The field (local storage. Filled on set and on ReadMessage). |
Definition at line 1027 of file GRIB.h.
|
Constructor.
|
|
Destructor.
Definition at line 1661 of file GRIB.cpp. References message. |
|
Decode a message. Not to be used.
Definition at line 1663 of file GRIB.cpp. References BDS_LEN, BMS_LEN, GRIB_FIELD::Decode(), GRIB_GRID::Decode(), GRIB_LEVEL::Decode(), GRIB_TIME::Decode(), field, GDS_LEN, grid, gtime, level, message, GRIB_GRID::nxny, PDS_HAS_BMS, PDS_HAS_GDS, PDS_LEN, and reclen. Referenced by GRIB_FILE::ReadMessage(). |
|
Encode a message. Not to be used.
Definition at line 1702 of file GRIB.cpp. References BDS_LEN, BMS_LEN, GRIB_FIELD::center, GRIB_FIELD::decimalscale, GRIB_GRID::Encode(), GRIB_LEVEL::Encode(), GRIB_TIME::Encode(), field, GDS_LEN, GRIB_LEVEL_UNKNOWN, GRIB_PARAMETER_UNKNOWN, GRIB_TIMEUNIT_UNKNOWN, grid, GRIB_GRID::grid_code, gtime, level, message, mk_BDS(), mk_BMS(), mk_PDS(), PDS_LEN, GRIB_FIELD::process, reclen, GRIB_FIELD::size, GRIB_FIELD::subcenter, GRIB_FIELD::table, GRIB_TIME::timeunit, GRIB_LEVEL::type, GRIB_FIELD::undef_high, GRIB_FIELD::undef_low, GRIB_FIELD::vals, GRIB_FIELD::varcode, WGRIB_ENCODE_2BYTES, WGRIB_ENCODE_BYTE, WGRIB_ENCODE_END, WGRIB_ENCODE_INIT, and WGRIB_ENCODE_S2BYTES. Referenced by GRIB_FILE::WriteMessage(). |
|
Set the field to be stored.
Definition at line 1936 of file GRIB.cpp. References GRIB_FIELD::binscale, GRIB_FIELD::decimalscale, field, GRIB_FIELD::numbits, GRIB_FIELD::refvalue, GRIB_FIELD::size, GRIB_FIELD::undef_high, GRIB_FIELD::undef_low, GRIB_FIELD::vals, GRIB_FIELD::varcode, GRIB_FIELD::vardesc, GRIB_FIELD::varname, and GRIB_FIELD::varunit. |
|
@grib Set the grid (using pre-defined grid).
|
|
|
Set vertical level of grid.
Definition at line 1928 of file GRIB.cpp. References level, GRIB_LEVEL::lv1, GRIB_LEVEL::lv2, and GRIB_LEVEL::type. |
|
Set time.
Definition at line 1909 of file GRIB.cpp. References GRIB_TIME::day, gtime, GRIB_TIME::hour, GRIB_TIME::minute, GRIB_TIME::month, GRIB_TIME::naveraged, GRIB_TIME::nmissing, GRIB_TIME::p1, GRIB_TIME::p1p2, GRIB_TIME::p2, GRIB_TIME::reftime, GRIB_TIME::timerange, GRIB_TIME::timestring, GRIB_TIME::timeunit, and GRIB_TIME::year. |
|
The field (local storage. Filled on set and on ReadMessage).
Definition at line 1076 of file GRIB.h. Referenced by Decode(), Encode(), and set_field(). |
|
The grid (local storage. Filled on set and on ReadMessage).
Definition at line 1070 of file GRIB.h. Referenced by Decode(), Encode(), and set_grid(). |
|
The time (local storage. Filled on set and on ReadMessage).
Definition at line 1074 of file GRIB.h. Referenced by Decode(), Encode(), and set_time(). |
|
The level (local storage. Filled on set and on ReadMessage).
Definition at line 1072 of file GRIB.h. Referenced by Decode(), Encode(), and set_level(). |
|
Encoded message.
Definition at line 1067 of file GRIB.h. Referenced by Decode(), Encode(), GRIB_MESSAGE(), GRIB_FILE::WriteMessage(), and ~GRIB_MESSAGE(). |
|
Overall message record lenght.
Definition at line 1064 of file GRIB.h. Referenced by Decode(), Encode(), GRIB_MESSAGE(), and GRIB_FILE::WriteMessage(). |