项目作者: carbonplan

项目描述 :
data catalogs and utilities
高级语言: Jupyter Notebook
项目地址: git://github.com/carbonplan/data.git
创建时间: 2020-06-05T02:59:19Z
项目社区:https://github.com/carbonplan/data

开源协议:MIT License

下载






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

  1. python -m pip install carbonplan[data]

usage

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

  1. # google (us-central)
  2. export CARBONPLAN_DATA="https://storage.googleapis.com/carbonplan-data"
  3. # or
  4. # s3 (us-west-2)
  5. export CARBONPLAN_DATA="https://carbonplan-data.s3.us-west-2.amazonaws.com"
  1. # open the top level catalog
  2. from carbonplan.data import cat
  3. # extract an entry as a Dask-backed Xarray Dataset
  4. cat.mtbs["raster"](region="conus", resolution="4000m").to_dask()

developer documentation

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

  1. $ pytest -v

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

  1. foo:
  2. description: "skip this entry in the CI tests"
  3. metadata:
  4. 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.