当前位置:网站首页>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 :
边栏推荐
- Use of typescript classes
- [common error] the DDR type of FPGA device is selected incorrectly
- Mysql重点难题(2)汇总
- 黑马笔记---Set系列集合
- Steam教育的实际问题解决能力
- Global and Chinese markets of semiconductor laser therapeutics 2022-2028: Research Report on technology, participants, trends, market size and share
- 删除排序数组中的重复项go语言实现
- Using Kube bench and Kube hunter to evaluate the risk of kubernetes cluster
- Fasttext text text classification
- List of common bugs in software testing
猜你喜欢

Ansible installation and use

Johnson–Lindenstrauss Lemma(2)

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

Getting started with pytest -- description of fixture parameters

Summary of database problems

Black Horse Notes - - set Series Collection

Mysql基础---查询(1天学会mysql基础)

Practical problem solving ability of steam Education

Differential identities (help find mean, variance, and other moments)

LeetCode 1175. 质数排列(质数判断+组合数学)
随机推荐
[common error] the DDR type of FPGA device is selected incorrectly
Orthogonal test method and function diagram method for test case design
Map in JS (including leetcode examples)
fastText文本分类
National all Chinese Automatic Test Software apifox
go实现leetcode旋转数组
Creation and destruction of function stack frames
js面试收藏试题1
解决:代理抛出异常错误
Collectors.groupingBy 排序
CubeMx DMA笔记
LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
Fabric.js IText 上标和下标
国产全中文-自动化测试软件Apifox
黑马笔记---Map集合体系
6.30年终小结,学生时代结束
Pytest learning ----- pytest assertion of interface automation testing
About PROFIBUS: communication backbone network of production plant
Acelems Expressway microgrid energy efficiency management platform and intelligent lighting solution intelligent lighting tunnel
Summary of database problems