Visualizing Aboveground Biomass¶
The ESA CCI Global Forest Aboveground Biomass v5.01 provides estimates of forest above-ground biomass for the years 2010, 2015, 2016, 2017, 2018, 2019, 2020 and 2021.
See https://gee-community-catalog.org/projects/cci_agb/ for source documentation
Copyright 2025 Ian Housman
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
try:
import geeViz.geeView as geeView
except:
!python -m pip install geeViz
import geeViz.geeView as geeView
import geeViz.geePalettes as palettes
ee = geeView.ee
Map = geeView.Map
print('done')
Initializing GEE
Successfully initialized
done
Make a basic viewer¶
This is a slight adaptation of the example provided here: https://code.earthengine.google.com/?scriptPath=users/sat-io/awesome-gee-catalog-examples:agriculture-vegetation-forestry/
Map will automatically summarize the average biomass for your view extent
Map.clearMap()
Map.port = 1234
# Specify projection to use for zonal summaries and map querying
# Be sure to leave one of scale or transform as None
crs= 'EPSG:4326'
transform = None
scale = 30
Map.setQueryCRS(crs)
if transform == None:
Map.setQueryScale(scale)
else:
Map.setQueryTransform(transform)
Map.clearMapLayers()
####################################################################
# Adapted from: https://code.earthengine.google.com/?scriptPath=users/sat-io/awesome-gee-catalog-examples:agriculture-vegetation-forestry/ESA-CCI-ABOVEGROUND-BIOMASS
Map.clearMap()
palette = ["#C6ECAE","#A1D490","#7CB970","#57A751","#348E32", "#267A29","#176520","#0C4E15","#07320D","#031807"];
agb = ee.ImageCollection("projects/sat-io/open-datasets/ESA/ESA_CCI_AGB")
Map.addTimeLapse(agb,{'bands':'AGB','min':1,'max':450,'palette':palette,'legendLabelLeftAfter':'ton/ha','legendLabelRightAfter':'tons/ha','canAreaChart':True,'areaChartParams':{'crs':crs,'transform':transform,'scale':scale,'yAxisLabel':'Mean tons/ha'},'queryParams':{'yLabel':'tons/ha'}},'Aboveground Biomass')
Map.turnOnAutoAreaCharting()
Map.view()
Setting click query crs to: EPSG:4326
Setting click query scale to: 30
Adding layer: Aboveground Biomass
Starting webmap
Using default refresh token for geeView
Local web server at: http://localhost:1234/geeView/ already serving.
cwd c:\RCR\geeVizBuilder\geeViz\examples
geeView URL: http://localhost:1234/geeView/?projectID=rcr-gee&accessToken=ya29.a0AeXRPp4oFDROWwTr95nCQ7MsvyXW99qTgldpbE4lfRDXhv9lj6A7yYBIR2wrUcY1iuxopBq4BkHuw9BEoN01GV3RyyB2eaYlFvJqQZ8n-TusZsspZbTECGGQny1_GL47MMJUurMV49dg4zbLg2FgY34Uafrr-fr3HZDIdhZyz5e30fJ-es1waCgYKAdYSARASFQHGX2MiKIlI4Hi4exkX1ejrSa2jDQ0187&accessTokenCreationTime=1743468731233