INTRODUCTION
The "Tower2csv.py" class scans netCDF files from a Tall Tower database and joins all them into a single .CSV file. A "how to" example is provided in the "main.py" file.
INPUTS
The Tower2csv requires three inputs:
1 - netcdf_dir = Directory of netcdf files (string).
2 - save_dir = Directory to save the .csv (string).
3 - save_file = Name of the .csv file to be saved (string).
DATA EXAMPLE
Data from the OWEZ offshore meteorological tower are used exemplify the Tower2csv applicability. You can find data from other sites in the following link:
https://talltowers.bsc.es/access-the-data
NETCDF DATA STRUCTURE
Now, let's continue by understanding the dataset structure using the data example which is uploaded here. When opening the "owez" folder, there is subfolder called "10minutely":
The data are organized in different subfolders inside "10minutely", which are named according to the sensor type:
If we open, for instance, the humidity-sensor folder "huragl116S1", we will see one netcdf file for each month:
OUTPUT EXAMPLE
When running the "Tower2csv.py" via the "main.py", the first scans all files of a given year, from all subfolders, and joins the data into a single .csv file. Data from each sensor are separately stored in different comma-separated columns as follows: