当前位置:网站首页>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/
边栏推荐
- 11-grom-v2-05-initialization
- Parental delegation mechanism
- Wargames study notes -- Leviathan
- P5.js development - setting
- The 15 year old interviewer will teach you four unique skills that you must pass the interview
- 47. Process lock & process pool & Collaboration
- MDM mass data synchronization test verification
- Global and Chinese markets of polyimide tubes for electronics 2022-2028: Research Report on technology, participants, trends, market size and share
- 2. Template syntax
- 2.4 conversion of different data types
猜你喜欢

2.5 conversion of different data types (2)

2.2 integer

Upgrade PIP and install Libraries

TLS environment construction and plaintext analysis

Network security Kali penetration learning how to get started with web penetration how to scan based on nmap

JVM JNI and PVM pybind11 mass data transmission and optimization

强基计划 数学相关书籍 推荐

It is discussed that the success of Vit lies not in attention. Shiftvit uses the precision of swing transformer to outperform the speed of RESNET

44. Concurrent programming theory

Promethus
随机推荐
Microsoft: the 12th generation core processor needs to be upgraded to win11 to give full play to its maximum performance
2.5 conversion of different data types (2)
Pytorch sets the weight and bias of the model to zero
How to set the system volume programmatically- How to programmatically set the system volume?
Analysis of gas fee setting under eip1559
Upgrade PIP and install Libraries
Global and Chinese markets for medical temperature sensors 2022-2028: Research Report on technology, participants, trends, market size and share
SQL injection - Fundamentals of SQL database operation
About callback function and hook function
Micro service knowledge sorting - cache technology
2.7 format output of values
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of rotary tablet presses in the global market in 2022
Micro service knowledge sorting - asynchronous communication technology
Microservice knowledge sorting - search technology and automatic deployment technology
jvm jni 及 pvm pybind11 大批量数据传输及优化
Shortest path problem of graph theory (acwing template)
Battle drag method 1: moderately optimistic, build self-confidence (1)
Oak-d raspberry pie cloud project [with detailed code]
How to modify the network IP addresses of mobile phones and computers?
Example of peanut shell inner net penetration