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

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.1.tar.gz (7.3 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.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hurricane_net-0.0.1.tar.gz
  • Upload date:
  • Size: 7.3 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.1.tar.gz
Algorithm Hash digest
SHA256 a691a857dd93d0e23cadbdcb28d47449079b592ac0df017b184138f4232efc7e
MD5 ed146b8517b950505fbf0d1389c80a61
BLAKE2b-256 e710d570868f6fbb6d0ef03b3070e30c876e058f00cc01974e4426fec5dd4e22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hurricane_net-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c91e944880c6eab44c21074077a6cd9cb850090f4cfb91adbe2b7908bffaac2f
MD5 742b8ba70e4763a513fee96c2d5239d5
BLAKE2b-256 623c7f109353fe9c95c2a8d73285f92961135f787912f43cdee829f03abb269e

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