NC_SINGLE_FILE=TRUE causes an error during the ouptut data writing: "Date object is undefined!"
Hei!
I am getting an error during the writing of my output data (i.e. UnknownValue: Date object is undefined! ) that produces a netcdf file without data but with metadata. The error seems to come from NC_SINGLE_FILE=TRUE and METEOFILE as ./data_converter works fine when NC_SINGLE_FILE is set to FALSE.
Have you experienced such an error before?
Thanks for our help,
PiM
I quote below the problematic part in the INI file (sw-001_20190411_20220101.ini):
[OUTPUT]
METEO = NETCDF
METEOPATH = data_qc
NC_SINGLE_FILE = TRUE # If FALSE, it produces a correct netcdf file
METEOFILE = sw-001_20190411_20220101.nc # I also tried sw-001.nc
NETCDF_SCHEMA = CF-1.6
NC_STRICT_SCHEMA = TRUE
NC_LAX_SCHEMA = FALSE
And the resulting error at the end of ./data_converter when NC_SINGLE_FILE = TRUE
[DATA_QA] Resampling sw-001::VW::LINEAR 2022-01-01T00:00:00+00:00 [2021-W52-06]
[DATA_QA] Resampling sw-001::DW::LINEAR 2022-01-01T00:00:00+00:00 [2021-W52-06]
Writing output data
[Date.cc:416] UnknownValue: Date object is undefined!
and when NC_SINGLE_FILE = FALSE
[DATA_QA] Resampling sw-001::VW::LINEAR 2022-01-01T00:00:00+00:00 [2021-W52-06]
[DATA_QA] Resampling sw-001::DW::LINEAR 2022-01-01T00:00:00+00:00 [2021-W52-06]
Writing output data
Done!! in 12.2812 s
PS: I did not find any error in the log [DATA_QA] Filtering/Resampling
PS2: The input data: sw-001_20190411_20220101.csv