Skip to main content

A small example package

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. Initialize the Data Loader

    Load the IBTrACS data from a specified URL. The default URL points to the IBTrACS database.

    data_loader = hn.data()
    
  2. Filter Data

    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.0.3.tar.gz (7.4 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.0.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hurricane_net-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ca7bb7b90a9c2dcd6de5feb1068f3962630ffd38485e0476136826e65b3cd3b6
MD5 b27caf3478a2629e1caa612d8be4498e
BLAKE2b-256 ebfc4d609d7f51e8e4530a9e96db10493805a7914e564e0e9bb4c63bc1508025

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hurricane_net-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 38a20fd15dce2eb784c5e867439b7c1d4b4c7bdd12124e98ecdbb2bdc2185786
MD5 3159ae9af48ffc0787f8340f0eda3afa
BLAKE2b-256 f26d0e5d9243f533fa4ea9435a0b511b8069547f16b05993bcb69048c7b9858a

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