- 31 Mar, 2010 2 commits
-
-
Thomas Egger authored
a new function called: readStationData has been added. It expects a date and a vector<StationData> as parameters and returns the meta data for the required date (often this date is irrelevant, because stations are fixed, then just pass any date).
-
Mathias Bavay authored
The ARC file format as produced by MeteoIO has been brought to the same specification as common practise (including PREVAH tools). Obviously, an official format specification would be much preferrable...
-
- 30 Mar, 2010 2 commits
-
-
Mathias Bavay authored
The UTM special zones are now fully handled (both from WGS84 and to WGS84). A few enlightening comments (!!) have been added.
-
Thomas Egger authored
A first workaround to make compilation with POPC possible, by adding the writeMeteoData function to IOHandler.ph. The problem persists on how to deal with const references and POPC.
-
- 29 Mar, 2010 1 commit
-
-
Mathias Bavay authored
A plugin (BoschungIO) has been renammed as BormaIO and the LPGL notices have been added to it (upon agreement).
-
- 26 Mar, 2010 6 commits
-
-
Thomas Egger authored
Update of IMISIO - it now works with the new interface and CMAKE (more or less) - lots of cleanup required
-
Thomas Egger authored
-
Thomas Egger authored
Changed interface of InterpolationAlgorithm::calculate, it now is a void function, Within the implementation of the algorithms exceptions are thrown instead of returning false. GeotopIO: higher precision on the output of the meta data.
-
Thomas Egger authored
-
Thomas Egger authored
-
Thomas Egger authored
Kicked out all legacy code for the spatial interpolation - cleaned up libinterpol2D.* and Meteo2DInterpolator.* - in Coords.cc there was an ambigous if condition lacking a few brackets. Added comments to illustrate the algorithms in InterpolationAlgorithms.cc
-
- 25 Mar, 2010 4 commits
-
-
Thomas Egger authored
No commit message
-
Thomas Egger authored
The new interpolations interface with all algorithms that used to reside within libinterpol2D exclusively. Every algorithm is an own class derived from InterpolationAlgorithm abstract base class. An AlgorithmFactory instantiates the required algorithm within class Meteo2DInterpolator. The user needs to configured which algorithms to be used within the section [Interpolations2D] in the io.ini: [Interpolations2D] TA::algorithms = cst cst_lapse idw_lapse TA::cst_lapse = -0.008 libinterpol1D has a new function for the calculation of arithmetic means. all of libinterpol2D is static. the rest will be thrown out in the coming days.
-
Thomas Egger authored
The new structure of the io.ini shall have an [Input], [Output], [General], [Interpolations2D] and [Filters] section. Some of the keys have changed names: COORDIN is COORDSYS, instead of DEMSRC it's just DEM in the [Input] section and so on.
-
Thomas Egger authored
replaced the io.ini parameters BUFFERSTRATEGY and BUFFERBEFORE BUFFERAFTER with two functions to be excplicitly called for the same effect: bufferAlways(bool) and setBufferDuration(Date_IO bufferbefore, Date_IO bufferafter)
-
- 19 Mar, 2010 1 commit
-
-
Thomas Egger authored
IOExceptions: added functionality for LINUX that enables a stacktrace when an exception is printed (that is e.what() is called)
-
- 16 Mar, 2010 2 commits
-
-
Thomas Egger authored
Thanks to valgrind, found a little bug in GeotopIO, where I initialized a vector to having 4 fields, but later I used 5 fields.
-
Thomas Egger authored
Altered the function that returns a window of data to filters (getWindowData) to optionally also provide the dates for the elements in the window.
-
- 15 Mar, 2010 3 commits
-
-
Thomas Egger authored
The buffering system shows itself improved - a fine tuning of the performance is possible through the following tags: BUFFERSTRATEGY = [always | newinterval] # default: always BUFFERPERIOD = 1 2 The BUFFERPERIOD tag configures the amount of days before and after a requested date the BufferedIOHandler will try to buffer. The BUFFERSTRATEGY determines how the buffer reacts if it already tried to buffer a certain interval and another date out of that interval is requested: "always" means a rebuffering is always attempted, newinterval means that rebuffering is not attempted if a requested date falls into a previously extracted interval.
-
Thomas Egger authored
A new function is introduced into the IOInterface: writeMeteoData. It expects one vector<vector<MeteoData>> and one vector<vector<StationData>> as well as an optional string (for database info, file name, etc). The relevant io.ini tag is: METEODEST = GEOTOP Only GeotopIO has this method fully implemented thus enabling to convert all meteo data captured from any other source to a GEOtop compliant meteo files. The relevant tags are: METEODESTPATH = /tmp METEODESTSEQ = WindS WindDir RelHum AirT SWglobal Iprec METEODESTPATH determines where the files will be written to and METEODESTSEQ determines the order in which the meteo parameters will be written into the CSV file
-
Thomas Egger authored
Added Filter to average wind speeds and directions called WindAvgFilter, accessible through the io.ini tags: wind_avg; example: VW::filter1 = wind_avg VW::arg1 = soft center 1 60 The averaging is done vector based by computing the east-west and north-south components of the wind (using cos and sin). The vectors are weighted with the corresponding wind speed.
-
- 09 Mar, 2010 3 commits
-
-
Thomas Egger authored
Updated the gsnclient app to return the stations available before any other output. Fixed spelling issue in GEOtopIO.
-
Mathias Bavay authored
The java bindings now use the latest 2D interpolations interface. This means that all data is immediately put into a vector of MeteoData and then routed as usual through the Meteo2DInterpolator. The includes have also been cleaned up (only using MeteoIO.h), a few const keywords have been used as well as passing arguments by "&" instead of explicitely by reference.
-
Cyril Perot authored
-
- 04 Mar, 2010 2 commits
-
-
Thomas Egger authored
-
Thomas Egger authored
-
- 01 Mar, 2010 2 commits
-
-
Mathias Bavay authored
A better example of DEM usage has been prepared: it uses a 1000m resolution DEM of the whole of Switzerland (that is, with holes in the dem) and valid coordinates are now much easier to guess...
-
Mathias Bavay authored
A new slope algorithm has been added (HORN), even if it computes the same slopes as CORRIPIO (except for border cells). This is the algorithm that is used in ArcGIS. Some cleanup has been done in the references (it seems some algorithms have been published several time by different people). The embryo of a real hydrological slope algorithm is coming: it is not nammed CARD any more, but D8 and gives NODATA to the aspect of points that don't have any slope (slope=0). It will have to be completed by adding a sink resolution algorithm.
-
- 25 Feb, 2010 1 commit
-
-
Mathias Bavay authored
This is an updated version of the java interface to take into account the recent changes in MeteoIO's API. The Makefile has been improved, it now compiles on Linux.
-
- 23 Feb, 2010 2 commits
-
-
Mathias Bavay authored
A problem was found during the intialization of the plugins (as well as A3DIO): the parameters that were passed to initialize the local copies were not always initialized with the raw parameters passed to the constructor but usually with the copy of the previous element. This lead to some copies not to be up to date when calling their constructor (see A3DIO.cc for a clearer view!!).
-
Mathias Bavay authored
The write2DGrid members of the plugins now use the features of the Coords object to output the grid in the input coordinate system (as specified in the io.ini file). A copy of the Coords object is made, so that it does not change the given grid. This is fixing issue 3
-
- 22 Feb, 2010 2 commits
-
-
Mathias Bavay authored
The plugin's interface (IOInterface) has been slightly modified: readSpecialPoints now returns a vector of Coords. This means that a plugin can provide coordinates as (lat,long) or (easting, northing) or (grid_i, grid_j). All the plugins have been modified accordingly and POINTS and POINTSArray have been removed from Array.h
-
Mathias Bavay authored
A few issues have been fixed in Coords: the copyProj method had a bug, the distance method now uses cartesian calculation if both projections are equal, a new getProj() method is now available (but it should be rarely needed). The GridxDObject::gridify method now correctly handles "NULL" projection and the Meteo2DInterpolator makes sure that all projections agree before doing the interpolations.
-
- 19 Feb, 2010 1 commit
-
-
Mathias Bavay authored
Finally, the implementation of issue 35 is here... A few bugs left with the Coords class have been fixed (namely, the methods take 1 optional parameter and not more, because for this usage scenario it was way too dangerous and the user (myself in this case!) could call the method with the wrong parameter left empty). New mebers have been added: grid_i and grid_j as well as methods to deal with them. These contain the grid indices matching the position. Since these indices depend on the chosen DEM/grid, they are NOT updated by Coords but by Grid2DObject or Grid3DObject instead. If the user calls Coords::setLatLon() or Coords::setXY(), then these grid parameters are reset to nodata. A bug in a constructor of StationData has also been fixed (assigning a temporary object to a member of the class). Some bugs/unlucky deletes in the examples have been fixed (this is the price to pay for work too late at night!) New constants "lat_epsilon" and "lon_epsilon" have been created in IOUtils. They represent the smallest latitude/longitude resolution (ie: two points within lat_epsilon are considered to have the same latitude)
-
- 18 Feb, 2010 1 commit
-
-
Mathias Bavay authored
The constructor Coords(ConfigReader) was a bad idea... Convenient, but way too specific. It has been removed. The documentation in the Coords class has been updated. A saner handling of nodata values by the plugins has been implemented. Now, each plugin should properly get its own internal definition of nodata and return data using IOUtils::nodata to the caller. A new method has been implemented in IOUtils to help cleaning a parameter for nodata. A check for xmlParseFile (used for compiling the Boschung plugin) was working poorly and has been commented out in configure.ac. Finally, more cleanup in the ph files has been performed.
-
- 17 Feb, 2010 1 commit
-
-
Mathias Bavay authored
The new Coords object is now used by all grids (Grid2DObject, Grid3DObject, DEMObject) as well as by all plugins (but checking proper operation was not possible for GSNIO because of missing libraries on my system...). The documentation has been updated as well as the code examples. A few extra methods have been added when usage has shown the need/convenience of having them (specially for standardazing some processing called by the plugins). A few small bugs have been fixed (possibility of not updating or improperly updating the coordinates in some rare cases). The proper marshalling for Grid3DObject has been implemented (it was more or less a dummy method until now). One bug has been fixed for Proj4 support. The code of most of the plugins has been cleaned up in order to get rid of the few remaining "using namespace" in header files.
-
- 16 Feb, 2010 2 commits
-
-
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.
-
Mathias Bavay authored
The MapProj class has been renamed in Coords. It now contains the coordinates (lat,long) and (xcoord, ycoord) and should therefore be used as a storage and conversion class. The necessary changes have been made to the rest of the code so it uses this class, but it still does NOT use it as a storage of coordinates (which will have to be done in the future). This addressed partially issue 35.
-
- 15 Feb, 2010 1 commit
-
-
Mathias Bavay authored
The doxygen comments for MapProj have been reorganized. An invalid type has been fixed in DEMObject and a structure updated in LegacyIO.ph.
-
- 10 Feb, 2010 1 commit
-
-
Thomas Egger authored
Bugfix for A3DIO: Now it is no problem anymore if some stations exist in one Meteo2D file (e.g. wspd2005.txt) but not in another (e.g. wspd2006.txt). Unfortunately BufferedIOHandler will try to rebuffer the missing data and fail, which might be time consuming.
-