Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting script radiosounding #21

Merged
merged 18 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.11

- name: Install dependencies with pip
run: |
Expand All @@ -26,3 +26,23 @@ jobs:
- run: flake8
- run: mypy
- run: pytest --cov --cov-fail-under=50
test_plotting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install dependencies with pip
run: |
python -m pip install -e .[dev]
- name: Create plots
run: |
python scripts/plot_radiosonde_data.py -i examples/level1/EUREC4A_BCO_Vaisala-RS_L1-ascent_20200126T2244_v3.0.0.nc -o artifacts
- name: Upload plots
uses: actions/upload-artifact@v3
with:
name: figures
path: |
artifacts
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
CHANGELOG
=========

unreleased
------------------

* Add scripts to plot radiosonde data incl. trajectory, skewT and profiles of measured quantities (:pr:`21`) `Laura Köhler`_.

0.0.4 (2022-11-02)
------------------

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bottleneck
cartopy
coverage==5.3.1
dask
metpy
Expand Down
17 changes: 17 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Visualization of level 1 radiosonde data

This folder contains a plotting script for converted level 1 sounding data

Requirements: The script needs the `metpy` package (`conda install metpy`).

Running the script:
```
python plot_radiosonde_data.py -i infile -o outdir
```
* `infile`: input file. It should include the direction (ascent or descent) in its name. If no direction is given in the name of the input file, no SkewT plot will be created.
* `outdir`: output directory. Three subfolders `Quantities`, `SkewT`, and `Trajectories` will be created in the output directory if not already existing.

The script produces 3 plots:
* Trajectory of the radiosonde in `Trajectories`
* Temperature T, dew point tau, relative humidity rh, water vapor mixing ratio mr, wind speed, and wind direction in `Quantities`
* SkewT diagram in `SkewT` (only if the direction, i.e. ascent or descent, is given in the input file name)
Loading
Loading