Skip to main content

Preprocessing utilities for CarbonPlan's data catalog

Project description

CarbonPlan monogram.

carbonplan / data

data catalog and curation

CI PyPI License: MIT

This repository includes our main data catalog as well as our pre-processing utilities.

install

python -m pip install carbonplan[data]

usage

The CarbonPlan data archives are currently mirrored on Google Cloud Storage (US-Central) and Microsoft Azure (US-West). Set the CARBONPLAN_DATA environment variable before using the Intake catalog below:

# google (us-central)
export CARBONPLAN_DATA="https://storage.googleapis.com/carbonplan-data"
# or
# azure (us-west)
export CARBONPLAN_DATA="https://carbonplan.blob.core.windows.net/carbonplan-data"
# open the top level catalog
from carbonplan.data import cat

# extract an entry as a Dask-backed Xarray Dataset
cat.mtbs["raster"](region="conus", resolution="4000m").to_dask()

developer documentation

To run the unit and integration tests for this API, run:

$ pytest -v

Catalog entries scan be marked as either skip or xfail by setting the ci key in the metadata dictionary:

foo:
  description: "skip this entry in the CI tests"
  metadata:
    ci: skip

license

All the code in this repository is MIT-licensed. When possible, the data is licensed using the CC-BY-4.0 license. We include attribution and additional license information for third party datasets, and we request that you also maintain that attribution if using this data.

about us

CarbonPlan is a nonprofit organization that uses data and science for climate action. We aim to improve the transparency and scientific integrity of climate solutions with open data and tools. Find out more at carbonplan.org or get in touch by opening an issue or sending us an email.

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

carbonplan_data-0.4.3.tar.gz (60.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

carbonplan_data-0.4.3-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file carbonplan_data-0.4.3.tar.gz.

File metadata

  • Download URL: carbonplan_data-0.4.3.tar.gz
  • Upload date:
  • Size: 60.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for carbonplan_data-0.4.3.tar.gz
Algorithm Hash digest
SHA256 cfa9133f620e60f59523b96a0618a536adfd465f9ebd05cbcdc37b59d191ae42
MD5 0b7726b3db35e4ebaca76f9ca8e8ae18
BLAKE2b-256 3564b2775c79ef1acab522ef20a7ceb12234ef202738c0eceac467d466b84959

See more details on using hashes here.

File details

Details for the file carbonplan_data-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for carbonplan_data-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c2acd3f5f08d86bceba032521d36e597af6104c06bca43d64db23d5734d731
MD5 9a2934db16a177d55be05f94615fb1f4
BLAKE2b-256 9cc2314c486d7d0d87ed10c1a030deb454c07b7663aba339dcd9c8af1327e2a8

See more details on using hashes here.

Supported by

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