Skip to main content

Simple CMR

Project description

simple-cmr

Python package to query NASA's Common Metadata Repository with a simple and intuitive API

Philosophy

The NASA Common Metadata Repository hosts a wealth of information related to Earth Observation data. However, so much information can be cumbersome to those that are not fully aware of what everything is or what information can be extracted from the database.

simple-cmr aims to provide a simplified interface to work with the NASA CMR including submitting a query, accessing important metadata, and retrieving data for use. This package is intended for practitioners to provide a simple interface to script searching for known datasets and downloading the data. This package is not meant to be a discovery tool, users would ideally know what data they want to search for.

Example

This is a simple example where one provides a collection concept ID (assuming one knows it) and space/time information to identify the granules that meet the criteria.

In this case we will be searching the Suomi-NPP ATMS Brightness Temperature collection (C1442068516-GES_DISC) over Southeast Asia for March 1, 2020.

import simplecmr as scmr

# construct query
query = scmr.Query(conceptid="C1442068516-GES_DISC", startTime='2020-03-01', endTime='2020-03-02', spatialExtent=[90,10,110,30], maxResults=10)

# print the granule information
query.granules

# download the first five granules that meet our query
query.granules.fetch((<username>,<password>),limit=5)

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

You can contribute in many ways:

Types of Contributions

Report Bugs

Report bugs at https://github.com/kmarkert/simple-cmr/issues.

If you are reporting a bug, please include:

  • Any details about your local setup that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.

Fix Bugs

Look through the GitHub issues for bugs. Anything tagged with "bug" is open to whoever wants to implement it.

Implement Features

Look through the GitHub issues for features. Anything tagged with "feature" is open to whoever wants to implement it.

Submit Feedback

The best way to send feedback is to file an issue at https://github.com/kmarkert/simple-cmr/issues.

If you are proposing a feature:

  • Explain in detail how it would work.
  • Keep the scope as narrow as possible, to make it easier to implement.
  • Remember that this is a volunteer-driven project, and that contributions are welcome :smile:

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

simplecmr-0.0.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

simplecmr-0.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file simplecmr-0.0.1.tar.gz.

File metadata

  • Download URL: simplecmr-0.0.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200712 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10

File hashes

Hashes for simplecmr-0.0.1.tar.gz
Algorithm Hash digest
SHA256 61296ada3dbbf397836e2710640d6df32f35ad20193859d7478c2e9b260bb82d
MD5 19dd6339975209f3c7b120cac87e89b1
BLAKE2b-256 ec6a5659642a7cf7c19ca514e84d2c4d23bb1d3ddcfdabd11cdca37602fd269a

See more details on using hashes here.

File details

Details for the file simplecmr-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: simplecmr-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200712 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10

File hashes

Hashes for simplecmr-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae84ecebc995053567d586a65477b9288d8eb54836773670af60464f870226f6
MD5 b239f944e70e2795cd01b876a71241e6
BLAKE2b-256 d9ede626ef04dbf1d27316b88b051f8bf1ce820dbf5474345c556b25faadbb7b

See more details on using hashes here.

Supported by

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