当前位置:网站首页>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 micro positioning technology 2022-2028: Research Report on technology, participants, trends, market size and share
- In 2021, the global general crop protection revenue was about $52750 million, and it is expected to reach $64730 million in 2028
- MPLS configuration
- Test panghu was teaching you how to use the technical code to flirt with girls online on Valentine's Day 520
- Introduction to golang garbage collection
- Based on laravel 5.5\5.6\5 X solution to the failure of installing laravel ide helper
- Sightseeing - statistics of the number of shortest paths + state transfer + secondary small paths
- Pytorch sets the weight and bias of the model to zero
- App compliance
- Initialization and instantiation
猜你喜欢
Operate BOM objects (key)
2.3 other data types
The 15 year old interviewer will teach you four unique skills that you must pass the interview
Camera calibration (I): robot hand eye calibration
From the behind the scenes arena of the ice and snow event, see how digital builders can ensure large-scale events
thrift go
44. Concurrent programming theory
Point cloud data denoising
Wargames study notes -- Leviathan
18、 MySQL -- index
随机推荐
Test changes in Devops mode -- learning and thinking
Shortest path problem of graph theory (acwing template)
AST (Abstract Syntax Tree)
MySQL 8.0 data backup and recovery
2.1 use of variables
阻塞非阻塞和同步异步的区分 参考一些书籍
Global and Chinese market of high temperature Silver sintering paste 2022-2028: Research Report on technology, participants, trends, market size and share
Blue Bridge Cup: the fourth preliminary - "simulated intelligent irrigation system"
How to read the source code [debug and observe the source code]
Exercises of function recursion
MDM mass data synchronization test verification
7. Data broker presentation
Bool blind note - score query
4. Data splitting of Flink real-time project
Plan for the first half of 2022 -- pass the PMP Exam
Professional interpretation | how to become an SQL developer
Phpexcel import export
Viewing Chinese science and technology from the Winter Olympics (II): when snowmaking breakthrough is in progress
Network security Kali penetration learning how to get started with web penetration how to scan based on nmap
Microservice knowledge sorting - search technology and automatic deployment technology