当前位置:网站首页>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框架(十六)、Package Manager 開發工具包管理器
- 每日一题:1175.质数排列
- Unity skframework framework (XXI), texture filter map resource filtering tool
- Unity skframework framework (XVI), package manager development kit Manager
- Post order traversal sequence of 24 binary search tree of sword finger offer
- [200 opencv routines] 100 Adaptive local noise reduction filter
- Principle analysis of security rememberme
- Crowncad (crown CAD), the first fully independent 3D CAD platform based on Cloud Architecture in China
- [youcans' image processing learning course] general contents
- PR usage skills, how to use PR to watermark?
猜你喜欢
Essential for operation and maintenance - Elk log analysis system
记忆函数的性能优化
Unforgettable Ali, 4 skills, 5 hr additional written tests, it's really difficult and sad to walk
Unity skframework framework (XXI), texture filter map resource filtering tool
题解:《你的飞碟在这儿》、《哥德巴赫猜想》
最近公共祖先LCA的三种求法
Node.js通过ODBC访问PostgreSQL数据库
日本赌国运:Web3.0 ,反正也不是第一次失败了!
Jerry's watch delete alarm clock [chapter]
Unity SKFramework框架(十七)、FreeCameraController 上帝视角/自由视角相机控制脚本
随机推荐
Unity SKFramework框架(十九)、POI 兴趣点/信息点
【云原生数据库】遇到慢SQL该怎么办(上)?
SAP MM 因物料有负库存导致MMPV开账期失败问题之对策
Lucky numbers in the [leetcode daily question] matrix
【蓝桥杯选拔赛真题43】Scratch航天飞行 少儿编程scratch蓝桥杯选拔赛真题讲解
Jerry's watch time synchronization [chapter]
挥发性有机物TVOC、VOC、VOCS气体检测+解决方案
Independent and controllable 3D cloud CAD: crowncad enables innovative design of enterprises
Embedded software development
题解:《你的飞碟在这儿》、《哥德巴赫猜想》
Mysql常用命令详细大全
【OpenGL】笔记二十九、高级光照(镜面高光)
为什么switch 的default后面要跟break?
Jerry's watch delete alarm clock [chapter]
Unity skframework framework (XV), singleton singleton
TVOC, VOC, VOCs gas detection + Solution
Answer: can the audio be set to on by default during easydss video on demand?
口袋奇兵点评
诚邀青年创作者,一起在元宇宙里与投资人、创业者交流人生如何做选择……...
[error record] cannot open "XXX" because Apple cannot check whether it contains malware