A library for lossy compression of netCDF files using xarray
Project description
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.
Installation using Conda (recommended)
Ensure conda is up to date and create a clean Python (3.6+) environment:
conda update conda
conda create --name ldcpy python=3.8
conda activate ldcpy
Now install ldcpy:
conda install -c conda-forge ldcpy
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)
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
File details
Details for the file ldcpy-0.15.4.tar.gz
.
File metadata
- Download URL: ldcpy-0.15.4.tar.gz
- Upload date:
- Size: 243.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32aa5a05107a383ad99d1a2617495dde7d8a2ef26c52551d63f9990d5a115d5f |
|
MD5 | e135b74017812c32aa4490f974ca0fff |
|
BLAKE2b-256 | c03da9816d86156578c3e92956f1d6d1494d4da8ab5755fb2a78b1513b62a89d |
File details
Details for the file ldcpy-0.15.4-py3-none-any.whl
.
File metadata
- Download URL: ldcpy-0.15.4-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62f7bc64ceba3573a6c7e8e8b62d30cdcc546f416b58eebad6d39e1f1c51b911 |
|
MD5 | 3367015fe756fbc03a7ada08bfd51c86 |
|
BLAKE2b-256 | 6f7d0ab0f03a46105e297ea1e13830d074cb7b081f089ad1110831ebe5f6140a |