Skip to content

VossV/wt2atmodat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

DOI

wt2atmodat

Prototype of a processing routine for creating environmental wind tunnel netCDF datasets. This routine converts wind tunnel model data into the netCDF data format. Data layout, processing and descriptions are inspired by the CF conventions and AtMoDat Standard. This processing routines translates specifically formatted wind tunnel files (table-like, .txt- format) into netCDF.

DISCLAIMER: This processing routine is mainly adapted to files from the Environmental Wind Tunnel Laboratory (EWTL) Universität Hamburg, Germany (https://www.mi.uni-hamburg.de/en/arbeitsgruppen/windkanallabor.html) Adaptation are required to each dataset.

How to process datasets:

  1. Download this code from github with: https://github.com/VossV/wt2atmodat.git

  2. Go to directory wt2atmodat

You find here the following files:

  • wt2atmodat.py (main programm)
  • dict_WT_variables.py (pre-selected output variables)
  • functions.py (contains all functions for processing)
  • Metadata_Table_Windtunnel.xlsx (metadata information)
  • files (contains example data)
  1. open "Metadata_Table_Windtunnel" with Microsoft Excel and modify the sheet

  2. open "wt2atmodat.py" with an text editor:

  3. set 'path', 'file', 'Metadata_file' in the user input section.

  4. Add custom variables entries and attributes "dict_WT_variables.py".

  5. Run script with python

python wt2atmodat.py

Required Python Modules:

  • xarray
  • pandas
  • numpy
  • glob
  • os

Description of files:

Example files:

Processing is adapted towards the datasets from the EWTL Working group. Two files (P01.txt, P02.txt) provided are snippets taken from Freitas et al (2021), full-data is available upon request (EWTL Uni Hamburg). A second example can be retrieved from Schalau et al (2023), full data available at https://zenodo.org/records/7341513

wt2atmodat.py

  • main program - steers the processing and calls functions
  • add here path, input-file and metadata-file
  • translates the raw data into an 1D netCDF (variables are accessed by an index)
  • add additional information, attributes, descriptions adn global metadata to the netCDF file
  • Tries translation of the raw data into an 3D netCDF (variables use coordinates e.g. x,y,z as index).

functions.py

  • contains all functions used for wt2atmodat.py

dict_WT_variables.py

  • contains dictionaries with variables and attributes.
  • user specific descriptions for variables must be added here.

Metadata_Table_Windtunnel.xlsx

  • contains global metadata that should be added to the file.
  • must be filled by the producer for each dataset individually

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages