当前位置:网站首页>Gee calculated area
Gee calculated area
2022-07-03 20:26:00 【RS&Hydrology】
1. Calculation area of vector data (main function)
var stateArea = somewhere.geometry().area()
var stateAreaSqKm = ee.Number(stateArea).divide(1e6).round()
print(stateAreaSqKm)
2. Grid image calculation area (main function)
Ideas :1) In pixels , Calculate the area of each pixel in the region of interest ;2) Perform summary summation , Calculate the area of the whole area ;3) Converting units .
//ee.Image.pixelArea():
//Generate an image in which the value of each pixel is the area of that pixel in square meters.
//The returned image has a single band called "area."
var area_image = image.eq(1).multiply.(ee.Image.pixelArea())
var area= area_image.reduceRegion({
reducer:ee.Reducer.sum(),//calculate sum values within the aoi.
geometry:aoi,//shp.geometry()
crs:'EPSG:32749',
scale:20,
maxPixels:lel3,
})
//convert sqkm
var area_sqkm = ee.Number(
area.get(0)).divide(1e6).round()//round():computes the integer nearest to the input
print(area_sqkm )
ee.Image.reduceRegion:
Reference material :
See official documents when encountering functions you don't understand :https://developers.google.com/earth-engine/apidocs
Calculating Area in Google Earth Engine:https://spatialthoughts.com/2020/06/19/calculating-area-gee/
边栏推荐
- Global and Chinese market of cyanuric acid 2022-2028: Research Report on technology, participants, trends, market size and share
- 18、 MySQL -- index
- How to improve data security by renting servers in Hong Kong
- 11-grom-v2-04-advanced query
- Based on laravel 5.5\5.6\5 X solution to the failure of installing laravel ide helper
- QT tutorial: signal and slot mechanism
- Golang type assertion and conversion (and strconv package)
- Task of gradle learning
- Global and Chinese market of charity software 2022-2028: Research Report on technology, participants, trends, market size and share
- Use of CMD command
猜你喜欢
SQL injection - Fundamentals of SQL database operation
Make a simple text logo with DW
How to do Taobao full screen rotation code? Taobao rotation tmall full screen rotation code
jvm jni 及 pvm pybind11 大批量数据传输及优化
In 2021, the global foam protection packaging revenue was about $5286.7 million, and it is expected to reach $6615 million in 2028
2.6 formula calculation
Exercises of function recursion
强基计划 数学相关书籍 推荐
Wargames study notes -- Leviathan
Commands related to files and directories
随机推荐
Use of CMD command
Sightseeing - statistics of the number of shortest paths + state transfer + secondary small paths
浅议.NET遗留应用改造
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of rotary tablet presses in the global market in 2022
LabVIEW training
1.4 learn more about functions
Wechat applet quick start (including NPM package use and mobx status management)
Virtual machine installation deepin system
[Yugong series] February 2022 Net architecture class 004 ABP vNext used in WPF project
Q&A:Transformer, Bert, ELMO, GPT, VIT
Thread, thread stack, method stack, the difference of creating thread
How to modify the network IP addresses of mobile phones and computers?
Network security Kali penetration learning how to get started with web penetration how to scan based on nmap
9 pyqt5 qscrollarea scroll area and qscrollbar scroll bar
AcWing 1460. Where am i?
In 2021, the global revenue of thick film resistors was about $1537.3 million, and it is expected to reach $2118.7 million in 2028
Analysis of gas fee setting under eip1559
Professional interpretation | how to become an SQL developer
Deep search DFS + wide search BFS + traversal of trees and graphs + topological sequence (template article acwing)
Explore the internal mechanism of modern browsers (I) (original translation)