当前位置:网站首页>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/
边栏推荐
- JS reverse row query data decryption
- Pocket Raider comments
- Explain in detail the process of realizing Chinese text classification by CNN
- 题解:《你的飞碟在这儿》、《哥德巴赫猜想》
- leetcode621. 任务调度器
- PR usage skills, how to use PR to watermark?
- OpenAPI generator: simplify the restful API development process
- 口袋奇兵点评
- Web Foundation
- [opencv learning] [common image convolution kernel]
猜你喜欢

MAC (MacOS Monterey 12.2 M1) personal use PHP development

Crowncad (crown CAD), the first fully independent 3D CAD platform based on Cloud Architecture in China

TVOC, VOC, VOCs gas detection + Solution

难忘阿里,4面技术5面HR附加笔试面,走的真艰难真心酸

EasyDSS点播服务分享时间出错如何修改?

操作教程:EasyDSS如何将MP4点播文件转化成RTSP视频流?

Unity SKFramework框架(十八)、RoamCameraController 漫游视角相机控制脚本
![[opencv learning] [contour detection]](/img/96/aaec61f137e4526c2c329e6fcfa1a2.jpg)
[opencv learning] [contour detection]
![[opencv learning] [image histogram and equalization]](/img/e7/b8dc55a9febf2b2949fce3a7ac21f9.jpg)
[opencv learning] [image histogram and equalization]
![[opencv learning] [image filtering]](/img/4c/fe22e9cdf531873a04a7c4e266228d.jpg)
[opencv learning] [image filtering]
随机推荐
记忆函数的性能优化
国内首款、完全自主、基于云架构的三维CAD平台——CrownCAD(皇冠CAD)
mac(macos Monterey12.2 m1) 个人使用php开发
Clean up system cache and free memory under Linux
[opencv learning] [image pyramid]
Security RememberMe原理分析
Web Foundation
Should I have a separate interface assembly- Should I have a separate assembly for interfaces?
Jerry's watch modifies the alarm clock [chapter]
Unity skframework framework (XXI), texture filter map resource filtering tool
Unity SKFramework框架(二十)、VFX Lab 特效库
Crowncad (crown CAD), the first fully independent 3D CAD platform based on Cloud Architecture in China
Download files and preview pictures
Ali was killed by two programming problems at the beginning, pushed inward again, and finally landed (he has taken an electronic offer)
嵌入式软件开发
Mysql常用命令详细大全
题解《子数整数》、《欢乐地跳》、《开灯》
Unity skframework framework (XIX), POI points of interest / information points
(7) Web security | penetration testing | how does network security determine whether CND exists, and how to bypass CND to find the real IP
机器学习基础(二)——训练集和测试集的划分