{"id":27314236,"url":"https://github.com/pangeo-data/xcmocean","last_synced_at":"2025-04-12T07:40:02.780Z","repository":{"id":49888939,"uuid":"301845815","full_name":"pangeo-data/xcmocean","owner":"pangeo-data","description":"xarray accessor for automating choosing colormaps, aimed at geosciences","archived":false,"fork":false,"pushed_at":"2023-11-27T23:35:09.000Z","size":629,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-06-11T16:34:50.678Z","etag":null,"topics":["colormap","geosciences","xarray-accessor"],"latest_commit_sha":null,"homepage":"http://xcmocean.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pangeo-data.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-10-06T20:24:13.000Z","updated_at":"2024-01-18T09:11:50.000Z","dependencies_parsed_at":"2023-12-13T20:28:15.118Z","dependency_job_id":null,"html_url":"https://github.com/pangeo-data/xcmocean","commit_stats":{"total_commits":51,"total_committers":2,"mean_commits":25.5,"dds":0.2549019607843137,"last_synced_commit":"c2536e89eb73934d54939ee7653706dab6919230"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pangeo-data%2Fxcmocean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pangeo-data%2Fxcmocean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pangeo-data%2Fxcmocean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pangeo-data%2Fxcmocean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pangeo-data","download_url":"https://codeload.github.com/pangeo-data/xcmocean/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248536485,"owners_count":21120681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colormap","geosciences","xarray-accessor"],"created_at":"2025-04-12T07:40:02.302Z","updated_at":"2025-04-12T07:40:02.770Z","avatar_url":"https://github.com/pangeo-data.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xcmocean\n[![Build Status](https://img.shields.io/github/workflow/status/pangeo-data/xcmocean/Tests?logo=github\u0026style=for-the-badge)](https://github.com/pangeo-data/xcmocean/actions)\n[![Code Coverage](https://img.shields.io/codecov/c/github/pangeo-data/xcmocean.svg?style=for-the-badge)](https://codecov.io/gh/pangeo-data/xcmocean)\n[![License:MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)\n[![Documentation Status](https://img.shields.io/readthedocs/xcmocean/latest.svg?style=for-the-badge)](https://xcmocean.readthedocs.io/en/latest/?badge=latest)\n[![Code Style Status](https://img.shields.io/github/workflow/status/pangeo-data/xcmocean/linting%20with%20pre-commit?label=Code%20Style\u0026style=for-the-badge)](https://github.com/pangeo-data/xcmocean/actions)\n[![Conda Version](https://img.shields.io/conda/vn/conda-forge/xcmocean.svg?style=for-the-badge)](https://anaconda.org/conda-forge/xcmocean)\n[![Python Package Index](https://img.shields.io/pypi/v/xcmocean.svg?style=for-the-badge)](https://pypi.org/project/xcmocean)\n\nxarray accessor for automating choosing colormaps, aimed at geosciences.\n\nAlso optional dependence on `cf-xarray`.\n\n--------\n\n\u003cp\u003e\u003csmall\u003eProject based on the \u003ca target=\"_blank\" href=\"https://github.com/jbusecke/cookiecutter-science-project\"\u003ecookiecutter science project template\u003c/a\u003e.\u003c/small\u003e\u003c/p\u003e\n\n## Installation:\n\nYou can pip install from PyPI:\n```\npip install xcmocean\n```\n\nor install from conda-forge with\n```\nconda install -c conda-forge xcmocean\n```\n\n\n## Example usage:\n\n```\nimport xcmocean\n\nds.salt.cmo.contourf(x='lon', y='lat')\n```\n\nwhich would make a `contourf` plot of the `ds.salt` data using the `cmocean` `haline` colormap. More examples in the docs.\n\n## Dev installation for local work\n\nClone the repo:\n```\n$ git clone https://github.com/pangeo-data/xcmocean.git\n```\n\nIn the `xcmocean` directory, install conda environment:\n```\n$ conda env create -f environment.yml\n```\n\nTo also develop this package, install additional packages with:\n```\n$ conda install --file requirements-dev.txt\n```\n\nTo then check code before committing and pushing it to github, locally run\n```\n$ pre-commit run --all-files\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpangeo-data%2Fxcmocean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpangeo-data%2Fxcmocean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpangeo-data%2Fxcmocean/lists"}