- 02 Aug, 2010 1 commit
-
-
Thomas Egger authored
Introduced new template function get(key, section) and get(key) to the Config class, it should make reading of values easier: Config cfg("io.ini"); vector<int> = cfg.get("DEPTHS", "INPUT", Config::nothrow); string mystr = cfg.get("PATH", "OUTPUT");
-
- 28 Jul, 2010 1 commit
-
-
Thomas Egger authored
The keys and sections within a Config object are now case insensitive, the values remain case sensitive.
-
- 26 Jul, 2010 1 commit
-
-
Thomas Egger authored
-
- 19 Jul, 2010 1 commit
-
-
Mathias Bavay authored
The EPSG get and set methods have been added to Coords. The "<<" operator has been redefined for ConfigReader (this is convenient for debugging). The SMETIO plugin has been updated (so that it supports EPSG codes and also to change some column names and improve the foutput formatting). Some documentation has been added and the example data set has been replaced by a data set suitable for the whole Switzerland and in SMET format.
-
- 16 Jul, 2010 1 commit
-
-
Thomas Egger authored
Bugfix: Inside the ConfigReader keys were added to the properties map by using the this pointer. That leads to some weird behaviour when copying the ConfigReader object. Solution: Don't use the this pointer on private member variables if not necessary. IOUtils.h: getValueForKey now internally uses find when searching the map<string,string>, it used to do a cast, not being able to distinguish between a key with no value and a non-existent key. Now a key value pair like this is allowed: TEST = i.e. an empty value.
-
- 28 Jun, 2010 1 commit
-
-
Thomas Egger authored
Added new plugin for WSMDF format. gzipped version of format currently not supported. binary version works, but since the julian date does not fit into a 4 byte (32bit) float, it is unusable. ASCII format works, although unit_multiplier and unit_offset are currently not supported. For location information the easting, northing version is not yet supported. Added function IOUtils::stripComments(string&) it, deletes everything after # or ; from the string&
-
- 24 Jun, 2010 1 commit
-
-
Thomas Egger authored
Changes to StationData: new string stationID (shortname) to describe a station in short, stationName shall be used for long description of a station. changes required an adaptation within the plugins Changes to ConfigReader: comments may appear anywhere (also after key value pairs or section names), everything after a '#' or ';' is disregarded. PGMIO: small fix: xllcorner mixed up with yllcorner FilterAlgorithms: extrapolate algorithm refined
-
- 21 Jun, 2010 1 commit
-
-
Thomas Egger authored
Overall all include statements within in the library have been replaced by angle brackets, the default install path for the include file is $CMAKE_INSTALL_DIR/include/meteoio, the meteoio libraries (static and shared) will be installed in $CMAKE_INSTALL_DIR/lib per default. The plugins will be installed in the subdirectory $CMAKE_INSTALL_DIR/lib/meteoio/plugins
-
- 15 Jun, 2010 1 commit
-
-
Mathias Bavay authored
LegacyIO has now finally been removed!! (Hurrah! Freedom!). This version has also a few hacks so that it successfully compiles with POPC (there were still issues with the namespaces)
-
- 28 May, 2010 1 commit
-
-
Mathias Bavay authored
Then, the remaining namespace issues with doxygen have been fixed, by enclosing the full class implementation in the namespace (as seen for the libstdc++). This removes all these irritating issues. But the popc version has been broken by the change (as seen in LegacyIO).
-
- 21 Apr, 2010 1 commit
-
-
Thomas Egger authored
Changed the name of the Date_IO class to Date. In case of namespace conflicts, just use mio::Date to reference the MeteoIO Date class.
-
- 16 Feb, 2010 1 commit
-
-
Mathias Bavay authored
The class Stationdata now properly uses the new Coords class. All usual dependencies have been fixed (A3DIO.cc) but not (yet) the optional plugins. The Coords class has been modified so that it computes the matching coordinates as soon as possible instead of the previous implementation that was delaying it as much as possible (thus making "const Coords..." impossible). The includes have been cleaned up (compilation was failing because of multiple "using namespace" in header files) and all "using namespace" have been removed from header files (please don't put any of these back!!). The doxygen comments has been updated.
-
- 18 Jan, 2010 1 commit
-
-
Thomas Egger authored
void interpolate(const MeteoData::Parameters& meteoparam, Grid2DObject& result); The new Meteo2DInterpolator class parses the ConfigReader object passed to it and stores all possible algorithms for each MeteoData variable (user configured). In the next step the user configured algorithms shall be invoked and a quality estimator chooses the most appropiate of the algorithms to interpolate the 2D grid for a given meteo parameter. Adjustments needed to be made to the ConfigReader class (function findKeys) and a few comments have been added to MeteoFilter for more clarity of the ConfgReader parsing process.
-
- 13 Jan, 2010 2 commits
-
-
Mathias Bavay authored
The successfull call of MeteoIO from Java has been implemented by Cyril Perot but needed a few adjustments in MeteoIO. This commit makes the said adjustments: a few more "#ifdef _POPC_", a missing ConfgReader.addKey(key, section, value) and some previously private members of Meteo2DInterpolator now exposed. The plugin unloading sections have been protected by ifndef _METEOIO_JNI because the current implementation of such Java integration uses JNI and does its own plugin loading/unloading.
-
Mathias Bavay authored
In an effort to make ConfigReader more flexible, its interface has been expanded: it is now possible to read several files into one ConfigReader, or to manually add key/value pairs and it is planned that a string containing command line arguments could be given to populate the internal map of ConfigReader.
-
- 11 Dec, 2009 1 commit
-
-
Mathias Bavay authored
A new slope computation algorithm has bee added: CARD It computes the slope using Corripio and then discretizes the azimuth along 8 cardinal directions and the slope by degrees. This should be all that GEOtop needs for its drainage direction (then simply calling a dem.update("CARDINAL")). The copyright notices have been put in place in all files (headers and cc) with proper attribution of copyright. The documentation has been improved, specially fixing issue 22. Warning messages of doxygen have been fixed. An example subdirectory has been created in /doc and contains (currently) 2 examples of code using MeteoIO.
-
- 21 Oct, 2009 1 commit
-
-
Thomas Egger authored
Added another function to ConfigReader: findKeys. This function enables to search for certain keys in the key value map stored inside a ConfigReader object. e.g. findKeys(vecString, "TA::", "Filters"); //will return all keys starting with "TA::" in section [Filters]
-
- 06 Sep, 2009 2 commits
-
-
Thomas Egger authored
-
Thomas Egger authored
IMPORTANT: the io.ini files need to be changed: either no section header at all or [General] instead of [Parameters] ConfigReader: * able to deal with sections * if no section indicated in file then it defaults to section "GENERAL" * getValue can deal with sections * there is an option to turn off the throwing of exceptions in getValue IOUtils: * toUpper(string& str) converts a string to uppercase
-
- 14 Aug, 2009 1 commit
-
-
Mathias Bavay authored
The popc version now works (thanks Laurent for your help!!). A small warning has been removed (base class instantiation). The autotools configuration has been slightly improved (checking for pkg-config only if needed). The meteoio_demo demo program has been fixed so that it works with the newest version of the library.
-
- 13 Aug, 2009 1 commit
-
-
Mathias Bavay authored
Another round of fixes for the popc version. A few tricks have been implemented (using typedefs to make popc's parser accept some inputs, making ConfigReader more flexible so it would be easier to implement some possibily necessary tricks later on, etc). A warning (unused parameter) have been removed from A3DIO
-
- 12 Aug, 2009 2 commits
-
-
Mathias Bavay authored
Some more fixes for the popc version... Implementing missing marshaling functions, and a few tricks to make it work with popc... A new file has been added, IOPlugin.h, so that this definition is common to popc and regular c++.
-
Mathias Bavay authored
Trying to make the popc version work again... by adjusting the popc code to the latest changes. It does not work yet.
-
- 10 Jul, 2009 1 commit
-
-
Laurent Winkler authored
-
- 07 Jul, 2009 1 commit
-
-
Mathias Bavay authored
*lack of virtual destructor for FilterValue (also missing for some other filters, but not triggering any warnings). A closer look would be welcomed into these destructors... *unsigned ints are badly handled by convertString: it returns -999 as nodata, which is not good... calls for unsigned ints have been replaced by calls to int, with a check for nodata manually performed. A better solution would be needed for the long term (return -1 for unsigned_nodata?). *strings indexes are now using a specific type for this, std::string::size_type. This is better than assuming unsigned int
-
- 28 May, 2009 1 commit
-
-
Moustafa Mbengue authored
Nothing special, just some re-indentation in order to make the code lines clear and easy to run and understand.
-
- 26 May, 2009 2 commits
-
-
Moustafa Mbengue authored
The whole library has been given its new name and several classes have been renamed in order to better match their purpose. The Makefile has been modified accordingly.
-
Mathias Bavay authored
-