- 23 Mar, 2011 1 commit
-
-
Mathias Bavay authored
The Array::getAbs() and abs() methods were not offering nodata handling, this has been fixed. A new getSum() method has been implemented for arrays (with proper choice of nodata handling)
-
- 22 Mar, 2011 2 commits
-
-
Mathias Bavay authored
A small bug has been fixed for code::blocks (dll_import should not be set for code::blocks on Windows). All #ifdef WIN32 have been replaced by #ifdef _WIN32 (which should be more standard). Version numbers have been pushed to 2.0.1 in order to prepare our upcoming release.
-
Mathias Bavay authored
Next round of fixes for issue 68 (variable names starting with "_" under Visual C++). Hopefully, this issue should now be fully addressed.
-
- 21 Mar, 2011 3 commits
-
-
Mathias Bavay authored
First batch of fixes for issue 68 (variable names starting with "_" invalid for some versions of Visual C++)
-
Thomas Egger authored
Fix for issue 139: Buffering and large data gaps; If the resampling cannot rely on any data points the old behavior was to return a MeteoData object with both data and meta data set to IOUtils::nodata. Now these points are simply skipped. Thus requesting a data point in a gap of measurements greater than the window size necessary will result in an empty result set.
-
Mathias Bavay authored
The Arrays now skip some unecessary tests in resize(). Since the arguments are unsigned, there can not be any negative size! This also now allows setting size to 0. A new "operator" has been added to get the absolute value of an array. This unfortunatelly generate a warning for unsigned arrays despite that the necessary signedness test is performed. This warning will have to be disabled one way or another. The example data set has been brought back to SMET version 1.1
-
- 19 Mar, 2011 1 commit
-
-
Mathias Bavay authored
The SMET specification has been changed and brought to version 1.1. The units_multiplier and units_offset order has been changed: now, the multiplier is applied FIRST and then the offset. This allows to disable a SMET column by setting the mutiplier to 0 and the offset to nodata. A warning is displayed by SMETIO for all files version <1.1 urging users to check their files and update them to 1.1. Code cleanup in IMISIO, grid constraint for wind that it must be greater than 0 in Meteo2DInterpolator.
-
- 18 Mar, 2011 1 commit
-
-
Christine Groot Zwaaftink authored
The getMin(), getMax() and getMean() Array3D methods were not working. This has been fixed. The Array2D::getMean() method has been slightly simplified
-
- 17 Mar, 2011 1 commit
-
-
Mathias Bavay authored
-
- 16 Mar, 2011 3 commits
-
-
Mathias Bavay authored
The example data snow heights were given in cm instead of m. Using the "units_multiplier" of SMET, this has been fixed. The plugin_nodata of SMET was not remapped to IOUtils::nodata. This is now done (both for header fields, ascii data and binary data).
-
Mathias Bavay authored
The Grid3DObject variable ndepth has been renamed in ndepths. A new method "size" to retrieve the size of grid2D and 3D has been implemented (so that it is more consistent with Array2D and 3D).
-
Mathias Bavay authored
This is the fix for issue 140. When setting a Date with setDate(y,m,d,H,M, TZ) if TZ==0 no recalculation of the date elements (year, month, etc) would be performed, thus keeping a potential 24 for hours. If calling afterward getDate(gmt), it would return these internal values without any further calculation, thus returning hour=24.
-
- 15 Mar, 2011 1 commit
-
-
Mathias Bavay authored
The arrays are now using the vector filling methods when possible. A specialized template for convertString(unsigned int) has been written. A two segments linear fit (for elevation detrending) has been implemented with a fixed inflection point. This is quite primitive but allows the LLIDW spatial interpolation to use it and therefore to behave like the traditional SLF SnowFit program. More work will be needed for fully configurable regression algorithm choice though... Some namming issues have been fixed in COSMOXML. A better emissivity handling has been implemented in SNIO to be closer to the original Snowpack (ie: compute clear sky ILWR when no cloudiness/emissivity is given).
-
- 11 Mar, 2011 1 commit
-
-
Mathias Bavay authored
The TIME_ZONE keys are now used by ALL plugins (I thought I already did it...)
-
- 10 Mar, 2011 8 commits
-
-
Thomas Egger authored
-
Thomas Egger authored
SMETIO bug: parseInputOutputSection() assumed that there has to be a INPUT::METEO key in the io.ini. It is optional though, the plugin might be only used for writing meteo data.
-
Thomas Egger authored
-
Mathias Bavay authored
-
Mathias Bavay authored
Small tweaks so that code::blocks on Windows also compiles MeteoIO correctly... (like a never ending story)
-
Mathias Bavay authored
A few functions have been added to the Atmosphere class that are usefull (specifically for Alpine3D snowdrift)
-
Mathias Bavay authored
-
Mathias Bavay authored
More fixes for Visual C++ (but not all done yet) as well as new assignments operators for 1d, 2d, 3d arrays. It is now possible to do something like my2Dgrid.grid2D = 2.; and every cell will be filled with 2.
-
- 09 Mar, 2011 3 commits
-
-
Mathias Bavay authored
In SNIO, the METAFILE can now be optional (which means that the metadata remain nodata, the user has therefore to fill them himself). This is used by Snowpack. After the Visual C++ compilation log from Raphael, some changes have been implemented: lots of warnigs about signed/unsigned fixed, some unreachable code removed, and some methods reimplemented for Windows. We are not there yet, but moving closer...
-
Fierz authored
-
Mathias Bavay authored
Quick fix for a new IMISIO limitation (that stations need to be in some specific tables to be processed, even if this table should not be an absolute necessity). Better SMET formatting for vw_max, small fix in SNIO (for computing emissivity)
-
- 08 Mar, 2011 4 commits
-
-
Mathias Bavay authored
The Wextra warning option is now disabled for Windows systems, so Visual C++ won't complain about it.
-
Mathias Bavay authored
The vw_max field has been added to CosmoXMLIO, and the plugin has seen some cleanup in its comments. Additional comments in Sun.cc should help understand acceptable values for several radiation parameters. A bug in SMETIO has been found (it was looking for METEOPATH in the input section even when smet was only used for outputs) and fixed.
-
Mathias Bavay authored
Another fix for issue 144: fallback "round" function for Visual C++ (that still does not conform to C99... only 12 years late...)
-
Mathias Bavay authored
The SNIO and SMETIO plugins now use METEOPATH for both inputs and outputs. This is more consistent with other plugins and usage. Some unused variables/methods have been removed from BufferedIOHandler (namely, the "buffer_always" functionality). A first implementation of fileExists() and readDirectory() for Windows has been written. This has not yet been tested (even for compilation) since it requires Visual C++. This moves forward to address issues 143 and 144
-
- 05 Mar, 2011 2 commits
-
-
Fierz authored
Sorry! I missed:-( some changes Thomas Egger made recently in IOManager.cc (push_meteo_data()). Should be OK again.
-
Fierz authored
- enhance and simplify sqlQueries. The joint snow_drift query now synchronizes the two stations queried (for example IMIS-snow w/ ENET-wind). The data query is efficient in terms of fetching time, that is 1.58 s for one full year of data (17484 rows a 17 columns) but the first conection may take forever (~50 s) - disentangle stationID and stationName (staion_code and station_name, respectively, in station2.v_snow_drift_standort); parse/edit station_name to not contain spaces ;-) - get temperature sensor depths and insert them in vecMeteoData => we now have a robust mapping of the MeteoData object (see r549) and can pass meta data to the application snowpack ;-)
-
- 04 Mar, 2011 2 commits
-
-
Mathias Bavay authored
-
Mathias Bavay authored
When calling Coords::setProj(), if only x/y were known, the lat/long were not calculated (but this was done for lat/long known and x/y missing). This has been fixed. The slope angle normalization between 0-90 degrees has been done. A merge method has been implemented for Coords and StationData. This simply replaces nodata fields from one object by the matching field from another object (priority given to the current object or the first object in the static method). This is quite a primitive merge strategy, but I doubt anything better could ever be done...
-
- 03 Mar, 2011 1 commit
-
-
Mathias Bavay authored
Added two parameters to the StationData class: slope angle and slope azimuth (with setter and getters)
-
- 01 Mar, 2011 4 commits
-
-
Thomas Egger authored
-
Thomas Egger authored
-
Thomas Egger authored
-
Thomas Egger authored
Bugfix for issue 147: When copying MeteoData object it could not be guarenteed that the index for a certain paramater would remain constant, thus accessing let's say md.param(13) and md2.param(13) could result in accessing different values. Since MeteoIO uses the index extensively it is of vital importance for the index to stay constant. This problem only affected additional parameters, not the standard parameters.
-
- 25 Feb, 2011 1 commit
-
-
Thomas Egger authored
Speedup for the MeteoData constructor and copy constructor, by looping through the individual parameters instead of seeking them out one by one.
-
- 24 Feb, 2011 1 commit
-
-
Thomas Egger authored
Removed potentially deadly line in BufferedIOHandler: setDfltBufferProperties was called in the destructor (without being able to hold the no throw promise. Added some brackets to make if statements easier to comprehend.
-