- 13 Feb, 2013 1 commit
-
-
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.
-
- 11 Feb, 2013 1 commit
-
-
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).
-
- 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 3 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)
-
- 30 Nov, 2012 1 commit
-
-
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.
-
- 31 Oct, 2012 1 commit
-
-
Mathias Bavay authored
Fixing a small bug/warning in libsmet and properly initializing the members in some plugins (through initialization lists, as usual).
-
- 29 Oct, 2012 1 commit
-
-
Mathias Bavay authored
-
- 07 Aug, 2012 1 commit
-
-
Mathias Bavay authored
New warnings have been tried to detect variable shadowing (one variable declared with the same name as another one), alignement issues, etc. This produces very verbose output (not all warnings are legitimate) but allowed to fix lots of cases of misalignement and shadowing issues. These options have been left in the CMakeLists but NOT enabled (since these warnings are not so easy to interpret).
-
- 04 Jun, 2012 1 commit
-
-
David Zanella authored
the to_rad and to_deg conversion coefficients have been added to meteoconst. Small fixes for popc (missing "using namespace" and more marshaling)
-
- 16 May, 2012 1 commit
-
-
Mathias Bavay authored
Fixed a division by zero in libsmet and the "none" resampling was broken (it was deleting all data instead of propagating available data). Fixed!
-
- 03 May, 2012 1 commit
-
-
Mathias Bavay authored
The Passive_T filter has been reworked and renamed as ProcPassiveT. A proper documentation has been written for it. All the cout have been replaced by cerr in order to avoid messing with the end user's application. Some old commented out code has been removed.
-
- 03 Apr, 2012 1 commit
-
-
Mathias Bavay authored
A bug was found in libsmet for Windows: if opening a file in ascii mode, end of lines are automatically translated, messing up our own effort to handle them, thus corrupting our readings. Now, all files are opened in binary mode.
-
- 06 Mar, 2012 1 commit
-
-
Mathias Bavay authored
The file extension (or none) can now be specified for GRIBIO. This is necessary for MeteoSwiss files that have no extensions. Better error messages in libsmet (by catching and rethrowing exceptions).
-
- 11 Feb, 2012 1 commit
-
-
Thomas Egger authored
Bugfix for libsmet and thus release of the readSpecialPoints function in SMETIO.cc. It is now possible to read a vector of Coords objects through SMETIO, the format of the SMET file could be something like this: SMET 1.1 ASCII [HEADER] station_id = my_pts epsg = 32632 nodata = -999 fields = easting northing altitude [DATA] 713700 5.05578e+06 0 730900 5.15678e+06 0 674200 5.06278e+06 0 674400 5.08078e+06 0
-
- 09 Feb, 2012 1 commit
-
-
Mathias Bavay authored
Fixed two small bugs, thanks to some warnings on my laptop: variables set, but not used and a hard coded value used instead (in obviously wrong ways)
-
- 17 Jan, 2012 1 commit
-
-
Mathias Bavay authored
-
- 18 Nov, 2011 1 commit
-
-
Mathias Bavay authored
A lot of writes were using std::endl for end of line, which forces a buffer flush. This lead to a visible performance cost (as shown by the profiling project made in collaboration with HES_SO). These have been replaced by "\n" that lets ostream manage its buffer as it wants.
-
- 16 Nov, 2011 1 commit
-
-
Mathias Bavay authored
More error checking: the offsets and multipliers must match the number of fields and the number of fields must match the true number of columns at each line
-
- 15 Nov, 2011 1 commit
-
-
Mathias Bavay authored
-
- 07 Nov, 2011 1 commit
-
-
Mathias Bavay authored
A bug was fixed in SMETIO: when given OLWR, it should have computed TSS, but it was not... (using the wrong MeteoData object). Documentation and error messages improvements. A new method was added to Atmosphere: virtualTemperatureFactor.
-
- 02 Nov, 2011 1 commit
-
-
Mathias Bavay authored
A new method, getExtension() has been added to IOUtils in order to return the extension of a given filename. This is used by the SMETIO and SNIO plugins to automatically add the proper extension to input file names if they don't already have one. The Median Average Deviation filter has been ported (and validated) to the new filtering infrastructure. Several error messages have been improved.
-
- 17 Oct, 2011 1 commit
-
-
Mathias Bavay authored
-
- 19 Sep, 2011 2 commits
-
-
Mathias Bavay authored
-
Thomas Egger authored
-
- 23 Aug, 2011 2 commits
-
-
Mathias Bavay authored
The CMakeLists were not making Visual C++ happy. This has been fixed. Several types issues have been fixed. The /Wp64 option of Visual C++ has been turned off, since it reports wrongly some things as errors (dixit Microsoft and my own experience).
-
Mathias Bavay authored
The OLWR hack for Norway has been implemented in SMETIO (a cleaner, long term solution will still have to be developed). Various types issues have been identified by Visual C++ and should have been fixed.
-
- 30 Jul, 2011 1 commit
-
-
Thomas Egger authored
An update of libsmet. Added SMETReader::get_filename() and SMETReader::get_header_intvalue(string key) with which a header value can be directly converted into an integer. Added libsmet.h to MeteoIO.h
-
- 28 Jul, 2011 3 commits
-
-
Thomas Egger authored
-
Thomas Egger authored
2) Speedup when reading large SMET ASCII files
-
Thomas Egger authored
A new library for dealing with SMET files has been developed. The plugin SMETIO builds on top of this library now. It provides: - A SMETReader class, to read SMET files and parse the header info - A SMETWriter class to write SMET files and set the header info The SMET library (libsmet.h and libsmet.cc) are completely independent from the rest of MeteoIO. They have their own exception handling and helper functions, thus they can easily be distributed to other parties wishing to read and write SMET files with C/C++.
-