Obtain the climatology and anomalies only for monthly data.
Project description
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.
- 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
- 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:
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
Colorbar example
Sesonal climatology for rainfall
Remove a specific ocean or continent for rainfall
Extract information with a shapefile
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file clima_anom-0.7.5.tar.gz
.
File metadata
- Download URL: clima_anom-0.7.5.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4846e46eba1d2d515496cc8b2652b507d18c44af12e1ef10d0c58e47cf15f5d |
|
MD5 | 6680fb4e207cbb6b52cc0b7956e233da |
|
BLAKE2b-256 | d38b8b52578365fc5657e76772cf06060b08e1822ee88b3c31079fc5a722c276 |
File details
Details for the file clima_anom-0.7.5-py3-none-any.whl
.
File metadata
- Download URL: clima_anom-0.7.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73e5b7b8ba2ed95ab6dfe042976e8f2444b7aeb056818004b575bef2d7c39c65 |
|
MD5 | 4fe5795adb3bf382d43e2a6aaadae4e4 |
|
BLAKE2b-256 | b9e6e04f9abb17932ce562d754f7cfa32c9c1be12e1ebe261bf4582a597b68aa |