Skip to main content

xcmocean

Build Status Code Coverage License:MIT Documentation Status Code Style Status Conda Version Python Package Index

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

Metadata

Release files for xcmocean 0.3.2

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

Source distribution (sdist)

Source distribution for xcmocean 0.3.2
File Size Uploaded
xcmocean-0.3.2.tar.gz 495.9 kB Details

Built distribution (wheel)

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

Total release size: 501.8 kB

Release files / xcmocean-0.3.2.tar.gz

Download URL xcmocean-0.3.2.tar.gz
Size 495.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7c55e1c0fcdea469c58331c25630e50e1d5ec0311581724f3e860c1a176cef9e
BLAKE2b-256 checksum
How to use checksums
bb9d8074951c695bf6affa8a76200f4d74b3e8564dff28d8c7229f50ab6d5df6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / xcmocean-0.3.2-py3-none-any.whl

Download URL xcmocean-0.3.2-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37c32e805b28af171b41737796c1d38ccc690844f100e1366819e6f412e6a785
BLAKE2b-256 checksum
How to use checksums
55ad4ca7f0ba9f332eb1827ecb2d9b9b7405e52140f50015d5bba344acc249ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.2.1

2 release files

0.0.0

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