- 08 Sep, 2009 1 commit
-
-
Mathias Bavay authored
A parameter has been added to DEMObject::update in order to specify which algorithm to use. It can either take a member from a specifc enum or a string like "HICK" or "CORRIPIO". The isSameGeolocalization method has been added to Grid2DObject in order to allow comparing the geolocalization attributes of two grids. It does not compare the xllcorner/yllcorner parameters since these might have been tweaked for convenience. The code checking the match between lat/long and xll/yll has been commented out since this prevents the correct operations when using a local grid. This method (checkCoordinates) will have to be completely redesigned. The ISWR and LWR methods have been uncommented for the Meteo2DInterpolator. The (very dirty) hack that would have interpreted the grid coordinates differently depending on their value (as lat/long or swiss coordinates) in ARCIO and GRASSIO has been removed (this is now replaced by the much cleaner projection class). If the COORDPARAM key is missing in the io.ini file, it is quietly ignored instead of throwing an exception. The meteoio_demo program has been updated to reflect these changes
-
- 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
-
- 05 Sep, 2009 1 commit
-
-
Laurent Winkler authored
* Changed method call to readDEM so that polymorphism is not used anymore.
-
- 04 Sep, 2009 2 commits
-
-
Mathias Bavay authored
An annoying information message has been removed from BufferedIOHandler. The readMeteoData(date, vecMeteo, vecStation) method of IOHandler (ie: unbuffered) is now correctly implemented. The local grid reprojection of the meteoio_demo has now been commented out since its correct operation has been verified. The ImisIO plugin has been reorganized in order to get more similar to the other plugins. It still does not work with the new BufferedIOHandler, but work on that will follow...
-
Laurent Winkler authored
Modif for parallel version. Dynamic libraries are now compiled separately to avoid a huge bug due to differences in some headers files.
-
- 02 Sep, 2009 1 commit
-
-
Mathias Bavay authored
Added the begining of an implementation of readMeteoData(data, vecMeteo, vecStation) to IOHandler. This should be mostly used for teaching purpose or for benchmarking. An error message was added when A3DIO fails to get the COORDIN/COORDPARAM parameter (makes it much easier to track down). The reading of ARPS files implemented in LegacyIO was not matching the files that are in used, it has been fixed (slightly different format).
-
- 01 Sep, 2009 1 commit
-
-
Mathias Bavay authored
The original InputFileDrift routines used for reading data from ARPS had been altered when transfering them to MeteoIO (actually, before). They were therefore not able to read original files anymore... This has been fixed in this release that allows reading data from Michi's Gaudergrat campaign.
-
- 28 Aug, 2009 2 commits
-
-
Thomas Egger authored
-
Thomas Egger authored
Attempt to get rid of warnings ala: class BufferedIOHandler' has virtual functions but non-virtual destructor
-
- 27 Aug, 2009 1 commit
-
-
Mathias Bavay authored
-
- 26 Aug, 2009 2 commits
-
-
Thomas Egger authored
COORDIN = CH1903 OPTIONAL: COORDPARAM = whatever parameters are necessary
-
Thomas Egger authored
* MapProj is a new class that deals with all kinds of map projections (some can be implemented directly, like CH1903, others can be based on the Proj.4 library) * changes in map projections made it necessary to adapt the children of IOInterface that have an implementation of readMeteoData or read2DGrid
-
- 25 Aug, 2009 1 commit
-
-
Mathias Bavay authored
The spatial interpolation class has been modified so that it works with Grid2DObjects instead of Array2D. This makes room for being able (one day) to work with a DEM bigger than the requested grid... (yes, this would be so sexy!) Warnings have been silenced in GrassIO.cc
-
- 20 Aug, 2009 4 commits
-
-
Thomas Egger authored
No commit message
-
Thomas Egger authored
Fixed a few bugs in GrassIO - it will remain unusable until the new coordinate reprojection calculations are committed
-
Thomas Egger authored
-
Thomas Egger authored
NON workin submit of the GRASS plugin, together with the necessary modifications in configure.ac and Makefile.in
-
- 19 Aug, 2009 1 commit
-
-
Mathias Bavay authored
Added a Date_IO::toString method that takes a flag in order to determine the format of the date: currently, either ISO or NUM for a purely numeric output. Fixed some warnings in ARCIO and fixed some (currently unused) flags in the Makefile.in
-
- 18 Aug, 2009 2 commits
-
-
Mathias Bavay authored
-
Mathias Bavay authored
Suppressed some newly introduced warnings and fixed the documentation so doxygen does not complain anymore...
-
- 17 Aug, 2009 3 commits
-
-
Thomas Egger authored
* this functionality has previously subsided in A3DIO, where it has been deleted and moved to ARCIO * to reference this plugin in io.ini use "ARC" * to reference A3DIO in io.ini use "A3D" instead of "FILE" e.g. METEOSRC = A3D * edited Makefile.in and configure.ac to deal with the new plugin
-
Mathias Bavay authored
In order to get MeteoIO to work with popc, BufferedIOHandler had to be tweaked (only for the popc version). Missing definitions in Laws have been added (so that it is synchronized with the one in snowpack_core).
-
Thomas Egger authored
* in order to be able to compile under Windows, the "printf"s in the Makefile.in were changed to "echo" * the Makefile currently cannot link the plugins correctly on a windows platform, a separate Makefile.win32 seems to be necessary * IOHandler doesn't call any functions that are platform dependent when loading the plugins, or displaying error messages. All platform specific aspects are dealt with in DynamicLibrary.cc and DynamicLibrary.h (a lot of "#ifdef WIN32" conditionals)
-
- 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 2 commits
-
-
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
-
Thomas Egger authored
Cleanup of header files: no namespace should ever be used in header files, please make the namespace explicitly visible through the scope operator (::)! e.g. instead of using vector<string> vecString, please use std::vector<std::string> in the header files
-
- 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 Aug, 2009 2 commits
-
-
Thomas Egger authored
- please use ./configure --with-gsnio to activate the compilation of the plugin - the directory gsn in the pluginfolder contains the wsdl file of the GSN web service, the stlvector.h and a test program - the GSN plugin can be used through a proxy by adding a few tags to the io.ini file: PROXY, PROXYPORT, PROXYUSER, PROXYPASS at least PROXY and PROXYPORT need to be present to activate this feature. - to compile the gsn plugin you need to have gsoap++ present
-
Mathias Bavay authored
First fix for bringing the popc version up to date. Some warnings in IOUtils and Meteo2DInterpolators have been fixed (non explicit cast).
-
- 07 Aug, 2009 3 commits
-
-
Thomas Egger authored
* Complete rewrite of IOHandler: Now it is very easy to add new plugins (adding one line), all the internals (allocation, loading, deleting, loading the right plugin for each IOInterface function) are transparently done. * changed one parameter in readMeteoData to const unsigned int& from unsigned int. Therefore all children of IOInterface needed to undergo that change
-
Thomas Egger authored
Further code reduction in Date_IO - removed explicit assignment operator and copy constructor (flat copy is good enough)
-
Thomas Egger authored
Date(const time_t&); setDate(const time_t&); and a getter function: time_t getEpochTime() returning a time_t type date. time_t is defined in the <ctime> and holds the seconds, that have passed since 00:00 Jan 1 1970 (UTC) Example usage: Date_IO mydate(time(NULL)); //create Date_IO object for current time.
-
- 04 Aug, 2009 1 commit
-
-
Thomas Egger authored
-
- 03 Aug, 2009 1 commit
-
-
Thomas Egger authored
* GeotopIO plugin, to read GeoTOP formatted files * IOHandler: code reduction for the loading and unloading of plugins * MeteoData: added one files "p" * IOUtils: added one more readLineToVec for different delimiters (comma, column, ...) - there was only one for whitespaces
-
- 29 Jul, 2009 1 commit
-
-
Thomas Egger authored
* Fixed a nasty bug in BufferedIOHandler that lead to seg faults.
-
- 28 Jul, 2009 2 commits
-
-
Thomas Egger authored
* had to propagate changes into all children of IOInterface
-
Thomas Egger authored
* Moved BoschungIO into the plugins folder and adapted it to work with the new IOInterface
-
- 27 Jul, 2009 1 commit
-
-
Thomas Egger authored
* function readMeteoData is there to read an interval of data readMeteoData(fromDate, toDate, vector< vector<MeteoData> >, vector< vector<MeteoData> >) * BufferedIOHandler is constructed with another child of IOInterface (e.g. IOHandler) as parameter and deals with all intrinsic issues of buffering, resampling, filtering: so if you have an IOHandler and you want to add buffering: BufferedIOHandler(iohandler, configreader) and then you can access all IOInterface functions, plus a few convenient ones that only BufferedIOHandler exposes: getNextMeteoData(date, vector<MeteoData>, vector<StationData>) readMeteoData(date, vector<MeteoData>, vector<StationData>) you can enable and disable buffering: bufferediohandler.enableResampling(true); * A3DIO and IOHandler had to be adapted to the changes in IOInterface * added a getYear() function to Date_IO * MeteoData has a new member variable "resampled" to indicate whether data has been resampled or not
-