当前位置:网站首页>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 :
边栏推荐
- Implementation of leetcode two number addition go
- Global and Chinese market of pressure gauges 2022-2028: Research Report on technology, participants, trends, market size and share
- 在{{}}中拼接字符
- Ansible installation and use
- Leetcode basic programming: array
- Oracle和MySQL的基本区别(入门级)
- 数学知识(欧拉函数)
- 关于Steam 教育的知识整理
- 7.1模拟赛总结
- C# 基于MQTTNet的服务端与客户端通信案例
猜你喜欢

黑马笔记---Set系列集合

培养中小学生对教育机器人的热爱之心

2022 Alibaba global mathematics competition, question 4, huhushengwei (blind box problem, truck problem) solution ideas

Nodejs (02) - built in module

Typescript function details

paddle: ValueError:quality setting only supported for ‘jpeg‘ compression

Dark horse notes -- Set Series Collection

Application d'un robot intelligent dans le domaine de l'agroécologie

数学知识——快速幂的理解及例题

Orthogonal test method and function diagram method for test case design
随机推荐
Mathematical knowledge -- understanding and examples of fast power
Getting started with pytest -- description of fixture parameters
数据库问题汇总
Cubemx DMA notes
Mysql重点难题(2)汇总
Pycharm breakpoint management: temporarily cancel some breakpoints + run directly to a line
Pyechats 1.19 generate a web version of Baidu map
Collectors.groupingBy 排序
设置滚动条默认样式 谷歌浏览器
Fasttext text text classification
Feign realizes file uploading and downloading
Dark horse notes -- Set Series Collection
函数栈帧的创建和销毁
Dark horse notes -- map set system
创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程
6.30 year end summary, end of student age
[common error] the DDR type of FPGA device is selected incorrectly
摆正元素(带过渡动画)
Global and Chinese markets of semiconductor laser therapeutics 2022-2028: Research Report on technology, participants, trends, market size and share
Briefly introduce chown command