Pipeline tools for building and publishing analysis ready datasets.
Project description
pangeo-forge-cmr
Small library that integrates NASA's Common Metadata Repository (CMR) with pangeo-forge-recipes. The goal is to help make pangeo-forge recipes that use CMR for getting raw data.
Installation
You can install this from PyPI with pip install pangeo-forge-cmr
.
Example
from pangeo_forge_recipes.patterns import pattern_from_file_sequence
from pangeo_forge_recipes.recipes import XarrayZarrRecipe
from pangeo_forge_cmr import get_cmr_granules_links
# Get the GPM IMERG Late Precipitation Daily data
shortname = 'GPM_3IMERGDL'
recipe = XarrayZarrRecipe( # We are making Zarr, could be something else too
pattern_from_file_sequence(
get_cmr_granules_links(shortname), # Provide a list of files by querying CMR
nitems_per_file=1,
concat_dim='time', # Describe how the dataset is chunked
),
inputs_per_chunk=12,
)
Credit
Most of the CMR code was developed by Brianna Pagán in this PR
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
pangeo-forge-cmr-0.1.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for pangeo_forge_cmr-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 740bbeb49a2e0d70da94db1b559913c4948bf91ffa4ebacf9ac1d179994e8f33 |
|
MD5 | 1ba2c6cb7355219ba2687604e94ba7ef |
|
BLAKE2b-256 | eafd7e81ceca1c42542aff1cfda30e89e4c67b3df88d00e2a21049785f752d36 |