Skip to content

marcosp-araujo/Tower2csv

Repository files navigation

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":

image

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

image

If we open, for instance, the humidity-sensor folder "huragl116S1", we will see one netcdf file for each month:

image

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:

image

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages