Skip to main content

About

Hotspell is a Python package that detects past heat wave events using daily weather station data of minimum and maximum air temperature. The user can choose between a range of predefined threshold-based and percentile-based heat wave indices or alternatively can define a full customizable index.

The main output of hotspell are the dates and characteristics of heat waves found within the study period, stored in a pandas DataFrame. If selected by the user, summary statistics (i.e. annual metrics) of the heat wave events are also computed.

Documentation is available at Read the Docs.

Installation

Required dependencies are:

These packages should be installed beforehand, using the conda environment management system that comes with the Anaconda/Miniconda Python distribution.

Then, hotspell can be installed from PyPI using pip:

pip install hotspell

Quick Start

  1. Import the hotspell package

import hotspell
  1. Choose the heat wave index CTX90PCT

index_name = "ctx90pct"
hw_index = hotspell.index(name=index_name)
  1. Set your data path of your CSV file

mydata = "my_data/my_file.csv"

The CSV file should include the following columns

  • Year

  • Month

  • Day

  • Tmin

  • Tmax

in the above order, without a header line. Each day should be in a seperate line; missing days/lines are allowed.

For example:

1999

8

29

23.2

37.1

1999

8

31

24.1

37.7

  1. Find the heat wave events

hw = hotspell.get_heatwaves(filename=mydata, hw_index=hw_index)
heatwaves_events = hw.events
heatwaves_metrics = hw.metrics

Acknowledgements

Hotspell is developed during research under the Greek project National Network for Climate Change and its Impact, CLIMPACT.

License

Hotspell is licensed under the BSD 3-clause license.

Release files for hotspell 0.1.5.8

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

Source distribution (sdist)

Source distribution for hotspell 0.1.5.8
File Size Uploaded
hotspell-0.1.5.8.tar.gz 17.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hotspell 0.1.5.8
File Interpreter ABI Platform
hotspell-0.1.5.8-py3-none-any.whl Python 3 none any Details

Total release size: 37.3 kB

Release files / hotspell-0.1.5.8.tar.gz

Download URL hotspell-0.1.5.8.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
60b326d1c9a3f679c420448a88ec791bfdd908be3967cb9e7b0bff440fbfbc8a
BLAKE2b-256 checksum
How to use checksums
ca63cae617fe6cd4f66ef058309aeab3b7b577a2d4adeed2b552368b20fa3861
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/6.0.0 pkginfo/1.9.6 requests/2.31.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.9.18

Release files / hotspell-0.1.5.8-py3-none-any.whl

Download URL hotspell-0.1.5.8-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7b1c7ce139f44295bf9010591872e3ebfc64d29a95719e2d35b9a7f81609111
BLAKE2b-256 checksum
How to use checksums
a2b14d71f92d4effa7ca2eab156bff9e492091b065b5abdeac5fdf5f4088d1b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/6.0.0 pkginfo/1.9.6 requests/2.31.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.1.5.8 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

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