- 22 Aug, 2011 1 commit
-
-
Mathias Bavay authored
More size_t related issues have been found (thanks to the new snowpack server) and fixed. Basically, please remember that any variable used with/for the return value of a call to size() MUST be of type size_t (this becomes specially relevant in 64 bits). The water triple point pressure has been updated to a better value.
-
- 16 Aug, 2011 4 commits
-
-
Mathias Bavay authored
Cleaning up the CMakeLists, adding a version string as well as a new method: getLibVersion() to get the said version string (with compilation date and time). A BuildVersion cmake macro has been written and will be shared with snowpack (and later with alpine3d).
-
Mathias Bavay authored
Several HACKS have been removed (either the HACK had been fixed but the comment was still there, or it has now been fixed, or after more (careful) consideration, it has been decided that the HACK was not a HACK)
-
Mathias Bavay authored
Better error messages when compiling in debug as well as for dimensions issues (adding arrays of incompatible dimensions, invalid subset, etc)
-
Mathias Bavay authored
The VW_MAX field was not properly handled in SMETIO. The failure count has been slightly improved in SNIO (to decrease the number of failures when a model could recover: if ILWR is not provided but TSS is, we don't count it as a failure anymore). The implementation of the krigging is moving forward. A bug has been found and fixed in Fit1D, a variogram is now computed (but not using a true covariance, which prevents our krigging from properly working). The #define NOSAFECHECKS have been deleted and replaced by a definition by the CMakeLists when in debug mode. This means that when compiling in debug mode, the code will be quite slower but will properly check and report out of bounds access in tables and matrix.
-
- 08 Aug, 2011 1 commit
-
-
Mathias Bavay authored
A Fit1D object is now created by specifying which regression model to use through an enum. Assignment operators as well as copy constructors have also been implemented (and tested). The config.dox file has been updated by doxygen to match more recent doxygen versions and syntax.
-
- 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 4 commits
-
-
Thomas Egger authored
-
Thomas Egger authored
2) Speedup when reading large SMET ASCII files
-
Thomas Egger authored
-
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++.
-
- 27 Jul, 2011 1 commit
-
-
Mathias Bavay authored
A (more) intelligent handling of buffered grids has been implemented: the grids are stored in the equivalent of a circular buffer of a given size (user defined, or 10 by default). This prevents running out of memory when processing large numbers of grids! A method for computing quantiles has been implemented in libinterpol1D. A vector of data has to be provided as well as a vector of the desired quantiles (ex: 0.25, 0.5, 0.75) and a vector of values for these quantiles will be returned. So far, the algorithm that is used produces the same results as R in default operations. The possibility of choosing which quantiles algorithms might be added in the future. The getJulianDayNumber method was just totally wrong... This has been fixed. One can also force a GMT day of year with a flag. Finally, some documentation has been written/updated.
-
- 26 Jul, 2011 1 commit
-
-
Thomas Egger authored
-
- 20 Jul, 2011 1 commit
-
-
Mathias Bavay authored
Some methods have been moved into another class (like the simple linear interpolation between two points that is now in ResamplingAlgorithms), some renammed (like the new weightedMean that replaces the ill-nammed "linearInterpolate"). The regression model based on two segments is now part of libinterpol1D and has been renammed. More regression models have been implemented. The "initFit" method of Fit1D has been renammed in "fit" and the setGuess method now turns fit_ready to true, so that a user can force his provided parameters to be used by a given model (do a setGuess() with the parameters, then call f(x) without calling "fit", so no internal fit of the parameters would be performed).
-
- 19 Jul, 2011 4 commits
-
-
Mathias Bavay authored
-
Mathias Bavay authored
Reorganizing all the statistical elements... this commit won't compile, this is just to move files around. Wait for next commit before updating!
-
Thomas Egger authored
Bugfix: The nr_stations variable was not initialized in all use cases but then used to resize vec_streampos. This lead to a std::bad_alloc and a seg fault when trying to load SMETIO for writing only (in_meteo != "SMET").
-
Thomas Egger authored
Speed optimizations when reading data with the GEOtop plugin are now more elaborate. This leads to significant performance gains when reading meteo data in GEOtop format.
-
- 18 Jul, 2011 1 commit
-
-
Mathias Bavay authored
The standard linear regression as well as our tweaked "noisy linear" regression have been integrated into the Fit1D class. This means that we should now only use this class for statistical models. The implementation that is in libinterpol1D will be moved into libfitCore.
-
- 15 Jul, 2011 1 commit
-
-
Mathias Bavay authored
The 1D regression component is now coming into shape: the Fit1D class receives two vectors (of X and Y), compute a specified regression model, then transparently provides modelled values (calling fit1D.f()). Introducing a new regression model consists of implementing this f() method as well as a method computing initial guesses. A new method has been introduced in libInterpol1D that computes the derivative of a data set, given a vector of X and a vector of Y. Another method has been implemented to sort such two vectors in order of increasing X. Partial pivoting has been implemented in Matrix, and complete pivoting has been started but is not finished yet (it will throw an exception if used).
-
- 07 Jul, 2011 1 commit
-
-
Mathias Bavay authored
The Welcome and Readme texts have been swapped. A new index file has been made for the html documentation, that sits above the html directory and redirects to the proper page. Some unnecessary (and commented) lines for cpack have been cleaned up. A warning has been silenced for Visual C++ (float to double cast in the Quake3 optimized square root).
-
- 06 Jul, 2011 1 commit
-
-
Nander Wever authored
Bug fix: a station info file with white spaces at the beginning of a line would not have been read correctly.
-
- 05 Jul, 2011 3 commits
-
-
Nander Wever authored
-
Nander Wever authored
The www.climaps.com download page was changed. The previous script was not working anymore on newly downloaded data. Now it should work again.
-
Mathias Bavay authored
-
- 04 Jul, 2011 1 commit
-
-
Mathias Bavay authored
The slope calculation in DEMObject was not nodata-compliant because of a bug. This has been fixed. The installation by components (cpack) was not working properly, this has been fixed (capitalization of the components' names). A welcome info has been added (this is a plus for some installer generated by cpack).
-
- 30 Jun, 2011 1 commit
-
-
Mathias Bavay authored
Spatial resampling has been added. This is still quite primitive (no end-user front end or interaction, only nearest neighbor or bilinear), but can nevertheless be convenient. Since the "round" function call was needed, the VC++ implementation has been moved to IOUtils so no matter what is the compiler, we can use "round" in the code (this is NOT in the IOUtils namespace, but still in the mio namespace). Several obsolte comments/hacks have been removed and the DEBUG_ARITHM flag commented out, since it does not belong into a library (this is per process, not per object). The VC++ "equivalent" flag still needs to be checked (ie: is it per process or per object?). A missing "required" flag for cmake for Oracle has been added. Finally, the lsm file had been forgotten in the last release... this is now in order.
-
- 24 Jun, 2011 2 commits
-
-
Mathias Bavay authored
-
Mathias Bavay authored
Fixed a doxygen warning on Windows, pushed version number to 2.1.0 (because 2.0.1 would not make any sense anymore). This version should be the 2.1.0 release.
-
- 23 Jun, 2011 1 commit
-
-
Mathias Bavay authored
Finally, after learning that DLLs are not libraries but runtimes (at least for cmake), the Windows packaging works. All the generated files are back in lib, and the example Makefile and io.ini have been modified accordingly.
-
- 20 Jun, 2011 1 commit
-
-
Mathias Bavay authored
The treatment of NODATA points in Arrays is now controled by a simple boolean, set using "setKeepNodata". This should be easier than the previous commits that require a special type for how to process NODATA. The arrays are also now properly marshaled (ie: the keep_nodata flag is kept through marshaling).
-
- 18 Jun, 2011 1 commit
-
-
Mathias Bavay authored
A new generic method "getArraySliceParams" has been added to IOUtils. This method computes the indices for splitting an array in several, balanced sub-arrays. This is what is needed to distribute a computation on an array among several computers. This method computes the indices in one dimension, if the user wants to split along several dimensions, he can just call it again on another dimension (the splitting being usually only along one dimension).
-
- 16 Jun, 2011 3 commits
-
-
Mathias Bavay authored
-
Mathias Bavay authored
Fixed some warnings that appeared with the previous commit. A missing method has now been implemented in Array3D. The example io.ini is now up to date with the code structure (ie: looking for the plugins in the proper subdirectory)
-
Mathias Bavay authored
The nodata handling strategy was not thoroughly implemented: aritmetic operators were not compliant. In order to fix it, a property now records how to handle nodata for each object. A setter method is available. All operations now properly handle it. The Grid2D and Grid3D objects now have a (x,y) and (x,y,z) method for direct access to their gridded values. This should make it easier to switch a Grid object with an Array in a piece of code. With the latest changes in CMakeLists, the examples could not be built anymore. This has been fixed in the examples Makefile (but the io.ini plugin path stil has to be fixed).
-
- 10 Jun, 2011 3 commits
-
-
Nander Wever authored
This update now correctly resamples PSUM. Previously, it was taken as a sum, now it takes an average. The latter is consistent with the units [mm/h].
-
Mathias Bavay authored
The POPC parallel object version of MeteoIO has been removed: now the library can be compiled with popc so that all marshalling code is present, but it does NOT create a parallel object of its own. This means that the caller is 100% responsible for deciding what should go into its own parallel object. Some documentation has been updated as well as better error messages in smetio. The CMakeLists have been reworked according to some comments from the cmake mailing list.
-
Nander Wever authored
This update corrects the calculation of PSUM. From now on, it follows SMET specification, with PSUM being mm/hour. (In the previous version, it was mm per time step.)
-
- 08 Jun, 2011 2 commits
-
-
Nander Wever authored
-
Nander Wever authored
Instead of using GMT time stamps, the script now uses the epoch time from the downloaded files. Using the GMT time stamp, the time zone is determined. Output in SMET is now default in UTC+<time zone> and neglecting DST.
-