当前位置:网站首页>Gee import SHP data - crop image
Gee import SHP data - crop image
2022-07-04 02:08:00 【RS&Hydrology】
1.Importing Table Data:https://developers.google.com/earth-engine/guides/table_upload
Attention should be paid to importing shp When you file , Need to include .shp, .dbf, .shx, .prj Four files are compressed into zip File re import .
2. Vector data crop image
(1) Crop image set
First, define a function to crop a single image , Then apply this function to the data set .
//shp
var tp = ee.FeatureCollection(table)
// show jrc monthly history dataset
var dataset = ee.ImageCollection('JRC/GSW1_3/MonthlyHistory')
.filterDate('2010-01-01','2020-12-31')
.filterBounds(tp);
//use shp file to clip the jrc dataset
//define clip function to clip a image
function clipImg(image){
return image.clipToCollection(tp);
}
var clipCol=dataset.map(clipImg);
var visParams={
bands: ['water'],
min: 0.0,
max: 2.0,
palette: ['ffffff', 'fffcb8', '0905ff']
};
print(clipCol);
Map.addLayer(clipCol,visParams,"clip ImgCol");
(2) Crop a single image
Using vector data to crop a single image is relatively simple , Directly use the clipping function :clipToCollection
var clip=data.clipToCollection(shp_file);
边栏推荐
- LV1 Roche limit
- Yyds dry goods inventory override and virtual of classes in C
- Portable two-way radio equipment - current market situation and future development trend
- Format character%* s
- Portapack application development tutorial (XVII) nRF24L01 launch C
- What are the main investment products of bond funds and what are they
- [typora installation package] old typera installation package, free version
- All ceramic crowns - current market situation and future development trend
- Neo4j learning notes
- 16. System and process information
猜你喜欢
Magical usage of edge browser (highly recommended by program ape and student party)
Hbuilder link Xiaoyao simulator
Rearrangement of tag number of cadence OrCAD components and sequence number of schematic page
Applet graduation project is based on wechat classroom laboratory reservation applet graduation project opening report function reference
IPv6 experiment
LeetCode226. Flip binary tree
Chain ide -- the infrastructure of the metauniverse
Use classname to modify style properties
Idea if a class cannot be found, it will be red
FRP intranet penetration
随机推荐
What are the advantages and disadvantages of data center agents?
Douban scoring applet Part-3
12. Gettimeofday() and time()
Maximum entropy model
MySQL advanced (Advanced) SQL statement (I)
Chinese Mitten Crab - current market situation and future development trend
All metal crowns - current market situation and future development trend
Experimental animal models - current market situation and future development trend
Properties of binary trees (numerical aspects)
All ceramic crowns - current market situation and future development trend
PMP daily three questions (February 14, 2022)
Mobile phone battery - current market situation and future development trend
ThinkPHP uses redis to update database tables
Summarize the past to motivate yourself to move on
2022 electrician (elementary) examination question bank and electrician (elementary) simulation examination question bank
How to subcontract uniapp and applet, detailed steps (illustration) # yyds dry goods inventory #
14. Process time
1189. Maximum number of "balloons"
Méthode de calcul de la connexion MSSQL de la carte esp32c3
Introduction to superresolution