当前位置:网站首页>Gee: calculate the maximum and minimum values of pixels in the image area
Gee: calculate the maximum and minimum values of pixels in the image area
2022-06-26 20:17:00 【BetterQ.】
GEE: Calculation image Max min pixel in region
Use GEE Count the maximum and minimum values of pixels in the specified area ( Such as DEM) when , Need to be used GEE Medium .regionReducer and reducer function .
min & max
Maximum :ee.Reducer.max()
minimum value :ee.Reducer.min()
Max min :ee.Reducer.minMax()
Code implementation
Maximum
// Given area
var CQ =
/* color: #98ff00 */
/* shown: false */
ee.Geometry.Polygon(
[[[107.81231551184783, 29.581711188146137],
[108.25176863684783, 30.49472925792531],
[110.00958113684783, 31.173930341237376],
[108.60333113684783, 31.922923346675326],
[106.84551863684783, 30.418966567079185],
[105.35137801184783, 30.418966567079185],
[105.35137801184783, 29.428726935782418],
[107.10919051184783, 28.89146956313381]]]);
// Choose a dataset , Choose here DEM
var DEM=ee.Image("CGIAR/SRTM90_V4");
// Statistical maximum
var max=DEM.reduceRegion({
reducer:ee.Reducer.max(),
geometry:CQ,
scale:90
});
print(max)
Output results :
minimum value
// Given area
var CQ =
/* color: #98ff00 */
/* shown: false */
ee.Geometry.Polygon(
[[[107.81231551184783, 29.581711188146137],
[108.25176863684783, 30.49472925792531],
[110.00958113684783, 31.173930341237376],
[108.60333113684783, 31.922923346675326],
[106.84551863684783, 30.418966567079185],
[105.35137801184783, 30.418966567079185],
[105.35137801184783, 29.428726935782418],
[107.10919051184783, 28.89146956313381]]]);
// Choose a dataset , Choose here DEM
var DEM=ee.Image("CGIAR/SRTM90_V4");
// Statistical maximum
var min=DEM.reduceRegion({
reducer:ee.Reducer.min(),
geometry:CQ,
scale:90
});
print(min)
Output results :
Simultaneously calculate the maximum and minimum values
The maximum and maximum values of the region pixels can be obtained at the same time , as follows :
// Given area
var CQ =
/* color: #98ff00 */
/* shown: false */
ee.Geometry.Polygon(
[[[107.81231551184783, 29.581711188146137],
[108.25176863684783, 30.49472925792531],
[110.00958113684783, 31.173930341237376],
[108.60333113684783, 31.922923346675326],
[106.84551863684783, 30.418966567079185],
[105.35137801184783, 30.418966567079185],
[105.35137801184783, 29.428726935782418],
[107.10919051184783, 28.89146956313381]]]);
// Choose a dataset , Choose here DEM
var DEM=ee.Image("CGIAR/SRTM90_V4");
var maxmin=DEM.reduceRegion({
reducer:ee.Reducer.minMax(),
geometry:CQ,
scale:90
});
print(maxmin)
Output results :
边栏推荐
- Some cold knowledge about QT database development
- Basic and necessary common plug-ins of vscade
- Kubernetes 资源拓扑感知调度优化
- Web resource preloading - production environment practice
- Successfully solved the problem of garbled microservice @value obtaining configuration file
- Gd32 USB composite device file descriptor
- 抖音实战~搜索页面~视频详情
- MongoDB实现创建删除数据库、创建删除表(集合)、数据增删改查
- 动态规划111
- Project practice 5: build elk log collection system
猜你喜欢

Project practice 6: distributed transaction Seata

动态规划111

抖音实战~搜索页面~扫描二维码

清华大学就光刻机发声,ASML立马加紧向中国出口光刻机

Boot indicator monitoring

【推荐收藏】这8个常用缺失值填充技巧一定要掌握

Unit test of boot

Tiktok practice ~ homepage video ~ pull-down refresh

Refresh the strong pointer assignment problem in the HP-UX system of Sanguan
MySQL中存储过程的详细详解
随机推荐
On the escape of inequality value
Kubernetes resource topology aware scheduling optimization
0基础学c语言(2)
MySQL - database creation and management
515. 在每个树行中找最大值
MySQL中存储过程的详细详解
Tiktok practice ~ sharing module ~ copy short video link
[recommended collection] these 8 common missing value filling skills must be mastered
Case description: the competition score management system needs to count the competition scores obtained by previous champions and record them in the file. The system has the following requirements: -
Gd32 USB composite device file descriptor
云计算技术的发展与芯片处理器的关系
Daily basic use of alicloud personal image warehouse
Browser event loop
Nftgamefi chain game system development detailed solution - chain game system development principle analysis
Is it safe to open an account for CICC Wealth Online?
710. random numbers in the blacklist
剑指 Offer II 091. 粉刷房子
Some cold knowledge about QT database development
抖音实战~分享模块~复制短视频链接
On the origin of the dispute between the tradition and the future of database -- AWS series column