Improper nodata treatment
Steps to reproduce the problem:
- Go to doc/examples/
- Open ./input/meteo/FIR2.smet
- Change nodata value from -999 to -9999
- Run ./data_converter 2009-01-01 2009-01-02 1
- Open output file FIR2.smet
Expected result: slope_angle = 0 slope_azi = 0
Actual result: slope_angle = -279 slope_azi = -279
Now change nodata value in input file to 6998, run data_converter again and check the output: slope_angle = 22 slope_azi = 158
So looks like slope_angle and slope_azi are being calculated from nodata value for cases where the specified nodata != -999!