forked from nsidc/earthaccess
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into compatibility
- Loading branch information
Showing
37 changed files
with
5,243 additions
and
584 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: 🐞 Bug | ||
description: > | ||
A bug is an issue that differs from documentation or has unexpected behavior. | ||
title: "[BUG] {{ title }}" | ||
labels: | ||
- Bug | ||
- Needs Triage | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Is this issue already tracked somewhere, or is this a new report? | ||
description: Check if a similar issue has already been reported before submitting a new one. | ||
options: | ||
- label: I've reviewed existing issues and couldn't find a duplicate for this problem. | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Current Behavior | ||
description: A concise description of what you're experiencing. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: A concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Steps To Reproduce | ||
description: | | ||
Steps to Reproduce | ||
1. In this environment... | ||
2. With this config... | ||
3. Run '...' | ||
4. See error... | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Environment | ||
description: | | ||
Examples: | ||
- **OS**: Ubuntu 20.04 | ||
- **Python**: 3.11.2 | ||
value: | | ||
- OS: | ||
- Python: | ||
render: markdown | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Additional Context | ||
description: | | ||
Any additional information that might be helpful in resolving this issue, such as: | ||
- Error messages or stack traces | ||
- Relevant configuration files or code snippets | ||
Tip: You can attach files or images by clicking this area to highlight it and then dragging files in. | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: 🌟 Community support | ||
url: https://github.com/nsidc/earthaccess/discussions/categories/q-a | ||
about: Explore this section to ask questions, share insights, and connect with others about Earthdata access and usage. | ||
- name: 💡 Suggest a new feature | ||
url: https://github.com/nsidc/earthaccess/discussions/new?category=ideas | ||
about: Got a brilliant idea? Share your innovative suggestions to help us make amazing improvements! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# How to search for services using `earthaccess` | ||
|
||
You can search for services associated with a dataset. Services include a | ||
back-end processing workflow that transforms or processes the data in some way | ||
(e.g. clipping to a spatial extent or converting to a different file format). | ||
|
||
`earthaccess` facilitates the retrieval of service metadata via the | ||
`search_datasets` function. The results from the `search_datasets` method are | ||
an enhanced Python dictionary that includes a `services` method which returns | ||
the metadata for all services associated with a collection. The service results | ||
are returned as a Python dictionary. | ||
|
||
To search for services, import the earthaccess library and search by dataset | ||
(you need to know the short name of the dataset which can be found on the | ||
dataset landing page): | ||
|
||
```py | ||
import earthaccess | ||
|
||
datasets = earthaccess.search_datasets( | ||
short_name="MUR-JPL-L4-GLOB-v4.1", | ||
cloud_hosted=True, | ||
temporal=("2024-02-27T00:00:00Z", "2024-02-29T23:59:59Z"), | ||
) | ||
``` | ||
|
||
Parse the service results to return metadata on services available for the dataset. | ||
|
||
```py | ||
for dataset in datasets: | ||
print(dataset.services()) | ||
``` | ||
|
||
Alternatively, you may search directly for services. For example: | ||
|
||
```py | ||
services = earthaccess.search_services(provider="POCLOUD", keyword="COG") | ||
``` | ||
|
||
The keyword arguments supported by the `search_services` function are | ||
constrained to what the NASA CMR allows, as described in the | ||
[Service section of the CMR API](https://cmr.earthdata.nasa.gov/search/site/docs/search/api.html#service). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Documentation for `Collection Services` | ||
|
||
::: earthaccess.DataServices | ||
options: | ||
inherited_members: true | ||
show_root_heading: true | ||
show_source: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.