Skip to content

joshua-hampton/ncas-radar-wind-profiler-1-software

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ncas-radar-wind-profiler-1-software

This repo contains code and scripts to make AMOF v2 netCDF files for the ncas-radar-wind-profiler-1 instrument from trw files.

Requirements

Installation

To install, either clone the repo git clone https://github.com/ncasuk/ncas-radar-wind-profiler-1-software.git or download and extract a release version.

Download the required modules using conda install --file requirements.txt or pip install -r requirements.txt.

Usage

python process_wp.py /path/to/raw1.trw /path/to/raw2.trw ... -m metadata.csv

Additional flags that can be given for each python script:

  • -o or --ncfile-location - where to write the netCDF files to. If not given, default is '.'
  • -v or --verbose - print additional information as the script runs
  • -t or --options - define options for netCDF file name as allowed by the standard, e.g. high-mode_15min

A description of all the available options can be obtained using the -h flag, for example

python process_wp.py -h

BASH scripts

Three scripts are provided for easy use:

  • make_netcdf.sh - makes netCDF file for a given date: ./make_netcdf.sh YYYYmmdd
  • make_today_netcdf.sh - makes netCDF file for today's data: ./make_today_netcdf.sh
  • make_yesterday_netcdf.sh - makes netCDF file for yesterday's data: ./make_yesterday_netcdf.sh

Within make_netcdf.sh, the following may need adjusting:

  • netcdf_path="/gws/...": replace file path with where to write netCDF files
  • filepath_trt0="/gws/...": replace file path with path to data. The same applies to filepath_trt1="/gws/..."
  • logfilepath"/home/...": replace file path with path for where to write log files

Further Information

  • read_wp.py contains the code that actually reads the raw data. This is called from within process_wp.py.
  • Some quality control is performed on the data. This is based on code from Emily Norton, the instrument scientist, and is included within read_wp.py.
  • See ncas_amof_netcdf_template or its documentation for more information on how the netCDF file is created, and the additional useful functions it contains.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.6%
  • Shell 2.4%