A simple Python package that computes entrainment CAPE parcels.
Project description
ecape-parcel-py
A simple Python package that computes ECAPE values and parcel paths.
How To Use
This package has been written with the intention of using the same input data that MetPy can handle. This example script was used as a test during development, utilizing Kyle Gillett's SounderPy to get test data.
import sounderpy as spy
from ecape_parcel.calc import calc_ecape_parcel
# This file uses real-world meteorological data as a test for the ECAPE parcel code.
# May be removed from repository later on if any circular dependency issues come up
year = '2013'
month = '05'
day = '20'
hour = '17'
latlon = [35.18, -97.44]
method = 'rap'
raw_data = spy.get_model_data(method, latlon, year, month, day, hour)
clean_data = spy.parse_data(raw_data)
p = clean_data['p']
T = clean_data['T']
Td = clean_data['Td']
z = clean_data['z']
u = clean_data['u']
v = clean_data['v']
parcel_p, parcel_z, parcel_T, parcel_Td = calc_ecape_parcel(p, z, T, Td, u, v, True)
The last parameter controls the vertical resolution of the returned parcel path. If set to False
, the parcel path will have a constant vertical resolution of 20 meters, which is the dz
value used by the parcel path solver internally. If set to True
, the parcel path will only contain values from the exact same pressure levels as the pressure array used as an input.
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
Built Distribution
Hashes for ecape_parcel-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b88c9a1f359bbf862ed9e59c7f2994ee17a862a906df1b63f390c53b4bf656b |
|
MD5 | a6c3d95ee9ecc7a3d5ce388f581ca8dd |
|
BLAKE2b-256 | 2533cc7c7574efbfdbb7e8146686a0741653000c0fd9a29a2e9bea8926795676 |