Accessing External Granule Data

It is possible to download granules hosted on external Distributed Active Archive Centers (DAACs) using the MAAP ADE. This data is hosted externally from the MAAP but can be accessed using the MAAP ADE’s authentication systems.

In order to do this, we start by creating a Jupyter workspace within the NASA Goddard Commercial Cloud (GCC) MAAP ADE. Using the left-hand navigation, select “+ Get Started” and then select the “Jupyter - MAAP Basic Stable” workspace.

Create Jupyter Workspace

Alternatively, you can create a workspace using the “Workspaces” interface. See Create Workspace for more information.

Accessing data from Jupyter Notebooks in your workspace

Within your Jupyter Notebook, start by importing the maap package. Then invoke the MAAP, setting the maap_host argument to

# import the maap package to handle queries
from maap.maap import MAAP
# invoke the MAAP using the MAAP host argument
maap = MAAP(maap_host='')

External data access application approval

In order to access external DAAC data from the ADE, MAAP uses your Earthdata Login profile to send a data request to the desired DAAC application. For an example on how to grant access to an external DAAC, see this example on granting access to Goddard Earth Sciences Data and Information Services Center (GES DISC) from your Earthdata Login profile.

If Earthdata Login access is not granted to your target DAAC application, the following examples will result in a 401 permission error.

Accessing Sentinel-1 Granule Data from the Alaska Satellite Facility (ASF)

Search for a granule using the searchGranule function (for more information on searching for granules, see Searching for Granules in MAAP). Then utilize the getData function, which downloads granule data if it doesn’t already exist locally. We can use getData to download the first result from our granule search into the file system and assign it to a variable (in this case download).

# search for granule data using the collection concept ID argument
results = maap.searchGranule(collection_concept_id='C1200231010-NASA_MAAP')
# download first result
download = results[0].getData()

We can then use the print function to see the file name and directory.

# print file directory

Accessing Global Ecosystem Dynamics Investigation (GEDI) Level 3 Granule Data from the Oak Ridge National Lab (ORNL)

We use a similar approach in order to access GEDI Level 3 granule data. Note that we can use searchGranule’s cmr_host argument to specify a CMR instance external to MAAP.

# search for granule data using CMR host name, collection concept ID, and Granule UR arguments
results = maap.searchGranule(
# download first result
download_2 = results[0].getData()

As in the previous example, we can use the print function to see the file name and directory.

# print file directory