- 13 Feb, 2013 2 commits
-
-
Mathias Bavay authored
Now, when libsmet attemps to write a station that does not contain any data, it will complain but will not throw an exception (otherwise when working with large numbers of stations, the odds of getting an exception are too high). An implementation for fast cubic root is now part of Optim, but still has to be tested. Some code cleanup (using .empty(), using copy constructor instead of construct+copy) occured in IOUtils.
-
Mathias Bavay authored
-
- 11 Feb, 2013 2 commits
-
-
Mathias Bavay authored
Truncating the path+file down to file only for exceptions was not working on Windows (since the path delimiter is '\' instead of '/')
-
Mathias Bavay authored
Lots of small fixes after running cppcheck on Windows: unused variables, use ++i instead of i++ for complex types (ie mostly iterators for us) for more performance, a few variables that could be passed as const&, use vector.empty() instead of vector.size==0 (for clarity and potentially performances).
-
- 08 Feb, 2013 1 commit
-
-
Mathias Bavay authored
-
- 07 Feb, 2013 1 commit
-
-
Mathias Bavay authored
The plugins used to keep a reference to a config object as provided by IOManager. But this was triggering some warnings (reference to an object that might disappear outside of the constructor), therefore it has been replaced by a const copy (it is not yet 100% sure if this is really better, but at least the compilers won't complain). When a user was provinding IMISIO with a non-existing station name, the error messages were quite cryptic. In order to properly tell the user what happened, the code has been slightly reorganized. Some code clean up also took place in IMISIO.
-
- 02 Feb, 2013 1 commit
-
-
Mathias Bavay authored
-
- 01 Feb, 2013 1 commit
-
-
Mathias Bavay authored
All the "#ifdef(_WIN)" have been replaced by "#ifdef(WIN)" for consistency. The message box code for Windows and osX has been reorganized, the console messages are now better colorized and the backtrace comes before the error message itself.
-
- 31 Jan, 2013 2 commits
-
-
Mathias Bavay authored
On osx too, the exceptions can now produce a message box. Several warnings have been fixed (mostly signed/unisgned issues)
-
Mathias Bavay authored
When calling the what() of an exception on Windows, it now shows the message in a dialog box as well as printed in the terminal
-
- 30 Jan, 2013 1 commit
-
-
Mathias Bavay authored
The estimation of the average sampling rate was quite wrong: it was not correct for multiple stations or for partially empty buffers (ie giving an end date way beyond the real end of the data). It was also claiming to return a value in 1/s but instead it was 1/days. This now only takes into account the time interval when there is some data and properly handles multiple stations and returns a value in Hz (or 1/s). The documentation has been expanded. Also some code cleanup (constification).
-
- 29 Jan, 2013 1 commit
-
-
Thomas Egger authored
Bugfix in libinterpol1D.cc: "if (in_X.size()>0) B=in_X[1]" should read "if (in_X.size()>0) B=in_X[0]"
-
- 28 Jan, 2013 2 commits
-
-
Mathias Bavay authored
-
Mathias Bavay authored
The reason for the non-functionning popc version has been found: we have to manually set the cxx compiler to popcc.
-
- 24 Jan, 2013 3 commits
-
-
Mathias Bavay authored
-
Mathias Bavay authored
Some better error messages have been added to SMETIO as well as some code cleanup. Some comments have been added to IOManager, and missing popc code added to DEMObject and Date.
-
Mathias Bavay authored
-
- 22 Jan, 2013 1 commit
-
-
Mathias Bavay authored
The detection of popc has been improved, the ARC plugin can now handle empty lines in the data section (since some versions of ArcGis produce such files) and the exceptions now remove the full path in front of the source file name when reporting the source code location of an exception (so the users would be less confused by this Desktop\Bavay\etc).
-
- 10 Jan, 2013 1 commit
-
-
Mathias Bavay authored
A new example has been added, to show what can be done with grids. The popc version was broken, this has been fixed.
-
- 09 Jan, 2013 1 commit
-
-
Mathias Bavay authored
-
- 08 Jan, 2013 1 commit
-
-
Mathias Bavay authored
Added an extra error message in ImisIO and a new method for Config: keyExists() to check if a given key is present (instead of always reading a key with nothrow, etc)
-
- 07 Jan, 2013 1 commit
-
-
Mathias Bavay authored
Deleting the NROFSTATIONS from the example io.ini since this key is not used anymore and missleading...
-
- 11 Dec, 2012 1 commit
-
-
Mathias Bavay authored
-
- 09 Dec, 2012 1 commit
-
-
Thomas Egger authored
-
- 06 Dec, 2012 1 commit
-
-
Nander Wever authored
-
- 05 Dec, 2012 1 commit
-
-
Mathias Bavay authored
Improved an error message, improved the main documentation page by adding links to the home page, improved the code examples
-
- 04 Dec, 2012 1 commit
-
-
Mathias Bavay authored
The FileIndexer class still had some bug (such a surprise). It is now working properly. Some constification in libsmet
-
- 03 Dec, 2012 5 commits
-
-
Mathias Bavay authored
SMET now uses fully the new file indexer class and creates indexes at least every 2000 lines (as in SNIO)
-
Mathias Bavay authored
-
Mathias Bavay authored
Some warnings have been fixed in the tests and all 'string tmp=""' or 'tmp=""' have been replaced by either an empty constructor (that does the same ) or tmp.clear() (that does the same too)
-
Mathias Bavay authored
Fixing snowpack issue 285: a parenthesis was missing in the hour angle calculation and a special case for 24 hours sunlight or 24 hours night was missing. Both would only impact the sunrise, sunset and sunlight duration calculations (but could trigger an arithmetic exception).
-
Mathias Bavay authored
-
- 30 Nov, 2012 2 commits
-
-
Mathias Bavay authored
The FileIndexer class has been expanded to cater to the needs of SMET (it is not the most efficient, but for now...). A bug has been fixed that was leading to segfault. The explanation for the remaining slowness of SNIO has been found: the Config keys were re-read for every parsed line... It is now 10x faster, ie up to par with SMET (more or less).
-
Mathias Bavay authored
The indexing for SNIO and SMETIO was not working (because of BUFF_READ_BEFORE, we are almost never restarting exactly at the last read time step, but before). Moreover, SNIO was always reading the whole file, even past the specified dateEnd. This was extremely slow on large input file. This has been fixed. SNIO is still quite slow (it seems something like 10x compared to SMETIO), but it is much more acceptable. A file indexer class has been implemented in IOUtils.
-
- 28 Nov, 2012 1 commit
-
-
Mathias Bavay authored
some code cleanup in GSNIO, the warnings generated by soap are now turned off (with a hack to make old versions of gcc able to do it) and the plugins directory and component are now removed from the packaging
-
- 27 Nov, 2012 1 commit
-
-
Mathias Bavay authored
-
- 26 Nov, 2012 1 commit
-
-
Mathias Bavay authored
The Date class has been revereted in order to compute year, month, day, etc since this is useful when debugging. The external includes that are used for the plugins are now included as system headers in order to avoid generating warnings for some code that we are not responsible for.
-
- 23 Nov, 2012 1 commit
-
-
Mathias Bavay authored
The cubic B-spline image resampling algorithm has been implemented in ResamplingAlgorithms2D. Various Weffc++ warnings have been fixed in PNGIO, ImisIO and GRIBIO, leading to the suppression of unused variables.
-
- 22 Nov, 2012 1 commit
-
-
Mathias Bavay authored
The Suntrajectory now throws IOExceptions. A small bugfix for Android has been added to CMakeLists so it can compile in debug mode. The new domain name (models.slf.ch) is now used in the packages.
-
- 21 Nov, 2012 1 commit
-
-
Mathias Bavay authored
-