Skip to main content

A library for lossy compression of netCDF files using xarray

Project description

GitHub Workflow CI Status GitHub Workflow Code Style Status https://img.shields.io/codecov/c/github/NCAR/ldcpy.svg?style=for-the-badge Documentation Status Python Package Index Conda Version https://img.shields.io/badge/DOI-10.5281%20%2F%20zenodo.215409079-blue.svg?style=for-the-badge

Large Data Comparison for Python

ldcpy is a utility for gathering and plotting metrics from NetCDF or Zarr files using the Pangeo stack. It also contains a number of statistical and visual tools for gathering metrics and comparing Earth System Model data files.

AUTHORS:

Alex Pinard, Allison Baker, Anderson Banihirwe, Dorit Hammerling

COPYRIGHT:

2020 University Corporation for Atmospheric Research

LICENSE:

Apache 2.0

Documentation and usage examples are available here.

Reference to ldcpy paper

  1. Pinard, D. M. Hammerling, and A. H. Baker. Assessing differences in large spatio­temporal climate datasets with a new Python package. In The 2020 IEEE International Workshop on Big Data Reduction, 2020. doi: 10.1109/BigData50022.2020.9378100.

Link to paper: https://doi.org/10.1109/BigData50022.2020.9378100

Alternative Installation

Ensure pip is up to date, and your version of python is at least 3.6:

pip install --upgrade pip
python --version

Install cartopy using the instructions provided at https://scitools.org.uk/cartopy/docs/latest/installing.html.

Then install ldcpy:

pip install ldcpy

Accessing the tutorial

If you want access to the tutorial notebook, clone the repository (this will create a local repository in the current directory):

git clone https://github.com/NCAR/ldcpy.git

Start by enabling Hinterland for code completion and code hinting in Jupyter Notebook and then opening the tutorial notebook:

jupyter nbextension enable hinterland/hinterland
jupyter notebook

The tutorial notebook can be found in docs/source/notebooks/TutorialNotebook.ipynb, feel free to gather your own metrics or create your own plots in this notebook!

Other example notebooks that use the sample data in this repository include PopData.ipynb and MetricsNotebook.ipynb.

The AWSDataNotebook grabs data from AWS, so can be run on a laptop with the caveat that the files are large.

The following notebooks asume that you are using NCAR’s JupyterHub (https://jupyterhub.ucar.edu): LargeDataGladenotebook.ipynb, CompressionSamples.ipynb, and error_bias.ipynb

Re-create notebooks with Pangeo Binder

Try the notebooks hosted in this repo on Pangeo Binder. Note that the session is ephemeral. Your home directory will not persist, so remember to download your notebooks if you make changes that you need to use at a later time!

Note: All example notebooks are in docs/source/notebooks (the easiest ones to use in binder first are TutorialNotebook.ipynb and PopData.ipynb)

Binder

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ldcpy-0.16.tar.gz (241.9 MB view details)

Uploaded Source

Built Distribution

ldcpy-0.16-py3-none-any.whl (47.1 kB view details)

Uploaded Python 3

File details

Details for the file ldcpy-0.16.tar.gz.

File metadata

  • Download URL: ldcpy-0.16.tar.gz
  • Upload date:
  • Size: 241.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for ldcpy-0.16.tar.gz
Algorithm Hash digest
SHA256 a744eebe9ddb043218d78c32b0d48c51178bd2121b6fc85ce867af7e99899cb1
MD5 5b456df8c8e5760449e3e18983c815fa
BLAKE2b-256 660e90dd811d098427b4b9b5156c63fc6893b4f2229ada9e898fe952fb87f219

See more details on using hashes here.

File details

Details for the file ldcpy-0.16-py3-none-any.whl.

File metadata

  • Download URL: ldcpy-0.16-py3-none-any.whl
  • Upload date:
  • Size: 47.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for ldcpy-0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 d787c21044e433b3da28bb196840ad49a278f2a01ac054cde5f3ded5c9a9bb22
MD5 b95293694bec4ed9ed8f8d76f133207f
BLAKE2b-256 d76067075b7643d0f8ca5aa3198ab883ca7b6cc49935389d30545cf168c8be91

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page