Classes | |
class | FeltField |
class | FeltFile |
class | FeltGridDefinition |
Typedefs | |
typedef short int | word |
A felt block "word" - 2 bytes. | |
typedef boost::shared_ptr < FeltGridDefinition > | FeltGridDefinitionPtr |
Functions | |
bool | isUndefined (word w) |
boost::array< float, 6 > | gridParameters (int gridType, int xNum, int yNum, int a, int b, int c, int d, const std::vector< short int > &extraData) |
std::string | gridParametersToProjDefinition (int gridType, const boost::array< float, 6 > &gridPars) |
std::ostream & | contentSummary (std::ostream &out, const FeltGridDefinition &grid) |
template<typename T> | |
T | get (word w) |
boost::posix_time::ptime | parseTime (const word *data) |
boost::posix_time::ptime | parseTimeNoThrow (const word *data) |
Variables | |
const size_t | blockWords = 1024 |
const size_t | blockSize = blockWords * sizeof(word) |
const size_t | offsetToContentDefinition = 2 |
const double | PI = M_PI |
const double | EARTH_RADIUS = 6371000. |
typedef boost::shared_ptr<FeltGridDefinition> felt::FeltGridDefinitionPtr |
typedef short int felt::word |
A felt block "word" - 2 bytes.
std::ostream& felt::contentSummary | ( | std::ostream & | out, | |
const FeltGridDefinition & | grid | |||
) |
T felt::get | ( | word | w | ) | [inline] |
boost::array<float, 6> felt::gridParameters | ( | int | gridType, | |
int | xNum, | |||
int | yNum, | |||
int | a, | |||
int | b, | |||
int | c, | |||
int | d, | |||
const std::vector< short int > & | extraData | |||
) |
retrieve the 6 gridparameters from the felt-data
gridType | id of the grid, (header[8] < 1000) ? header[8] : (int) header[8] / 1000 | |
xNum | number of points in x-direction, header[9] | |
yNum | number of points in x-direction, header[10] | |
a | used for different depending on gridType, header[14] | |
b | used for different depending on gridType, header[15] | |
c | used for different depending on gridType, header[16] | |
d | used for different depending on gridType, header[17] | |
extraData | data at the end of the data-region, used for high resolution information (header[8] < 1000) ? 0 : header[8] % 1000 |
std::string felt::gridParametersToProjDefinition | ( | int | gridType, | |
const boost::array< float, 6 > & | gridPars | |||
) |
convert the libmi-gridparameters to proj4 strings
gridType | type defining the projection (1..6) | |
gridPars | array containing libmi's six gridparameters |
bool felt::isUndefined | ( | word | w | ) | [inline] |
Is the given word a "missing" value? This means that there exist no valid data for the given point
boost::posix_time::ptime felt::parseTime | ( | const word * | data | ) |
boost::posix_time::ptime felt::parseTimeNoThrow | ( | const word * | data | ) |
const size_t felt::blockSize = blockWords * sizeof(word) |
const size_t felt::blockWords = 1024 |
const double felt::EARTH_RADIUS = 6371000. |
earth-radius in m, taken from libmi rearth.f
const size_t felt::offsetToContentDefinition = 2 |
const double felt::PI = M_PI |
mathematical pi