130 print objects
Printing Earth Engine objects in a collapsible tree structure using eerepr
Uncomment the following line to install geemap if needed.
In [ ]:
Copied!
# !pip install -U geemap
# !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.
In [ ]:
Copied!
# import os
# os.environ['USE_EEREPR'] = 'False'
# import os
# os.environ['USE_EEREPR'] = 'False'
In [ ]:
Copied!
import ee
import geemap
import ee
import geemap
In [ ]:
Copied!
geemap.ee_initialize()
geemap.ee_initialize()
Print ee.Image
In [ ]:
Copied!
image = ee.Image("USGS/SRTMGL1_003")
image
image = ee.Image("USGS/SRTMGL1_003")
image
Print ee.ImageCollection
In [ ]:
Copied!
collection = ee.ImageCollection("LANDSAT/LC09/C02/T1_L2").limit(10)
collection
collection = ee.ImageCollection("LANDSAT/LC09/C02/T1_L2").limit(10)
collection
Print ee.Feature
In [ ]:
Copied!
feature = ee.FeatureCollection("TIGER/2018/States").first()
feature
feature = ee.FeatureCollection("TIGER/2018/States").first()
feature
Print ee.FeatureCollection
In [ ]:
Copied!
fc = ee.FeatureCollection("TIGER/2018/States").limit(10)
fc
fc = ee.FeatureCollection("TIGER/2018/States").limit(10)
fc