当前位置:网站首页>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 :
边栏推荐
- How to configure PostgreSQL 12.9 to allow remote connections
- Leetcode18题 【四数之和】递归解法
- Splice characters in {{}}
- [high speed bus] Introduction to jesd204b
- Go implements leetcode rotation array
- Global and Chinese market of hydrocyclone desander 2022-2028: Research Report on technology, participants, trends, market size and share
- Oracle和MySQL的基本区别(入门级)
- LS1046nfs挂载文件系统
- Global and Chinese market of cell culture freezers 2022-2028: Research Report on technology, participants, trends, market size and share
- Application of intelligent robot in agricultural ecology
猜你喜欢

创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程

数学问题(数论)试除法做质数的判断、分解质因数,筛质数

Pyechart1.19 national air quality exhibition

Go Chan's underlying principles

Fabric.js 将本地图像上传到画布背景

Pytest learning ----- pytest Interface Association framework encapsulation of interface automation testing

Knowledge arrangement about steam Education

Record my pytorch installation process and errors

The underlying principle of go map (storage and capacity expansion)

List of common bugs in software testing
随机推荐
在{{}}中拼接字符
10 minute quick start UI automation ----- puppeter
Using Kube bench and Kube hunter to evaluate the risk of kubernetes cluster
06 decorator mode
Precipitate yourself and stay up late to sort out 100 knowledge points of interface testing professional literacy
Pytest learning ----- pytest Interface Association framework encapsulation of interface automation testing
数学知识(欧拉函数)
How to configure PostgreSQL 12.9 to allow remote connections
Collectors. Groupingby sort
Knowledge arrangement about steam Education
Here comes the chicken soup! Keep this quick guide for data analysts
运维工作的“本手、妙手、俗手”
摆正元素(带过渡动画)
LeetCode 1175. 质数排列(质数判断+组合数学)
MMAP zero copy knowledge point notes
Lay the foundation for children's programming to become a basic discipline
Video multiple effects production, fade in effect and border background are added at the same time
Dark horse notes -- map set system
Video cover image setting, put cover images into multiple videos in the simplest way
Getting started with pytest ----- confitest Application of PY