WSL/SLF GitLab Repository

Skip to main content
Sign in
Snippets Groups Projects

Commits · 5e5de81f6c4c007dbe92d3675b25f5bca86f4e93

  1. Apr 01, 2010
  2. Mar 31, 2010
  3. Mar 30, 2010
  4. Mar 29, 2010
  5. Mar 26, 2010
  6. Mar 25, 2010
  7. Mar 19, 2010
  8. Mar 16, 2010
  9. Mar 15, 2010
  10. Mar 09, 2010
  11. Mar 04, 2010
  12. Mar 01, 2010
  13. Feb 25, 2010
  14. Feb 23, 2010
  15. Feb 22, 2010
  16. Feb 19, 2010
  17. Feb 18, 2010
  18. Feb 17, 2010
  19. Feb 16, 2010
  20. Feb 16, 2010
    • Mathias Bavay's avatar
      The MapProj class has been renamed in Coords. It now contains the coordinates... · d393958b
      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.
      d393958b
  21. Feb 15, 2010
  22. Feb 10, 2010
  23. Feb 09, 2010
    • Mathias Bavay's avatar
      A few static members have been added to MapProj to handle latitude/longitude:... · 8fb751f9
      Mathias Bavay authored
      A few static members have been added to MapProj to handle latitude/longitude: a method for converting a decimal latitude or longitude to degrees, minutes, seconds (formatted as d°m's"),  a method for converting a string containing degrees, minutes, seconds to decimal latitude or longitude and a method for parsing a position expressed as latitude/longitude (given in a string) and returning decimal latitude and longitude. This is the implementation of issue 34.
      8fb751f9
  24. Feb 05, 2010
    • Mathias Bavay's avatar
      In the MapProj class, a new conversion has been added: UTM to/from WGS84.... · ba74049c
      Mathias Bavay authored
      In the MapProj class, a new conversion has been added: UTM to/from WGS84. Simply give "UTM" as the coordinate system and specify in the optional arguments the zone number (for example, 31T).
      
      A (tricky) error has been fixed in the VincentyDistance. The bearing that was chosen was the average between the initial and reverse bearing. That seemd a good idea at the time, but this made reprojecting a local grid computed using Vincenty impossible: the required bearing (starting from the reference point) is the initial bearing, the average one was sending us hundreds of kilometers away from the correct coordinate (when doing (lat,lon) -> local -> (lat,lon)). 
      
      Finally, a few more powN() methods have been added to IOUtils for convenience (yes, the projection business loves these!!)
      ba74049c
  25. Feb 03, 2010
    • Mathias Bavay's avatar
      The Special_PTS and CSpecialPointsArray structures have been renamed in... · 11d9c246
      Mathias Bavay authored
      The Special_PTS and CSpecialPointsArray structures have been renamed in "POINT" and "POINTSArray" (there was no reason to call them "special points"). 
      
      A few new methods have been added to DEMObject: getPointsBetween that returns a vector containing the indices of all points located on the line between two points (given by their real world (x,y) coordinates), horizontalDistance that returns the horizontal distance between two points and terrainDistance that returns the distance between two point accros the terrain as described by the DEM (ie: going up and down the terrain).
      11d9c246
  26. Jan 29, 2010
    • Mathias Bavay's avatar
      A bug was preventing RH interpolations from working (the TA grid was... · d5c34620
      Mathias Bavay authored
      A bug was preventing RH interpolations from working (the TA grid was initialized to size 0, and therefore the safety checks were later on stopping the interpolation of RH because the TA grid was of the wrong size). 
      
      A "sanitize" method has been added to DEMObject so that all points that have an elevation but no slope/azimuth/normals/curvature see their elevation set to nodata (so that testing the elevation of a point is enough to guarantee that all information is available). The caller has therefore to decide if he prefers potentially losing a few points to guarantee a more consistent DEM or not...
      d5c34620
  27. Jan 28, 2010
    • Mathias Bavay's avatar
      The parallelization was lagging behind, so this has been fixed: One internal... · f1989ba4
      Mathias Bavay authored
      The parallelization was lagging behind, so this has been fixed: One internal variable was not serialized in DEMObject, there was no serialization at all in Meteo2DInterpolator and some marshalling methods had to be written (in marshall_meteoio). The serialization of Meteo2DInterpolator should be tested however!
      
      The marshalling code has been cleaned up and some missing "std::" added in FilterAlgorithms (doxygen was complaining).
      f1989ba4
    • Mathias Bavay's avatar
      A new method "setDefaultAlgorithm" has been added to the DEMObject so that the... · 3e106b6b
      Mathias Bavay authored
      A new method "setDefaultAlgorithm" has been added to the DEMObject so that the caller can specify which slope computation algorithm to use. The default algorithm argument has also been added to the constructors (as optional argument). This means that each constructor MUST call setDefaultAlgorithm.
      
      A new slope computation algorithm has been added: FLEM for (Fleming and Hoffer, 1979). This algorithm is faster, simpler and usually better then the other ones (according to (Hodgson, >1997)).
      
      Finally, some benchmarks have been done comparing the current slope computation speed with the old implementation (which could not handle holes in DEM): the current method is only 5% slower and it can now handle holes!
      3e106b6b
  28. Jan 27, 2010
    • Mathias Bavay's avatar
      The DEMObject has been modified so that it can now correctly handle grids with... · 86afd8ff
      Mathias Bavay authored
      The DEMObject has been modified so that it can now correctly handle grids with nodata values when computing slope/azimuth/curvature (this is in effect the fix for issue 15). This is "best effort" approach: several strategies are applied if some points are missing in order to still be able to compute as much as possible the parameters for their neighbours (if the latter contain an elevation!). The resulting grids are consistent for slopes (ie: if the slope can be computed, then the azimuth too and the normals too) and the curvature is handled separately (ie: it is possible to find points where ONLY the curvature is nodata).
      
      Several inappropriate behaviors have been fixed for cells next to a nodata point (or next to an edge). This should have fixed issue 7.
      
      The necessary check have been added to libinterpol2D:SimpleDEMWindInterpolate
      86afd8ff
  29. Jan 24, 2010
    • Thomas Egger's avatar
      Added the MeanAvgFilter and updated the MedianAvgFilter. Now the position of... · e304828d
      Thomas Egger authored
      Added the MeanAvgFilter and updated the MedianAvgFilter. Now the position of the filter window can be defined. The keyword soft has the meaning that the configuration of the window position is not strict (it will adapt if there is not enough data available for the user defined window position). If both soft and the position for the window (left, right, center) are missing "center" is assumed. Usage:
      
      TA::filter1 = mean_avg
      TA::arg1   = soft right 10 100
      RH::filter1 = median_avg
      RH::arg1  = 10 200
      
      Meaning: use mean_avg filter on TA, the window shall be right leaning spanning at least 10 points and 100 minutes. Use median_avg filter on RH, the window shall be centered (strictly).
      e304828d
  30. Jan 20, 2010
  31. Jan 19, 2010
    • Mathias Bavay's avatar
      A mistake has been found in BoschungIO: the key for precipitation was wrong... · 4ba28348
      Mathias Bavay authored
      A mistake has been found in BoschungIO: the key for precipitation was wrong (we were reading the precipitation type as a precipitation amount, which was quite bad for the simulation!).
      
      A few missing cases of nodata have been identified (thanks Cyril!) and fixed in libinterpol2D
      4ba28348
    • Cyril Perot's avatar
      * Adds of singleton class DEMLOader in charge of loading and storing DEMObjects in a · be3d1842
      Cyril Perot authored
      dynamic use of meteoio (ie. dynamically loaded from an application -- for exemple from Java application with the JNI mechanism).
      This leads to save the dem file loading time in further interpolation (more than half the time is saved in some cases).
      
      * Tries to make the "dynamic" interpolation call thread-safe in a multithreaded context (ie. concurrent interpolation are called by 
      different threads) : 
      	-> identifies the Critical Section and the critical resources
      	-> use of a 'synchronized' java-like macro to isolate these sections and resources
      be3d1842
  32. Jan 18, 2010
    • Thomas Egger's avatar
      A new interface for the Meteo2DInterpolator: · 0637f7fd
      Thomas Egger authored
      void interpolate(const MeteoData::Parameters& meteoparam, Grid2DObject& result);
      
      The new Meteo2DInterpolator class parses the ConfigReader object passed to it and stores all possible algorithms for each MeteoData variable (user configured). In the next step the user configured algorithms shall be invoked and a quality estimator chooses the most appropiate of the algorithms to interpolate the 2D grid for a given meteo parameter.
      
      Adjustments needed to be made to the ConfigReader class (function findKeys) and a few comments have been added to MeteoFilter for more clarity of the ConfgReader parsing process.
      0637f7fd
  33. Jan 14, 2010
  34. Jan 13, 2010
    • Mathias Bavay's avatar
      The successfull call of MeteoIO from Java has been implemented by Cyril Perot... · 6ae67300
      Mathias Bavay authored
      The successfull call of MeteoIO from Java has been implemented by Cyril Perot but needed a few adjustments in MeteoIO. This commit makes the said adjustments: a few more "#ifdef _POPC_", a missing ConfgReader.addKey(key, section, value) and some previously private members of Meteo2DInterpolator now exposed. 
      
      The plugin unloading sections have been protected by ifndef _METEOIO_JNI because the current implementation of such Java integration uses JNI and does its own plugin loading/unloading.
      6ae67300
    • Mathias Bavay's avatar
      In an effort to make ConfigReader more flexible, its interface has been... · ec219986
      Mathias Bavay authored
      In an effort to make ConfigReader more flexible, its interface has been expanded: it is now possible to read several files into one ConfigReader, or to manually add key/value pairs and it is planned that a string containing command line arguments could be given to populate the internal map of ConfigReader.
      ec219986
  35. Jan 12, 2010
  36. Jan 08, 2010
  37. Jan 07, 2010
  38. Jan 04, 2010
  39. Dec 21, 2009
  40. Dec 17, 2009
  41. Dec 15, 2009
  42. Dec 11, 2009
    • Mathias Bavay's avatar
      A new slope computation algorithm has bee added: CARD It computes the slope... · 27deca55
      Mathias Bavay authored
      A new slope computation algorithm has bee added: CARD It computes the slope using Corripio and then discretizes the azimuth along 8 cardinal directions and the slope by degrees. This should be all that GEOtop needs for its drainage direction (then simply calling a dem.update("CARDINAL")).
      
      The copyright notices have been put in place in all files (headers and cc) with proper attribution of copyright.
      
      The documentation has been improved, specially fixing issue 22. Warning messages of doxygen have been fixed. An example subdirectory has been created in /doc and contains (currently) 2 examples of code using MeteoIO.
      27deca55
  43. Dec 09, 2009
  44. Dec 08, 2009
  45. Dec 07, 2009
  46. Dec 03, 2009
  47. Dec 02, 2009
    • Mathias Bavay's avatar
      This version has been (a little bit) tested with popc. The code that needed... · 49367c64
      Mathias Bavay authored
      This version has been (a little bit) tested with popc. The code that needed validation (MeteoData information necessary for filtering) seems to work, so some code tagging has been removed and some commented out methods deleted.
      
      Fixed the install bug that was preventing the installation if the parallel version was not compiled. Following the latest evolution of Pop-C++, an inheritance for the popc exceptions had to be removed. 
      49367c64
  48. Dec 01, 2009
  49. Nov 22, 2009
    • Thomas Egger's avatar
      MedianAverageFilter added to FilterAlgorithms.cc · 8298975b
      Thomas Egger authored
      usage (in io.ini):
      [Filters]
      TA::filter1 = median_avg
      TA::arg1    = 20 100
      
      The first argument specifies the minimal number of points, the second argument the minimal duration that the window for the filter has to have: if these conditions cannot be met (too little data) the filter is not executed.
      8298975b
    • Thomas Egger's avatar
      CMake changes: possibility of including/linking proj4, creating shared and... · f88eab18
      Thomas Egger authored
      CMake changes: possibility of including/linking proj4, creating shared and static version of libmeteoio, install script for installing all the plugins to /usr/local and a change to IOHandler.cc: if no PLUGINPATH is specified in the io.ini file all paths defined for ldconfig and LD_LIBRARY_PATH are searched for the plugins.
      
      Furthermore a versioning system for the plugins and meteoio has been introduced.
      f88eab18
Loading