当前位置:网站首页>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/
边栏推荐
- Jerry's watch ringtone audition [article]
- Jerry's watch delete alarm clock [chapter]
- [opencv learning] [Canny edge detection]
- [Unity]使用GB2312,打包后程序不正常解决方案
- [opencv learning] [image filtering]
- Unity skframework framework (XIV), extension extension function
- Unity skframework framework (XVI), package manager development kit Manager
- The second anniversary of the three winged bird: the wings are getting richer and the take-off is just around the corner
- 【蓝桥杯选拔赛真题43】Scratch航天飞行 少儿编程scratch蓝桥杯选拔赛真题讲解
- Unity SKFramework框架(十四)、Extension 扩展函数
猜你喜欢
![[opencv] [image gradient]](/img/37/1f366501e2b4e70ecee6365088167c.jpg)
[opencv] [image gradient]

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

How to modify the error of easydss on demand service sharing time?

Unity skframework framework (XX), VFX lab special effects library

Unity skframework framework (XVI), package manager development kit Manager

Unity skframework framework (XVII), freecameracontroller God view / free view camera control script

二、帧模式 MPLS 操作

net share

伙伴云表格强势升级!Pro版,更非凡!

(6) Web security | penetration test | network security encryption and decryption ciphertext related features, with super encryption and decryption software
随机推荐
Everyone wants to eat a broken buffet. It's almost cold
Pocket Raider comments
阿里初面被两道编程题给干掉,再次内推终上岸(已拿电子offer)
【OpenGL】笔记二十九、高级光照(镜面高光)
[opencv learning] [Canny edge detection]
PR usage skills, how to use PR to watermark?
Jerry's watch stops ringing [article]
文件的下载与图片的预览
linux下清理系统缓存并释放内存
Structured data, semi-structured data and unstructured data
为什么switch 的default后面要跟break?
自主可控三维云CAD:CrownCAD赋能企业创新设计
(7) Web security | penetration testing | how does network security determine whether CND exists, and how to bypass CND to find the real IP
Unity skframework Framework (XVI), package manager Development Kit Manager
Embedded software development
Unity skframework framework (XIX), POI points of interest / information points
Answer: can the audio be set to on by default during easydss video on demand?
互联网常见34个术语解释
What are eNB, EPC and PGW?
难忘阿里,4面技术5面HR附加笔试面,走的真艰难真心酸