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.2.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.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hurricane_net-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 372d38daa011ba4945097d41cd2137604513b659de174ee7ae9cfcecb112a165
MD5 af980d836f37f824ab0f360cd9548bf3
BLAKE2b-256 bd7ee19bc1eeea3f8a14bbffd6461df5357c28bfdd736deb3d514d80ece30c8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hurricane_net-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 24c16bc44145ff04c0daf489c08ed5320a93222ee721e2a3203544a270624f73
MD5 5e22ece2576b13ccdea60c584125ebe2
BLAKE2b-256 d06838f4ba82ff7c6bb5cf1daf41144b43fcb7ec3d9cb5d7f95d6588b5c8b133

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