Skip to content

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

Notifications You must be signed in to change notification settings

marcosp-araujo/Tower2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

The Tall Tower Dataset is an open database aimed at boosting the use of hub-height wind observations from meteorological towers. The Tower2csv API automatically requests data to Tall Tower for a given input tower name, and then it reads and joins all netCDF into a single .CSV file, that can be downloaded.

Requirements and virtual environment

Creating a virtual environment is strongly advisable to avoid errors when running the Tower2csv in your local machine. It can be done using the "virtualenv" library. You may use the following command lines in your terminal to install "virtualenv" and set up a new virtual environment:

pip install virtualenv

For creating a new virtual environment called "venv":

python -m venv venv

Now, for activating the new virtual environment:

.\venv\Scripts\activate

Then, for installing the requirements.txt:

pip install -r requirements.txt

How to use

The web application can be run using the following command.

streamlit run .\main_app.py 

Moreover, you can also run it in your preferred IDE, using this command:

python .\main.py 

Input parameters

If running the Tower2csv in your IDE you have to set this input parameters in the main.py file:

  • tower_name = Tower name
  • unzip_dir = Directory to extract the netCDF files
  • save_file_path = Path to save the .csv file

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