Skip to main content

A Python package that provides tropical storm and hurricane data, tools, and artificial intelligence.

Project description

Hurricane Net

hurricane_net is a Python package designed to facilitate the analysis and exploration of hurricane and tropical storm data from the International Best Track Archive for Climate Stewardship (IBTrACS). The package leverages the power of Pandas to filter and manipulate data, making it easier to perform analyses on specific storm regions or types, such as Atlantic hurricanes.

Features

  • Data Loading: Easily load IBTrACS data directly from a provided URL.
  • Filtering: Filter data by storm basin or type (e.g., hurricanes) using intuitive methods.
  • Logging: Comprehensive logging for debugging and tracking the data loading and filtering processes.
  • Prompt Templates: Use predefined prompt templates for generating daily reports or other structured outputs.

Installation

To install hurricane_net, you can use pip to install it from a local source or directly from a repository if available. If you are building a wheel, follow the instructions in the setup documentation.

pip install hurricane_net

Usage

Below are examples demonstrating how to use hurricane_net to load, filter, and generate reports on storm data.

Importing the Package

import hurricane_net as hn

Loading and Filtering Data

  1. Load Latest Data

    Load the IBTrACS data from a specified URL. The default URL points to the IBTrACS database. Run this again to update data to the latest.

    data_loader = hn.data()
    

    Note that this requires internet so that the latest data is available.

  2. Create Data Frame

    Filter the data based on different criteria. For example, to get all storms, Atlantic storms, or hurricanes:

    # Load all available storms
    data_loader.filter('all')
    all_storms = data_loader.storms
    
    # Load storms from the North Atlantic basin
    data_loader.filter('NA')
    atlantic_storms = data_loader.storms
    
    # Load hurricanes (NA basin with USA_STATUS 'HU' or 'HR')
    data_loader.filter('hurricanes')
    hurricanes = data_loader.storms
    
  3. Logging

    The package logs all major actions, such as data loading and filtering, to help trace operations.

Generating Reports

The Prompt class provides functionality to generate reports using predefined templates.

References

Troubleshooting

License

This package is open source. Please see the LICENSE file for more information.

Contributing

Contributions are welcome! Please feel free to open issues or submit pull requests.

Acknowledgments

This package uses data from the International Best Track Archive for Climate Stewardship (IBTrACS) maintained by NOAA's National Centers for Environmental Information (NCEI).

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

hurricane_net-0.1.4.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

hurricane_net-0.1.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file hurricane_net-0.1.4.tar.gz.

File metadata

  • Download URL: hurricane_net-0.1.4.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for hurricane_net-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c8e35e970ef96cd864d64e935cd1d1eb06a5ce94b44f3e804f55f4d85ddcf66b
MD5 17a80eaf01cee6df1a3c67ecdb1b1bbe
BLAKE2b-256 85ca026508f415ff9e4bd5f712d3938cbc4dc5cfcbec23f58dc4e09db79ce727

See more details on using hashes here.

File details

Details for the file hurricane_net-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: hurricane_net-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for hurricane_net-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eee85dd77e381d6ff0a7903fec2fcfe1b89e3fe7ac25b8bf132f94cbc6b237ef
MD5 27ee4d397b4c0f83c44a360ff257ecf0
BLAKE2b-256 b3b4929d5a17e77cfecfb72a1e8470a22cef34ed1e5c0ee3e14f55507d536dc2

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