Skip to main content

Obtain the climatology and anomalies only for monthly data.

Project description

GitHub last commit GitHub commit activity GitHub contributors PyPI GitHub pull requests GitHub repo size GitHub top language

Climatology and Anomalies in Python

Overview

This code provides experimental and simples tools for differents operations on climate data, mainly obtaining climatologies and anomalies values, in addition to others operations such as data extraction from continent, ocean or a shapefile.

Pip install

pip install clima-anom

Manual installation

clone clima_anom and install in exists or new conda env.

  1. Clone repo and install
git clone https://github.com/mhacarthur/clima_anom.git
cd clima_anom
pip install .

Dependencies

  • Python >= 3.5
  • cartopy == 0.18.0
  • netcdf4 == 1.5.7
  • pyshp == 2.1.3
  • Option: Linux
  1. How to install dependencies
# cartopy
conda install -c conda-forge cartopy
# netcdf4
conda install netcdf4
# pyshp
pip install pyshp

Data

The data use for examples is in directory data. For complete data see:

TRMM Precipitation L3 daily 0.25x0.25 V7

Example

import os
import clima_anom as ca

data_dir = '..'+os.sep+'data'+os.sep+'3B42_199901_201212.nc'
data = ca.read_netcdf(data_dir,2)

lat = data['lat']
lon = data['lon']
pre = data['prec']

pre_dictionary = ca.data_dictionary(pre)

Figures

Montlhy climatology for rainfall

Monthly_Climatology

Colorbar example

colorbar1
colorbar2

Sesonal climatology for rainfall

Seasonal Climatology

Remove a specific ocean or continent for rainfall

Wind remove mask

Extract information with a shapefile

Shapefile

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

clima_anom-0.7.6.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

clima_anom-0.7.6-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file clima_anom-0.7.6.tar.gz.

File metadata

  • Download URL: clima_anom-0.7.6.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for clima_anom-0.7.6.tar.gz
Algorithm Hash digest
SHA256 c7da6f4df5c56f9a565abd62e6ef98f1fb233f7733183c4d7748f2cb7999af0a
MD5 7a87de9bf81daab69856de48f872730d
BLAKE2b-256 e286559a0ca4135fad4413e8a85652379d77abfd7816e7276e8c86ee5f679174

See more details on using hashes here.

File details

Details for the file clima_anom-0.7.6-py3-none-any.whl.

File metadata

  • Download URL: clima_anom-0.7.6-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for clima_anom-0.7.6-py3-none-any.whl
Algorithm Hash digest
SHA256 687240c9d474cd80773871f4f0a93ccd9fbab5beb9c9bf61a5e98a6caf4f710e
MD5 d679c46910a903de2b9b4066474958b2
BLAKE2b-256 0acddf6254a865e7a56c3ce4595b18b7ef79f18bd3ced2cd5a0cde6c0fc2d975

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page