Skip to main content

A package to analyze and plot record-breaking temperatures.

Project description

from record_temp_analysis import compute_max_tasmax, plot_max_tasmax_timing, get_first_last_year

Define parameters

files_pattern = '/path/to/data/tasmax_day_reanalysis_era5_r1i1p1_{year}*.nc' lat_range = [47.0, 55.0] # Latitude range for the region of interest lon_range = [5.5, 15.5] # Longitude range for the region of interest lat_name = 'lat' # Name of latitude variable lon_name = 'lon' # Name of longitude variable

Automatically determine the first and last year in the data

start_year, end_year = get_first_last_year(files_pattern)

Compute the maximum tasmax and the timing over the period

max_tasmax, max_year, lats, lons = compute_max_tasmax(files_pattern, start_year, end_year, lat_range, lon_range, lat_name, lon_name)

Plot the timing of the maximum values with specified lat and lon range

plot_max_tasmax_timing(max_year, lats, lons, lat_range, lon_range, start_year, end_year)

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

record_temp_analysis_nc-0.1.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

record_temp_analysis_nc-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file record_temp_analysis_nc-0.1.3.tar.gz.

File metadata

  • Download URL: record_temp_analysis_nc-0.1.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for record_temp_analysis_nc-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6153860424519f6e0e904a756ab245116d7d65aae841f4f80da6956b565692cf
MD5 8f0fd785dc29e234a20df3a1c505d9c6
BLAKE2b-256 8f5a5a53b75502366a397b9608113326a98cfd1917e99f8f7e27f30a0a32a880

See more details on using hashes here.

File details

Details for the file record_temp_analysis_nc-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for record_temp_analysis_nc-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 50c4023f04973092e7f8f270f8616e0c3f5e3c447166c9ede726d167ad5905dd
MD5 a585d3dd9dd50a2384022ebb2f9db127
BLAKE2b-256 be85ac330b31df96dcd254523f05f2047b6a909c113e72819661ea03580148fb

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