Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add module to download GEDI data from NASA Earthdata #1

Open
maawoo opened this issue Aug 17, 2023 · 3 comments
Open

Add module to download GEDI data from NASA Earthdata #1

maawoo opened this issue Aug 17, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@maawoo
Copy link
Owner

maawoo commented Aug 17, 2023

https://github.com/nsidc/earthaccess

@maawoo maawoo added the enhancement New feature or request label Aug 17, 2023
@maawoo
Copy link
Owner Author

maawoo commented Jan 19, 2024

import earthaccess
import fiona

earthaccess.login()

vec = "download_aoi.geojson"
bounds = fiona.open(vec).bounds

results = earthaccess.search_data(
    short_name='GEDI02_A',
    bounding_box=bounds,
    #temporal=("2019-01-01", "2021-01-01"),
    count=-1
)

files = earthaccess.download(results, "./download/GEDI/L2A")

@maawoo
Copy link
Owner Author

maawoo commented Apr 8, 2024

Currently, only entire granules can be downloaded. Subsetting will be implemented sometime this year:
nsidc/earthaccess#467 (comment)

@maawoo
Copy link
Owner Author

maawoo commented May 10, 2024

As far as I understand, streaming granules using the open-method (instead of download as shown above) could already work to subset and extract data without the need to download the files to disk first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant