VERTICAL PROFILE DATA RETRIEVAL TOOL
Project description
sounderpy
WELCOME! thank you for visiting SounderPy!
This script is used to access vertical profile data for calculations or plotting of a vertical profile (sounding).
Thank you for visiting SounderPy.
Why SounderPy?
- Sometimes data is tough to find, and often times is even tougher to get in the format you like. SounderPy gets you this data!
- The code needed for loading and parsing vertical data (especially from models) can be large and messy. SounderPy keeps it hidden away in a separate file -- just import and call sounderPy functions to keep your code clean!
SounderPy is used for:
- Accessing and loading raw vertical profile data from the sources listed above
- Parsing these raw data into a clean & simple-to-use format for calculations and plotting
- SounderPy offers a built-in quick MetPy plotting function, but sounderPy itself is meant as a source for accessing data -- not for plotting (that may be a future package ;) )
SounderPy is currently capable of accessing and processing data from:
- ECMWF CDS ERA5 reanalysis [1940-present] *note: you must set up an account through the CDS to unlock ERA5 data. (see: https://cds.climate.copernicus.eu/api-how-to)
- UNIDATA THREDDS TDS RAP reanalysis [2005-present]
- UNIDATA THREDDS TDS RUC reanalysis [2005-2020]
- The University of Wyoming RAOB archive [1973-present, depending on station]
- Iowa State University's RAOB archive [1945-present, depending on station]
How to use SounderPy:
- Make sure your environment has the required dependencies:
- metpy
- xarray
- urllib
- numpy
- siphon
- cartopy
- datetime
- cdsapi
- pandas
-
pip install sounderpy
-
import sounderpy as spy
-
year = '2014' month = '06' day = '16' hour = '20' latlon = [41.9, -97.01] method = 'rap'
-
raw_data = spy.get_model_data(method, latlon, year, month, day, hour)
-
clean_data = spy.parse_data(raw_data)
and boom! Now you have a callable dictionary of vertical profile data including...
- Temperature
- Dewpoint
- Relative Humidity
- Pressure
- Height
- Height AGL
- Vertical Velocity
- U-component Wind
- V-component Wind
You can make a quick plot of the data using built-in MetPy plotting functions!, just call...
spy.metpy_sounding(clean_data)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sounderpy-1.0.0.tar.gz
(16.2 kB
view hashes)
Built Distribution
sounderpy-1.0.0-py3-none-any.whl
(15.6 kB
view hashes)
Close
Hashes for sounderpy-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5666f9d8accd9b573c85ffe63e7a6d81338036c31aa1dc980fcf90f2904ac3a1 |
|
MD5 | 20b1a807a3db39ee426bc6add6f621e7 |
|
BLAKE2b-256 | e709b810b4f6b852b7a36dfc50624a16933185cac0130a31b1182cc8905c7d55 |