当前位置:网站首页>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 :
边栏推荐
- Mysql重点难题(2)汇总
- 黑马笔记---Set系列集合
- Fabric.js 渐变
- Pytest learning ----- pytest Interface Association framework encapsulation of interface automation testing
- Briefly introduce chown command
- Save the CDA from the disc to the computer
- Future trend of automated testing ----- self healing technology
- Fabric.js 将本地图像上传到画布背景
- Leetcode basic programming: array
- Global and Chinese market of pressure gauges 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
摆正元素(带过渡动画)
培养中小学生对教育机器人的热爱之心
Analyzing the hands-on building tutorial in children's programming
10 minute quick start UI automation ----- puppeter
Fabric.js 居中元素
Go Chan's underlying principles
Fabric.js 将本地图像上传到画布背景
Application d'un robot intelligent dans le domaine de l'agroécologie
The El cascader echo only selects the questions that are not displayed
Fabric.js 右键菜单
随机推荐
Pyechats 1.19 generate a web version of Baidu map
Go implements leetcode rotation array
Latest: the list of universities and disciplines for the second round of "double first-class" construction was announced
paddle: ValueError:quality setting only supported for ‘jpeg‘ compression
Ansible installation and use
[quick view opencv] familiar with CV matrix operation with image splicing examples (3)
Application d'un robot intelligent dans le domaine de l'agroécologie
Paddlepaddle project source code
CubeMx DMA笔记
Record my pytorch installation process and errors
关于Steam 教育的知识整理
6.30年终小结,学生时代结束
数据库问题汇总
Feign realizes file uploading and downloading
函数栈帧的创建和销毁
LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
No logic is executed after the El form is validated successfully
7.1 Résumé du concours de simulation
Precipitate yourself and stay up late to sort out 100 knowledge points of interface testing professional literacy
[high speed bus] Introduction to jesd204b