Skip to main content

IMD RSMC New Delhi cyclone best-track data as pandas DataFrames and xarray Datasets, kept up to date automatically.

Project description

imdtrack

CI codecov Docs PyPI Python versions

The India Meteorological Department (RSMC New Delhi) cyclone best-track record — every depression and cyclonic storm in the North Indian Ocean (Bay of Bengal & Arabian Sea) since 1982 — as a tidy pandas DataFrame or a CF-style xarray Dataset, kept up to date automatically.

IMD publishes the record as a single, hand-maintained Excel workbook. imdtrack turns it into clean, analysis-ready tables. The parsed dataset is committed to this repo (under data/) and refreshed by a monthly GitHub Action, so imd.load() just downloads the pre-parsed data — no Excel parsing on your side.

Install

pip install imdtrack            # pandas + pyarrow (reads the published parquet)
pip install imdtrack[xarray]    # + xarray/numpy for .to_xarray()
pip install imdtrack[all]       # everything

Usage

import imdtrack as imd

bt = imd.load()                 # pre-parsed dataset from GitHub (cached)
df = bt.observations            # tidy DataFrame: one row per 3-hourly fix
ds = bt.to_xarray()             # (storm, step) xarray.Dataset

bt = imd.load(update=True)      # re-download only if the repo published new data

bt.storm("2020-001")            # one storm's track (AMPHAN)
bt.storms                       # one row per storm (peak grade, max wind, ...)
bt.remarks                      # landfall / weakening notes, linked by storm_id

The tidy observations frame

column meaning
storm_id stable id, "<year>-<serial>" e.g. 2020-001
year, serial year and serial number of the system within that year
basin BOB (Bay of Bengal), ARB (Arabian Sea), or LAND
name cyclone name (blank for unnamed / older systems)
time observation time (UTC, datetime64)
lat, lon position (°N, °E)
ci_no Dvorak CI / T-number
pressure estimated central pressure (hPa)
wind maximum sustained surface wind (knots)
pressure_drop pressure drop / ΔP (hPa)
grade ordered category: D < DD < CS < SCS < VSCS < ESCS < SuCS
oci, oci_diameter outermost closed isobar pressure (hPa) & diameter (°)
step 0-based fix index within the storm

The xarray Dataset

Laid out like IBTrACS: a ragged track becomes a 2-D (storm, step) grid. Per-fix variables span both dims; storm-level metadata (name, basin, year, …) are storm coordinates.

ds = bt.to_xarray()
ds.sel(storm="2020-001")["wind"].max()      # AMPHAN peak intensity
ds.where(ds.basin == "ARB", drop=True)      # Arabian Sea storms only

See the documentation for a full walkthrough and a North Indian Ocean climatology example.

Staying up to date

A monthly GitHub Action re-fetches the IMD workbook and, only if it parses and passes validation, updates data/ — a broken upload can never overwrite the good published data. You normally don't have to do anything; imd.load(update=True) pulls the latest.

Notes & caveats

  • Data © India Meteorological Department. This library only reformats it; verify against IMD for operational use. The most recent season is tentative until IMD's post-season review.
  • Older years often lack storm names and some fields (e.g. central pressure); those appear as NaN.

Citation

Please cite imdtrack via its Zenodo Concept DOI (stable across releases — always resolves to the latest version). GitHub's "Cite this repository" button reads CITATION.cff. Replace XXXXXXXX with your concept DOI once the first release is archived on Zenodo.

License

BSD 3-Clause. See LICENSE.

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

imdtrack-0.2.0.tar.gz (151.9 kB view details)

Uploaded Source

Built Distribution

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

imdtrack-0.2.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imdtrack-0.2.0.tar.gz
  • Upload date:
  • Size: 151.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imdtrack-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7f32e16a6887d4d31c2876e8d38e28234b64e7cd5bef9bce3d9bfd74268504d1
MD5 2c207500297c0046905ebe6b976421f6
BLAKE2b-256 288e51889b497d9e5711eaa29a449dbb733ede0ad8d21e5cf592f85092576cc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for imdtrack-0.2.0.tar.gz:

Publisher: release.yml on syedhamidali/imdtrack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: imdtrack-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for imdtrack-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5c546a037b14f03a22df45d54dd1800f4413cc822a3f516266a43ac20628867
MD5 14925dc63a88a1aa00b00517bdf5cbae
BLAKE2b-256 9ccd74b66b4ce1f6a525d9fc2c5da342de09933432acac6f16389edd0968eb2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for imdtrack-0.2.0-py3-none-any.whl:

Publisher: release.yml on syedhamidali/imdtrack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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