当前位置:网站首页>Gee learning notes 2
Gee learning notes 2
2022-07-02 13:25:00 【RS&Hydrology】
1. example 1
(1) Load vector boundary data
// load a polygon watershed boundary (here, a public vector dataset already in GEE)
// note: see tutorial linked above for guidance on importing vector datasets
var WBD = ee.FeatureCollection("USGS/WBD/2017/HUC06");
print(WBD.limit(5));
Map.addLayer(WBD, {
}, 'watersheds')

(2) According to the attribute information , Select the area you want to study , If you choose name=Republican The region of interest .
// use the inspector tool to find the name of a watershed that interests you
var watershed = WBD.filterMetadata('name', 'equals', 'Republican');
print(watershed);
// set the map view and zoom level, and add watershed to map
Map.centerObject(watershed,7);
Map.addLayer(watershed, {
}, 'watershed');

(3) Filter image sets
//load jrc dataset
var jrccollection = ee.ImageCollection('JRC/GSW1_3/MonthlyHistory')
.filterBounds(watershed)
.filterDate('2017-01-01', '2017-12-31');
print(jrccollection);
(4) Use vector boundaries to crop images , Visual image
//clip function
function clipImg(image){
return image.clipToCollection(watershed);
}
var clipCol=jrccollection.map(clipImg);
var visualization = {
bands: ['water'],
min: 0.0,
max: 2.0,
palette: ['ffffff', 'fffcb8', '0905ff']
};
Map.centerObject(watershed, 4);
Map.addLayer(clipCol, visualization, 'Water');

(5) Calculate the region of interest water area 
Reference material :https://code.earthengine.google.com/ea82c9501fb736f3f615741620f4875a
https://gis.stackexchange.com/questions/299108/create-time-series-and-export-it-to-csv-gee
https://geohackweek.github.io/GoogleEarthEngine/03-load-imagery/
边栏推荐
- How to modify the error of easydss on demand service sharing time?
- (7) Web security | penetration testing | how does network security determine whether CND exists, and how to bypass CND to find the real IP
- 免费SSL证书知多少?免费SSL证书和收费SSL证书的区别
- Performance optimization of memory function
- 能自动更新的万能周报模板,有手就会用!
- Unity SKFramework框架(二十一)、Texture Filter 贴图资源筛选工具
- JS逆向之行行查data解密
- 嵌入式软件开发
- Numpy array calculation
- What are eNB, EPC and PGW?
猜你喜欢

Ali was killed by two programming problems at the beginning, pushed inward again, and finally landed (he has taken an electronic offer)
![Jerry's watch gets the default ringtone selection list [article]](/img/94/e469864fa6ab688dabe46f606efdbc.jpg)
Jerry's watch gets the default ringtone selection list [article]

题解:《压缩技术》(原版、续集版)

The second anniversary of the three winged bird: the wings are getting richer and the take-off is just around the corner

中文姓名提取(玩具代码——准头太小,权当玩闹)

Unity skframework framework (XVI), package manager development kit Manager

Redis数据库持久化

What are eNB, EPC and PGW?

(6) Web security | penetration test | network security encryption and decryption ciphertext related features, with super encryption and decryption software
![Lucky numbers in the [leetcode daily question] matrix](/img/c8/47a22644bf8cc1f49c5668d72161b6.jpg)
Lucky numbers in the [leetcode daily question] matrix
随机推荐
nohup命令
Jerry's watch ringtone audition [article]
Post order traversal sequence of 24 binary search tree of sword finger offer
Explain in detail the process of realizing Chinese text classification by CNN
linux下清理系统缓存并释放内存
Jerry's watch delete alarm clock [chapter]
Jerry's weather code table [chapter]
Redis database persistence
研究表明“气味相投”更易成为朋友
互联网常见34个术语解释
Unity SKFramework框架(二十)、VFX Lab 特效库
[opencv learning] [image filtering]
Unity skframework framework (XVI), package manager development kit Manager
最近公共祖先LCA的三种求法
Japan bet on national luck: Web3.0, anyway, is not the first time to fail!
每日一题:1175.质数排列
De4000h storage installation configuration
Detailed collection of common MySQL commands
【笔耕不辍勋章活动】生命不止,写作不息
Unity SKFramework框架(十七)、FreeCameraController 上帝视角/自由视角相机控制脚本