Skip to content

developmentseed/pangeo-forge-cmr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.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 in this PR

About

pangeo-forge integration with CMR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%