当前位置:网站首页>Gee: analyze the change of spatial centroid of remote sensing image [centroid acquisition analysis]
Gee: analyze the change of spatial centroid of remote sensing image [centroid acquisition analysis]
2022-07-02 05:11:00 【Gee water ecological space】
One 、 Preface
The center of mass is the geometric center of the face element , By analyzing its spatial changes, we can know the transfer characteristics of its spatial Center , It is often used to analyze the change of center of gravity .
utilize GEE How to get the centroid of image space (centroid)?
Two 、python Code
- ee.Geometry.centroid()

python The code is as follows :
# Define get centroid function
def getGeom(image):
return ee.Feature(image.geometry().centroid(), {'foo': 1})
# load Landsat8 image
collection = ee.ImageCollection('LANDSAT/LC08/C01/T1') \
.filterBounds(ee.Geometry.Point(-122.262, 37.8719)) \
.filterDate('2014-06-01', '2014-10-01')
# For each image Map
featureCollection = ee.FeatureCollection(collection.map(getGeom))
# Load display
Map = geemap.Map()
Map.centerObject(featureCollection, 15)
Map.addLayer(featureCollection, {'collor':'yellow'}, 'image centroid')
Map
3、 ... and 、 Summary
- have access to ee.Geometry.centroid() Get the location of the space centroid
- This code also shows how to synthesize FeatureCollection Methods
Reference resources :
边栏推荐
- LeetCode 1175. 质数排列(质数判断+组合数学)
- Save the CDA from the disc to the computer
- Essence and physical meaning of convolution (deep and brief understanding)
- 黑马笔记---Set系列集合
- Dark horse notes -- map set system
- 6.30 year end summary, end of student age
- How to configure PostgreSQL 12.9 to allow remote connections
- Knowledge arrangement about steam Education
- 数学知识(欧拉函数)
- 7.1 Résumé du concours de simulation
猜你喜欢

Disable access to external entities in XML parsing

LeetCode 1175. Prime number arrangement (prime number judgment + Combinatorial Mathematics)

关于Steam 教育的知识整理

Preparation for writing SAP ui5 applications using typescript

Go Chan's underlying principles

Application of intelligent robot in agricultural ecology

数据库问题汇总

Typescript function details

Fabric.js IText设置指定文字的颜色和背景色

黑马笔记---Map集合体系
随机推荐
LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
Mathematical problems (number theory) trial division to judge prime numbers, decompose prime factors, and screen prime numbers
Express logistics quick query method, set the unsigned doc No. to refresh and query automatically
How to configure PostgreSQL 12.9 to allow remote connections
Set the default style of scroll bar Google browser
Lay the foundation for children's programming to become a basic discipline
Fabric.js 居中元素
Fabric.js IText 上标和下标
Case sharing | intelligent Western Airport
Feign realizes file uploading and downloading
LS1046nfs挂载文件系统
[bus interface] Axi interface
php/js cookie共享跨域的问题
The underlying principle of go map (storage and capacity expansion)
创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程
培养中小学生对教育机器人的热爱之心
Save the CDA from the disc to the computer
Fabric.js 圆形笔刷
Briefly introduce chown command
About PROFIBUS: communication backbone network of production plant