Skip to main content

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

# (N, 5) array with columns [u250, v250, u850, v850, lat]
# u250, v250, u850, v850: wind predictors (m s^−1)
# lat: storm latitude (degrees)
X = np.array([
    [5.0, 1.0, 3.0, -1.0, 15.0],
    [6.0, 1.5, 3.5, -0.5, 16.0],
    [7.0, 2.0, 4.0,  0.0, 17.0],
])

# Predict longitude displacement
delta_lon = predict_track("WNP", "lon", X)

# Predict latitude displacement
delta_lat = predict_track("WNP", "lat", X)

Parameters

  • basin: str — one of "AS", "BoB", "WNP", "ENP", "NA", "SI", "SP"
  • type: str"lon" (zonal displacement) or "lat" (meridional displacement)
  • X: numpy.ndarray — 2D array of shape (N, 5) with columns [u250, v250, u850, v850, lat]

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


Download files

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

Source Distribution

pepc_global_track-0.2.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

pepc_global_track-0.2.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pepc_global_track-0.2.0.tar.gz.

File metadata

  • Download URL: pepc_global_track-0.2.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for pepc_global_track-0.2.0.tar.gz
Algorithm Hash digest
SHA256 313ea90ef7721fc0d58d39b155dd95ebf8edbc877599332f0e7e46e9db8420cf
MD5 0ca7de1e1a972a53029e1e02969c2bae
BLAKE2b-256 db06ca81b2f9ef34a8eec9f7ddfe80c8807e4c7643c5bfb53975abec1e23b860

See more details on using hashes here.

File details

Details for the file pepc_global_track-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pepc_global_track-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c133d45f680b44241877f2dcfb0d74875963f5af6ef72a6e2acb7d3de252a927
MD5 642551eba3bb7beba13cd3ef9f2ca51d
BLAKE2b-256 c83279c6bc74f69c968ab21bdce90ec890b74925ab2392eecccb2e2ee218b21c

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