当前位置:网站首页>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/
边栏推荐
- 浅议.NET遗留应用改造
- Strange way of expressing integers (expanding Chinese remainder theorem)
- Assign the CMD command execution result to a variable
- 1.5 learn to find mistakes first
- Pytorch sets the weight and bias of the model to zero
- Global and Chinese markets of polyimide tubes for electronics 2022-2028: Research Report on technology, participants, trends, market size and share
- [Tang Laoshi] C -- encapsulation: member variables and access modifiers
- 7. Data broker presentation
- 4. Data splitting of Flink real-time project
- 11-grom-v2-05-initialization
猜你喜欢

Wechat applet quick start (including NPM package use and mobx status management)

你真的知道自己多大了吗?

Interval product of zhinai sauce (prefix product + inverse element)

From the behind the scenes arena of the ice and snow event, see how digital builders can ensure large-scale events

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

IP address is such an important knowledge that it's useless to listen to a younger student?

Sightseeing - statistics of the number of shortest paths + state transfer + secondary small paths

Introduction to golang garbage collection

9 pyqt5 qscrollarea scroll area and qscrollbar scroll bar

Virtual machine installation deepin system
随机推荐
【c】 Digital bomb
Global and Chinese market of micro positioning technology 2022-2028: Research Report on technology, participants, trends, market size and share
PR notes:
Upgrade PIP and install Libraries
In 2021, the global revenue of syphilis rapid detection kits was about US $608.1 million, and it is expected to reach US $712.9 million in 2028
Don't be afraid of no foundation. Zero foundation doesn't need any technology to reinstall the computer system
Teach you how to quickly recover data by deleting recycle bin files by mistake
你真的知道自己多大了吗?
[effective Objective-C] - block and grand central distribution
Phpexcel import export
Pat grade B 1009 is ironic (20 points)
Popularize the basics of IP routing
Change deepin to Alibaba image source
Parental delegation mechanism
How to do Taobao full screen rotation code? Taobao rotation tmall full screen rotation code
P5.js development - setting
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
Cannot load driver class: com. mysql. cj. jdbc. Driver
Initialization and instantiation
Q&A:Transformer, Bert, ELMO, GPT, VIT