ruisdael-observatory / disdroDL

disdrometer data logger to NetCDF
GNU General Public License v3.0
0 stars 0 forks source link

save thies and parsivel NetCDFs to the same directory #8

Closed andrecastro0o closed 4 months ago

andrecastro0o commented 4 months ago

the data_dir value determines where the disdroDL exported NetCDFs are saved, in the instrument's hostPC. The data_dir values in is defined in the configs_netcdf/ conf files

For the Thies, it was defined that the data should be saved in data_dir: '/data/disdroDL/thies/' and for the parsivel in data_dir: '/data/disdroDL/'

I am think that this difference is unnecessary, since the files source instrument can be inferred from their filenames ie. 20240722_Green_Village-GV_PAR008.nc 20240722_Green_Village-GV_THIES006.nc

Hence I believe it is worth setting the Thies to write to the same directory

andrecastro0o commented 4 months ago

In main.py#L58 db_path = Path(config_dict['data_dir']) / 'disdrodl.db

This means that is the data_dir is the same for the parsivel and thies, they will both write to the same DB!!!!

To counter this problem, I will add the variable db_filename to the conf files and to main.py

The same has to be done in the export_disdrodlDB2NC.py