maawoo/gedixr

Add module to download GEDI data from NASA Earthdata

maawoo opened this issue · 3 comments

maawoo commented
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")

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

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.