当前位置:网站首页>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/
边栏推荐
- Unity skframework framework (XVII), freecameracontroller God view / free view camera control script
- 题解:《你的飞碟在这儿》、《哥德巴赫猜想》
- 三翼鸟两周年:羽翼渐丰,腾飞指日可待
- Post order traversal sequence of 24 binary search tree of sword finger offer
- Unity skframework framework (XII), score scoring module
- OpenApi-Generator:简化RESTful API开发流程
- [indomitable medal activity] life goes on and writing goes on
- Unity skframework framework (XVI), package manager development kit Manager
- [true topic of the Blue Bridge Cup trials 43] scratch space flight children's programming explanation of the true topic of the Blue Bridge Cup trials
- What are eNB, EPC and PGW?
猜你喜欢
![[技术发展-22]:网络与通信技术的应用与发展快速概览-2- 通信技术](/img/a7/44609a5acf25021f1fca566c3d8c90.png)
[技术发展-22]:网络与通信技术的应用与发展快速概览-2- 通信技术

Essential for operation and maintenance - Elk log analysis system

net share

能自动更新的万能周报模板,有手就会用!

Ali was killed by two programming problems at the beginning, pushed inward again, and finally landed (he has taken an electronic offer)

We sincerely invite young creators to share with investors and entrepreneurs how to make choices in life in the metauniverse

Operation tutorial: how does easydss convert MP4 on demand files into RTSP video streams?

自主可控三维云CAD:CrownCAD赋能企业创新设计

Unity skframework framework (XII), score scoring module
![Jerry's watch delete alarm clock [chapter]](/img/7f/d51b37872b4ce905a0a723a514b2dc.jpg)
Jerry's watch delete alarm clock [chapter]
随机推荐
JS逆向之巨量创意signature签名
Unity SKFramework框架(二十一)、Texture Filter 贴图资源筛选工具
Mysql常用命令详细大全
[opencv learning] [template matching]
【蓝桥杯选拔赛真题43】Scratch航天飞行 少儿编程scratch蓝桥杯选拔赛真题讲解
Japan bet on national luck: Web3.0, anyway, is not the first time to fail!
Numpy array calculation
OpenApi-Generator:简化RESTful API开发流程
Lucky numbers in the [leetcode daily question] matrix
机器学习基础(二)——训练集和测试集的划分
[opencv learning] [contour detection]
[youcans' image processing learning course] general contents
[opencv learning] [common image convolution kernel]
完全自主可控三维云CAD:CrownCAD便捷的命令搜索,快速定位所需命令具体位置。
Jerry's watch gets the default ringtone selection list [article]
MAC (MacOS Monterey 12.2 M1) personal use PHP development
Unity skframework framework (XXI), texture filter map resource filtering tool
Principle analysis of security rememberme
Tupang multi-target tracking! BOT sort: robust correlated multi pedestrian tracking
日本赌国运:Web3.0 ,反正也不是第一次失败了!