Screen Namdapha Forest Structure with GEDI in GEE
Use GEDI lidar samples in Google Earth Engine to screen canopy structure across Namdapha, while keeping the gaps, quality flags and interpretation limits visible.
- Published
- Reading time
- 8 min
- Place
- Namdapha National Park, Arunachal Pradesh, India
- By
- Jannat Khosla

Cover: Landsat imagery of Namdapha National Park, Arunachal Pradesh, India, NASA (public domain).
GEDI is useful here because it measures vertical structure
A Sentinel-2 image can show where Namdapha National Park in Arunachal Pradesh is green. It cannot directly show whether that green signal comes from a short, dense stand, a tall closed canopy, or a mixture of forest layers. GEDI, NASA's spaceborne lidar instrument, adds a different observation: the distribution of returned laser energy through a vegetation footprint.
This makes GEDI a good screening dataset for questions such as: where are the sampled locations with comparatively tall canopy structure, where are short or open forest samples concentrated, and where should field checks or higher-detail imagery be targeted? It is not a substitute for a wall-to-wall forest-height map or a timber inventory.
GEDI's footprints average 25 m in diameter. They are separated by about 60 m along a track and 600 m across tracks, so the data form tracks of samples rather than a complete carpet of measurements. The instrument measures land between 51.6 degrees north and south, which includes all of India. GEDI instrument specifications describe the sampling geometry and coverage. That sampling pattern is the first fact to keep in mind before opening Earth Engine.
For an initial Namdapha screen, I use GEDI Level 2A relative height metric rh98. It is the height below which 98% of the returned waveform energy occurs, expressed in metres. It is a useful canopy-top-structure indicator, but it is not a field-measured height for each individual tree. GEDI Level 2A contains 100 relative-height metrics, while Level 2B supplies canopy-cover and vertical-profile variables. NASA's Level 2 user guide explains both products and the interpretation of relative-height metrics.
What the map should and should not say
A defensible output here is a map of valid GEDI rh98 observations, aggregated to broad planning cells or summarised within management zones. The language matters. Label a result “median sampled RH98” or “median GEDI canopy-structure metric”, not “forest height across the park”. Empty areas mean no accepted GEDI footprint in the chosen period. They do not demonstrate low vegetation.
This distinction is especially important in an Indian protected-area workflow. A grid cell that has one valid shot and another with many shots should not carry equal confidence. Carry n, the count of valid observations, beside every median or mean. If comparing zones, inspect their sample counts before interpreting a difference.
The Earth Engine raster collection used below is LARSE/GEDI/GEDI02_A_002_MONTHLY. Its catalogue describes the underlying product as 25 m average-footprint observations, provides rh98 in metres, and gives the collection's documented temporal extent. It also shows the intended mask: quality_flag == 1 and degrade_flag == 0. Earth Engine's GEDI Level 2A catalogue entry is the source to check whenever collection fields or availability change.
A worked Earth Engine screen for Namdapha
Start with a boundary asset for the analysis area. For a quick learning exercise, draw a polygon around a manageable part of Namdapha in the Code Editor and save it as aoi. For a report, replace that sketch with a documented administrative or protected-area boundary and retain its source, date, and coordinate reference system.
The script below uses a single calendar year, 2022, so that dates are explicit. A longer period can increase the number of samples, but it also changes the ecological question. Do not quietly pool years if the aim is to describe current structure or detect a short-term change.
var start = '2022-01-01';
var end = '2023-01-01';
var goodGedi = ee.ImageCollection('LARSE/GEDI/GEDI02_A_002_MONTHLY')
.filterBounds(aoi)
.filterDate(start, end)
.map(function(image) {
var good = image.select('quality_flag').eq(1)
.and(image.select('degrade_flag').eq(0));
return image.select('rh98')
.updateMask(good)
.copyProperties(image, ['system:time_start']);
});
var medianRh98 = goodGedi.median().clip(aoi);
var sampleCount = goodGedi.select('rh98').count().clip(aoi);
Map.centerObject(aoi, 9);
Map.addLayer(medianRh98,
{min: 1, max: 60, palette: ['8c2d04', 'fdae6b', '74c476', '006d2c']},
'Median valid GEDI RH98');
Map.addLayer(sampleCount,
{min: 1, max: 5, palette: ['fff7bc', 'fec44f', 'd95f0e']},
'Valid-observation count');
The quality_flag filter removes shots that do not meet GEDI's combined quality criteria, and the degradation filter removes observations flagged for degraded geolocation. Filtering both is a sensible starting point because the Earth Engine catalogue itself applies those conditions in its example. It does not make every remaining observation equally certain.
Next, avoid treating each pixel of the displayed median layer as independently observed. The collection is rasterised in Earth Engine for convenience, but its scientific observations originate from discrete lidar footprints. For a practical planning product, reduce the metric to cells large enough to make the sparse sampling apparent. A 1 km grid is a reasonable exploratory scale because the instrument team notes that GEDI observations can be gridded to regular coverages such as 1 km cells. It is a reporting choice, not a promise that every 1 km cell has enough data. GEDI's specifications page makes that distinction clear.
Create or upload a 1 km fishnet, then calculate both median RH98 and count for each cell. The count is as important as the median.
var zonal = medianRh98.addBands(sampleCount).reduceRegions({
collection: grid,
reducer: ee.Reducer.median().setOutputs(['rh98_median'])
.combine({
reducer2: ee.Reducer.max().setOutputs(['n_valid']),
sharedInputs: false
}),
scale: 25,
tileScale: 4
});
var screened = zonal.filter(ee.Filter.gte('n_valid', 3));
print('Cells with at least three valid observations', screened);
Here, three is a transparent screening rule chosen for this example, not a universal scientific threshold. Change it only with a reason tied to the decision at hand. A cell with two observations can still be useful for planning a field visit, but it should not be ranked beside a well-sampled cell as though they were comparable.
Export the table, not only a coloured image. A table preserves the date range, count and median together, and it can be joined to field plots or management compartments later.
Export.table.toDrive({
collection: screened,
description: 'namdapha_gedi_rh98_2022_screen',
fileFormat: 'CSV'
});
Reading the result with care
A higher RH98 value generally indicates that the upper part of the lidar return is higher above the selected ground mode. It can help distinguish sampled areas with taller vertical structure from sampled areas with lower structure. It does not establish species, stem density, canopy health, biomass, legal forest status, or carbon stock by itself.
Topography, ground detection and waveform conditions still matter in Namdapha's steep terrain. GEDI derives height metrics by differencing waveform elevations from the lowest detected mode. The Level 2 guide also warns that lower relative-height metrics can be negative in low-cover conditions, and that RH metrics are intended for vegetated surfaces. Keep the analysis inside a forest-oriented question, inspect suspect values, and do not apply the same interpretation across rivers, exposed ground and settlements. The Level 2 user guide gives the technical rationale.
If your question is canopy cover rather than height structure, use GEDI Level 2B deliberately rather than treating RH98 as cover. If your question is a current, continuous map, combine GEDI samples with contemporaneous optical or radar predictors and independent validation data. That is a modelling project. The simple screen above is deliberately narrower: it reveals what the lidar itself sampled and where its vertical-structure signal is comparatively high or low.
The common beginner mistake: colouring gaps as low forest
The costly mistake is to display a GEDI composite with a continuous colour ramp and read all uncoloured or zero-looking locations as short canopy. GEDI gaps arise because the instrument collects tracks, filters remove unsuitable shots, and the chosen time window may have limited accepted observations. A blank cell is often a data-availability result.
Avoid that error in two ways. First, map sampleCount beside the RH98 layer. Second, use a distinct no-data symbol in any exported map and say in the caption that values represent valid sampled footprints or summaries of them. This prevents a visually persuasive map from making a claim the data do not support.
A related mistake is to select rh100 automatically because it sounds like a maximum height. NASA defines RH100 as the elevation difference between the highest return and the lowest mode, and the guide notes that returns can be affected by cloud or fog. RH98 is often a more cautious screening variable, but neither metric removes the need to check the quality fields and inspect the setting. NASA's GEDI Level 2 documentation should guide variable choice.
A sensible next step
Once the sampled structure pattern looks credible, stratify field reconnaissance rather than claiming an answer for every hectare. Select accessible cells across the observed RH98 range, record plot coordinates and canopy measurements, and compare those plots with the GEDI dates and footprints. That turns a useful satellite screen into evidence you can defend.
For a portfolio project, keep the boundary source, Earth Engine script, analysis dates, filter conditions, scale, grid definition and sample-count rule alongside the export. Those small decisions determine whether another analyst can reproduce the result.
Frequently asked questions
Is GEDI RH98 the same as tree height?
No, RH98 is a waveform-based relative-height metric, not a direct measurement of every tree's height. It can indicate upper-canopy structure within a footprint, but terrain, returns and footprint mixtures mean it should be interpreted with field or other reference data.
Why are there blank areas in my Namdapha map?
Blank areas usually mean there were no valid accepted GEDI observations in that location and date range. GEDI samples along tracks, and quality or geolocation filters can remove shots, so absence of a displayed value is not evidence of short vegetation.
Should I use median or mean RH98?
Use the median for an exploratory multi-observation summary because it is less influenced by a small number of extreme values. Report the valid-observation count with it, then inspect individual shots if a cell will inform a consequential management decision.
Can I map biomass directly from this script?
No, this script maps a canopy-structure metric rather than biomass. GEDI has separate higher-level biomass products, but a biomass analysis needs its own product selection, uncertainty treatment, study design and validation instead of converting RH98 values with an assumed equation.
References
- GEDI instrument specifications
- Google Earth Engine, GEDI L2A Raster Canopy Top Height Version 2
- NASA LP DAAC, GEDI Level 2A and 2B User Guide Version 2
Researched and drafted with AI assistance; sources are linked for verification.
Need this done for your own study area? Send me the area and what you need.
Cite this post
Khosla, J. (2026, November 20). Screen Namdapha Forest Structure with GEDI in GEE. Jannat Khosla. https://jannatkhosla.com/blog/screen-namdapha-forest-structure-with-gedi-in-gee
› BibTeX
@online{khosla2026screen,
author = {Khosla, Jannat},
title = {Screen Namdapha Forest Structure with GEDI in GEE},
date = {2026-11-20},
url = {https://jannatkhosla.com/blog/screen-namdapha-forest-structure-with-gedi-in-gee}
}

