Skip to main content

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 import 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 = 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecape_parcel-1.0.3.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecape_parcel-1.0.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file ecape_parcel-1.0.3.tar.gz.

File metadata

  • Download URL: ecape_parcel-1.0.3.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ecape_parcel-1.0.3.tar.gz
Algorithm Hash digest
SHA256 baa0a1fbcbddc4ab7b217b387a4b45d0db56c4068928cd0ea918ad59056b23ad
MD5 d48a2f447d499122095e7d568ce2a8d8
BLAKE2b-256 29102c6a568c4bbd847c9b4d7d0cc1a0d3dd67d044cf044b86a488bc77f62bd3

See more details on using hashes here.

File details

Details for the file ecape_parcel-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ecape_parcel-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ecape_parcel-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5af10282d61a05e7cee9b4c2e990fff8b8439bf34326bbf9928b11174dca49e1
MD5 4e2df9180f57f490a3963d94fd052e2e
BLAKE2b-256 35c270d9cc62916aa26861ffa501b0881be1bbc104d64ba152584effe05d4cdc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page