Appending data to timeseries is currently non-functional for NetCDF
Hei @bavay!
I have just started with meteoIO helped by Joel Fiddel to process some SIOS data from Svalbard. I am struggling to run a simple test example that Joe provided and am getting the following error:
./data_converter 2020-04-05T14:30:01 2020-12-16T13:00:01 10
Powered by MeteoIO 3.00 compiled on Jan 24 2022 11:05:21
Reading data from 2020-04-05T14:30:01 to 2020-12-16T13:00:01
Writing output data
[NetCDFIO.cc:596] Appending data to timeseries is currently non-functional for NetCDF, please delete file .//sw_003.nc
I do not know it if it is a compilation error or meteoio processing error. So, have you encountered that issue before?
Infos on MeteoIO processing:
I attach the config and data files that i use: io.ini sw-003.csv
Compilation infos and warnings
Background infos:
- OSX 11.6.2
- netcdf 4.8.1 - installed with homebrew
Warnings
The meteoIO compilation with NETCDF enabled spits some warnings:
[ 53%] Building CXX object meteoio/CMakeFiles/meteoio.dir/plugins/NetCDFIO.cc.o
**/code/meteoio/meteoio/plugins/NetCDFIO.cc:994:3:** **warning:** **'delete[]' applied to a pointer that was allocated with 'new'; did you mean 'delete'? [-Wmismatched-new-delete]**
delete[] data;
**^ ~~**
**/code/meteoio/meteoio/plugins/NetCDFIO.cc:983:18: note:** allocated with 'new' here
double *data = new double;
**^**
1 warning generated.
[...]
[ 98%] **Linking CXX shared library ../lib/libmeteoio.dylib**
ld: warning: dylib (/usr/local/lib/libnetcdf.dylib) was built for newer macOS version (11.0) than being linked (10.12)
[ 98%] Built target meteoio
[ 99%] Building CXX object applications/CMakeFiles/meteoio_timeseries.dir/meteoio_timeseries.cc.o
[100%] **Linking CXX executable ../bin/meteoio_timeseries**
ld: warning: dylib (/usr/local/lib/libnetcdf.dylib) was built for newer macOS version (11.0) than being linked (10.12)
[100%] Built target meteoio_timeseries
Cmake infos
The cmake looks good as well, except for HAVE_FEENABLE:
# meteoio% cmake .
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.30.1 (Apple Git-130)")
-- Performing Test HAVE_STRUCT_STAT_ST_FLAGS
-- Performing Test HAVE_STRUCT_STAT_ST_FLAGS - Success
-- Performing Test HAVE_FEENABLE
-- Performing Test HAVE_FEENABLE - Failed
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.9.3") found components: doxygen missing components: dot
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ronea/code/meteoio
Thanks for your help,
Cheers,
PiM
Edited by Pierre-Marie Lefeuvre