EarthData.jl

Julia interface to https://search.earthdata.nasa.gov
Author evetion
Popularity
4 Stars
Updated Last
1 Year Ago
Started In
August 2023

EarthData

Stable Dev Build Status Coverage

A Julia interface to search.earthdata.nasa.gov

Installation

] add EarthData

Usage

julia> using EarthData

# Search for all GEDI L2A granules
julia> gg = granules(short_name="GEDI02_A")
1000-element Vector{EarthData.UMM_G}:
 EarthData.UMM_G
 EarthData.UMM_G
 EarthData.UMM_G
 EarthData.UMM_G
 EarthData.UMM_G
 EarthData.UMM_G
 EarthData.UMM_G

# A single granule, with the non-empty fields shown by default
julia> g[1]
EarthData.UMM_G
        TemporalExtent
        CollectionReference
        RelatedUrls
        GranuleUR
        Platforms
        DataGranule
        MetadataSpecification
        PGEVersionClass
        Projects
        AdditionalAttributes
        ProviderDates
        SpatialExtent
        OrbitCalculatedSpatialDomains
        MeasuredParameters

julia> gg[1].RelatedUrls[1].URL
"https://e4ftl01.cr.usgs.gov//GEDI_L1_L2/GEDI/GEDI02_A.002/2019.04.18/GEDI02_A_2019108002012_O01959_01_T03909_02_003_01_V002.h5"

# To download from this url, one requires an EarthData account
# You can store your credentials on disk with `netrc!(<user>, <password>)`
# which then can be used by `download` and `s3download`.
# One could open the resulting file with SpaceLiDAR.jl
fn = EarthData.download(gg[1].RelatedUrls[1].URL, "test.h5")

Next

Implementing collections will be next on the list to implement.

Other Packages

For access to EarthData with Python see earthaccess.

Used By Packages

No packages found.