当前位置:网站首页>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/
边栏推荐
- MySQL: Invalid GIS data provided to function st_ geometryfromtext
- Unity skframework Framework (XVI), package manager Development Kit Manager
- 口袋奇兵点评
- Unity SKFramework框架(十九)、POI 兴趣点/信息点
- Redis数据库持久化
- (7) Web security | penetration testing | how does network security determine whether CND exists, and how to bypass CND to find the real IP
- Web Foundation
- How to get the operating system running PHP- How to get the OS on which PHP is running?
- [OpenGL] notes 29. Advanced lighting (specular highlights)
- EasyDSS点播服务分享时间出错如何修改?
猜你喜欢

Unity SKFramework框架(二十一)、Texture Filter 贴图资源筛选工具

【笔耕不辍勋章活动】生命不止,写作不息

Unity SKFramework框架(十七)、FreeCameraController 上帝视角/自由视角相机控制脚本

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

OpenApi-Generator:简化RESTful API开发流程

Unity skframework framework (XIX), POI points of interest / information points

2、 Frame mode MPLS operation

leetcode621. 任务调度器

SAP MM 因物料有负库存导致MMPV开账期失败问题之对策

Word efficiency guide - word's own template
随机推荐
numpy数组计算
[opencv] [image gradient]
机器学习基础(二)——训练集和测试集的划分
leetcode621. task scheduler
Unity skframework framework (XX), VFX lab special effects library
Research shows that "congenial" is more likely to become friends
Daily question: 1175 Prime permutation
Unity SKFramework框架(十七)、FreeCameraController 上帝视角/自由视角相机控制脚本
MySQL: Invalid GIS data provided to function st_ geometryfromtext
net share
Post order traversal sequence of 24 binary search tree of sword finger offer
PR usage skills, how to use PR to watermark?
Redis数据库持久化
文件的下载与图片的预览
Jerry's watch ringtone audition [article]
Mysql常用命令详细大全
口袋奇兵点评
[opencv learning] [image filtering]
能自动更新的万能周报模板,有手就会用!
诚邀青年创作者,一起在元宇宙里与投资人、创业者交流人生如何做选择……...