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.

Optionally, you can check if your workspace is configured correctly by navigating to the side panel tab Workspaces and selecting the workspace’s settings page via the ‘Configure Workspace’ button:

Configure Workspace

Check that the container name is

  - name: jupyter
    image: ''

Click SAVE and then click APPLY. You are now ready to launch a Jupyter Notebook and access external granule data.

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='')

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