31 #include <boost/filesystem/operations.hpp> 42 (
"help",
"Produce help message")
43 (
"h5", value<string>()->default_value(
""),
"Input HDF5 dataset containing hyperspectral data.")
44 (
"gtif", value<string>()->default_value(
"gtif.tif"),
"Output GeoTIFF raster dataset containing hyperspectral data.")
45 (
"min", value<size_t>()->default_value(0),
"Minimum hyperspectral band to be included in conversion.")
46 (
"max", value<size_t>()->default_value(UINT_MAX),
"Maximum hyperspectral band to be included in conversion.")
47 (
"pos", value<string>()->default_value(
"00000"),
"5 character identification code of scan position to be converted.");
58 || !boost::filesystem::exists(boost::filesystem::path(
m_variables[
"h5"].as<string>()))
61 ::std::cout <<
m_descr << ::std::endl;
const kaboom::Options * options
variables_map m_variables
The internally used variable map.
positional_options_description m_pdescr
The internally used positional option description.
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
options_description m_descr
The internally used option description.