18 #include <boost/timer/timer.hpp> 19 #include <boost/regex.hpp> 33 int main(
int argc,
char *argv[])
44 std::string product(
"MOD13Q1");
46 boost::filesystem::path mpath(
""TE_DATA_EXAMPLE_DIR
"\\data\\modis\\MOD13");
49 msearch(mpath, product,
"", modis_files);
52 "HDF4_EOS:EOS_GRID:\"",
53 "\":MODIS_Grid_16DAY_250m_500m_VI:250m 16 days NDVI");
61 const unsigned char* values = 0;
62 const std::vector<boost::gregorian::date>*
times = 0;
64 boost::timer::cpu_timer timer;
66 d.
query(longitude, latitude, &values, ×);
68 std::string wallt = timer.format();
70 std::cout <<
"\ttimeline generated in: " << wallt << std::endl;
79 const unsigned char* values = 0;
80 const std::vector<boost::gregorian::date>*
times = 0;
82 boost::timer::cpu_timer timer;
84 d.
query(longitude, latitude, &values, ×);
86 std::string wallt = timer.format();
88 std::cout <<
"\ttimeline generated in: " << wallt << std::endl;
99 const unsigned char* values = 0;
100 const std::vector<boost::gregorian::date>*
times = 0;
102 boost::timer::cpu_timer timer;
104 d.
query(longitude, latitude, &values, ×);
106 std::string wallt = timer.format();
108 std::cout <<
"\ttimeline generated in: " << wallt << std::endl;
120 catch(
const std::exception& e)
122 std::cout << std::endl <<
"An exception has occurried: " << e.what() << std::endl;
124 std::cout <<
"tecle algo: " << std::endl;
134 std::cout <<
"tecle algo: " << std::endl;
const te::rst::Grid * grid() const
std::map< std::string, std::map< std::string, std::map< std::string, std::string > > > ProdHVDate
void query(const double &longitude, const double &latitude, const unsigned char **values, const std::vector< boost::gregorian::date > **times) const
double getResolutionY() const
Returns the grid vertical (y-axis) resolution.
Coord2D getCenter() const
It returns the rectangle's center coordinate.
void finalize()
It finalizes the TerraLib Platform.
static PluginManager & getInstance()
It returns a reference to the singleton instance.
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
std::complex< double > times(std::complex< double > lhs, std::complex< double > rhs)
void initialize()
It initializes the TerraLib Platform.
te::gm::Envelope * getExtent()
Returns the geographic extension of the grid.
void LoadModules()
It loads the data source drivers.
This file contains include headers for the TerraLib Common Runtime module.
int main(int argc, char *argv[])
The basic information about a plugin.
This file contains include headers for the Vector Geometry model of TerraLib.
void modis_print(const unsigned char *values, const std::vector< boost::gregorian::date > *times)
void msearch(const boost::filesystem::path &mpath, std::string product, std::string hv, ProdHVDate &fnames)
TEPLUGINEXPORT PluginInfo * GetInstalledPlugin(const std::string &pluginFilePath)
It returns information about a given plugin provided its plugin configuration file name or dir...