当前位置:网站首页>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/
边栏推荐
- Embedded software development
- [opencv learning] [common image convolution kernel]
- Detailed collection of common MySQL commands
- Word efficiency guide - word's own template
- JS generates 4-digit verification code
- 口袋奇兵点评
- 自主可控三维云CAD:CrownCAD赋能企业创新设计
- Uniapp develops wechat applet Tencent map function and generates sig signature of location cloud
- Jerry's watch delete alarm clock [chapter]
- 互联网常见34个术语解释
猜你喜欢
题解:《你的飞碟在这儿》、《哥德巴赫猜想》
Unity skframework framework (XVI), package manager development kit Manager
[error record] cannot open "XXX" because Apple cannot check whether it contains malware
[cloud native database] what to do when encountering slow SQL (Part 1)?
West digital decided to raise the price of flash memory products immediately after the factory was polluted by materials
De4000h storage installation configuration
Finally, someone explained the supervised learning clearly
Unity SKFramework框架(十七)、FreeCameraController 上帝视角/自由视角相机控制脚本
Research shows that "congenial" is more likely to become friends
Jerry's watch modifies the alarm clock [chapter]
随机推荐
[opencv learning] [contour detection]
moon
[indomitable medal activity] life goes on and writing goes on
Detailed collection of common MySQL commands
JS逆向之巨量创意signature签名
解答:EasyDSS视频点播时音频是否可以设置为默认开启?
Finally, someone explained the supervised learning clearly
MAC (MacOS Monterey 12.2 M1) personal use PHP development
Jerry's weather direction coding table [chapter]
Crowncad (crown CAD), the first fully independent 3D CAD platform based on Cloud Architecture in China
免费SSL证书知多少?免费SSL证书和收费SSL证书的区别
[opencv learning] [image filtering]
Unity SKFramework框架(二十)、VFX Lab 特效库
Node.js通过ODBC访问PostgreSQL数据库
日本赌国运:Web3.0 ,反正也不是第一次失败了!
完全自主可控三维云CAD:CrownCAD便捷的命令搜索,快速定位所需命令具体位置。
嵌入式软件开发
nohup命令
De4000h storage installation configuration
Domestic free data warehouse ETL dispatching automation operation and maintenance expert taskctl