Predict tropical cyclone track displacements using pre-trained Random Forest models
Project description
pepc-global-track
Predict tropical cyclone track displacements (longitude or latitude) using pre-trained Random Forest models.
Installation
pip install pepc-global-track
Usage
import numpy as np
from pepc_global_track import predict_track
# 1D arrays of environmental predictors at storm locations
u250 = np.array([5.0, 6.0, 7.0]) # 250 hPa zonal wind (m s^−1)
v250 = np.array([1.0, 1.5, 2.0]) # 250 hPa meridional wind (m s^−1)
u850 = np.array([3.0, 3.5, 4.0]) # 850 hPa zonal wind (m s^−1)
v850 = np.array([-1.0, -0.5, 0.0]) # 850 hPa meridional wind (m s^−1)
lat = np.array([15.0, 16.0, 17.0]) # storm latitude (degrees)
# Predict longitude displacement
delta_lon = predict_track("WNP", "lon", u250, v250, u850, v850, lat)
# Predict latitude displacement
delta_lat = predict_track("WNP", "lat", u250, v250, u850, v850, lat)
Parameters
- basin:
str— one of"AS","BoB","WNP","ENP","NA","SI","SP" - type:
str—"lon"(zonal displacement) or"lat"(meridional displacement) - u250, v250, u850, v850:
numpy.ndarray— 1D arrays of wind predictors - lat:
numpy.ndarray— 1D array of storm latitudes
Returns
numpy.ndarray— 1D array of predicted displacements (no noise added)
Model Weights
Model weights are automatically downloaded from HuggingFace on first use and cached locally.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pepc_global_track-0.1.0.tar.gz.
File metadata
- Download URL: pepc_global_track-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
512a8f1541ecb83e15dea012271eef404ca4763d1e51da312997364c7162b771
|
|
| MD5 |
d93ae84e747b81d863bc9c2822de591f
|
|
| BLAKE2b-256 |
e2d08915fad86d945632b4b175d8c53730d154071504b05eacad8ed102e6d567
|
File details
Details for the file pepc_global_track-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pepc_global_track-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a2ec30ff81f8528eb545b26396ffd13f159b82d43bb199ff833fbea5969873
|
|
| MD5 |
de09187c7c03642804e5e95e5f33629d
|
|
| BLAKE2b-256 |
4b007b90047034eec0dad91f5895f0080c44f64da37d6e60eb0531c48d2e3c00
|