# import the MAAP package
from maap.maap import MAAP
import ipycmc

# import printing package to help display outputs
from pprint import pprint

# create MAAP class
maap = MAAP()

Visualizing 3D Tiles

The ATL08 V003 product is available as an Entwine Point Tile Store. You can read more about the tile store and how to query it in the Querying ATL08 Entwine Point Tiles Notebook. This notebook demonstrates how to visualize 3D Tiles using ipyCMC, a Jupyter Lab widget for the Common Mapping Client (CMC). The CMC is a starter-kit for web-based mapping applications which utilizes several common mapping funtionalities.

To get started, we do a search for granules in the ATL08_ARD-beta collection. The _ARD-beta suffix indicates that this is a “beta” (or prototype) product of “analysis-ready data (ARD)” for the MAAP.

atl08_ept_granules = maap.searchGranule(short_name="ATL08_ARD-beta")

We then select the first granule and check that it is the global granule. There are 2 other granules in this collection at this time which represent smaller data stores over the Peru and Afrisar regions of interest.

global_atl08 = atl08_ept_granules[0]['Granule']
global_atl08['GranuleUR'] == 'ATL08_ARD-beta.global'
global_atl08_granule_id = atl08_ept_granules[0]['concept-id']

Instantiate the map by calling ipycmc.MapCMC().

w = ipycmc.MapCMC()

Switch to the 3D map view by clicking the globe icon on the right side image.png. Then load the 3D Tile layer.

w.load_layer_config(f"https://cmr.maap-project.org/search/concepts/{global_atl08_granule_id}.json", "json", {"handleAs": "vector-3d-tile"})

Now enable the layer on the Map Layers menu in the upper left.