Metadata-Version: 2.1
Name: pangeo-forge-cmr
Version: 0.3
Summary: Pipeline tools for building and publishing analysis ready datasets.
Home-page: https://github.com/yuvipanda/pangeo-forge-cmr
Maintainer: Yuvi Panda, Brianna Pagán
Maintainer-email: yuvipanda@gmail.com, briannapagan@gmail.com
License: Apache
Keywords: pangeo,data
Classifier: Development Status :: 1 - Planning
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# pangeo-forge-cmr

Small library that integrates NASA's [Common Metadata Repository](https://www.earthdata.nasa.gov/eosdis/science-system-description/eosdis-components/cmr)
(CMR) with [pangeo-forge-recipes](https://github.com/pangeo-forge/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

```python
from pangeo_forge_recipes.recipes import XarrayZarrRecipe
from pangeo_forge_cmr import files_from_cmr

# Get the GPM IMERG Late Precipitation Daily data
shortname = 'GPM_3IMERGDL'

recipe = XarrayZarrRecipe( # We are making Zarr, could be something else too
    files_from_cmr( # Provide a list of files by querying CMR
        shortname,
        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](https://github.com/briannapagan)
in [this PR](https://github.com/pangeo-forge/staged-recipes/pull/190)
