rewrite: to write telegram to slqlite and export once to netcdf
I think that the logic that this script is using is not efficient. Opening and appending data to a netcdf file every minute is not efficient and can lead to errors.
I would like to take the same approach as in the https://gitlab.tudelft.nl/ruisdael/davis-ws-datalogger where weewx writes constantly to sql db. Only once a day, the export script is run to produce a netcdf
It is important to try:
-
create db (how can it be created using the YAML telegram structure -
writing telegram to db (class Telegram method) with -
telegram as 1 long string (1 col dtype:str) or split into several columns (dtype:str)
-
-
exporting all the telegram data rows for 1 day and insert them a a whole to netcdf (see davis-ws-datalogger)
Edited by Andre Castro