Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pangeo-data/xcmocean

Open more actions menu

Repository files navigation

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

About

xarray accessor for automating choosing colormaps, aimed at geosciences

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.