Skip to content

feat: add the pixelArea supercharged#478

Merged
12rambau merged 4 commits intomainfrom
pixel-area
Jan 27, 2026
Merged

feat: add the pixelArea supercharged#478
12rambau merged 4 commits intomainfrom
pixel-area

Conversation

@12rambau
Copy link
Member

@12rambau 12rambau commented Jan 26, 2026

Supercharge the pixelArea vanilla method to allow computation in defined units.

import ee, LDCGEETools

hectares = ee.Image.pixelArea("ha").rename("ha")
acres = ee.Image.pixelArea("acres").rename("acres")
total = hectares.addBands(acres)

buffer = ee.Geometry.Point(0,0).buffer(100)
values = total.reduceRegion(ee.Reducer.mean(), buffer, 1)
values.getInfo()

@12rambau 12rambau merged commit 419f6d6 into main Jan 27, 2026
12 checks passed
@12rambau 12rambau deleted the pixel-area branch January 27, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant