Skip to main content

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).

Metadata

Release files for hurricane-net 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hurricane-net 0.1.4
File Size Uploaded Provenance
hurricane_net-0.1.4.tar.gz 7.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hurricane-net 0.1.4
File Interpreter ABI Platform
hurricane_net-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / hurricane_net-0.1.4.tar.gz

Download URL hurricane_net-0.1.4.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c8e35e970ef96cd864d64e935cd1d1eb06a5ce94b44f3e804f55f4d85ddcf66b
BLAKE2b-256 checksum
How to use checksums
85ca026508f415ff9e4bd5f712d3938cbc4dc5cfcbec23f58dc4e09db79ce727
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / hurricane_net-0.1.4-py3-none-any.whl

Download URL hurricane_net-0.1.4-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eee85dd77e381d6ff0a7903fec2fcfe1b89e3fe7ac25b8bf132f94cbc6b237ef
BLAKE2b-256 checksum
How to use checksums
b3b4929d5a17e77cfecfb72a1e8470a22cef34ed1e5c0ee3e14f55507d536dc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Security for hurricane-net 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page