Opinionated xarray accessor for choosing colormaps
Project description
xcmocean
xarray accessor for automating choosing colormaps, aimed at geosciences.
Also optional dependence on cf-xarray.
Project based on the cookiecutter science project template.
Installation:
You can pip install from PyPI:
pip install xcmocean
or install from conda-forge with
conda install -c conda-forge xcmocean
Example usage:
import xcmocean
ds.salt.cmo.contourf(x='lon', y='lat')
which would make a contourf plot of the ds.salt data using the cmocean haline colormap. More examples in the docs.
Dev installation for local work
Clone the repo:
$ git clone https://github.com/pangeo-data/xcmocean.git
In the xcmocean directory, install conda environment:
$ conda env create -f environment.yml
To also develop this package, install additional packages with:
$ conda install --file requirements-dev.txt
To then check code before committing and pushing it to github, locally run
$ pre-commit run --all-files
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xcmocean-0.3.2.tar.gz.
File metadata
- Download URL: xcmocean-0.3.2.tar.gz
- Upload date:
- Size: 495.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c55e1c0fcdea469c58331c25630e50e1d5ec0311581724f3e860c1a176cef9e
|
|
| MD5 |
2a08e078d079f056bc6be43b6cac0917
|
|
| BLAKE2b-256 |
bb9d8074951c695bf6affa8a76200f4d74b3e8564dff28d8c7229f50ab6d5df6
|
File details
Details for the file xcmocean-0.3.2-py3-none-any.whl.
File metadata
- Download URL: xcmocean-0.3.2-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37c32e805b28af171b41737796c1d38ccc690844f100e1366819e6f412e6a785
|
|
| MD5 |
9c31f11ad5da4e969dd4f4be49c66747
|
|
| BLAKE2b-256 |
55ad4ca7f0ba9f332eb1827ecb2d9b9b7405e52140f50015d5bba344acc249ec
|