marcosp-araujo / Tower2csv

This class converts and joins netcdf files from the Tall Tower database into a csv file

Home Page:https://talltowers.bsc.es/access-the-data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

INTRODUCTION

The Tall Tower is an open database aimed at boosting the use of hub-height wind observations from meteorological towers. The "Tower2csv.py" class scans netCDF files from a Tall Tower database and joins all of 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 the 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 to exemplify the Tower2csv applicability. You can find data from other sites at the following link:

https://talltowers.bsc.es/access-the-data

netCDF DATABASE 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 a subfolder called "10minutely":

image

The data are organized in different subfolders inside "10minutely", which are named according to the sensor type:

image

For instance, in the humidity-sensor folder "huragl116S1", you will see that there is one netCDF file for each month:

image

OUTPUT EXAMPLE

When running the "Tower2csv.py" via "main.py", all netCDF files from all subfolders are joined, and then, saved into a single .CSV file. Data from each sensor are stored in different comma-separated columns as follows:

image

About

This class converts and joins netcdf files from the Tall Tower database into a csv file

https://talltowers.bsc.es/access-the-data


Languages

Language:Python 100.0%