Printing Earth Engine objects in a collapsible tree structure using eerepr
Uncomment the following line to install geemap if needed.
# !pip install -U geemap
By default, geemap now uses eerepr to print Earth Engine objects. You no longer need to used the .getInfo()
function. Uncomment the following code block and execute it if you don't want to use eerepr for printing objects.
# import os
# os.environ['USE_EEREPR'] = 'False'
import ee
import geemap
geemap.ee_initialize()
Print ee.Image
image = ee.Image("USGS/SRTMGL1_003")
image
Print ee.ImageCollection
collection = ee.ImageCollection("LANDSAT/LC09/C02/T1_L2").limit(10)
collection
Print ee.Feature
feature = ee.FeatureCollection("TIGER/2018/States").first()
feature
Print ee.FeatureCollection
fc = ee.FeatureCollection("TIGER/2018/States").limit(10)
fc