数据源为COPERNICUS/S1_GRD,为sar数据。
// 筛选VV和VH双偏振图像
.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV'))
.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))
任务栏会显示已经查询到的影像数据。
我也是一枚小白,也是借鉴的大佬的代码,如果有不正确的解释,可以及时告知,共同进步!
下面付代码!
var start_date = ee.Date('2020-05-01');
var finish_date = ee.Date('2020-05-15');
var orbit = 'ASCENDING';
Map.centerObject(roi,7)
//boundary
var styling = {color:"red",fillColor:"00000000"};
// Map.addLayer(roi.style(styling),{},"geometry")
// Get the VV collection.
var collectionS1 = ee.ImageCollection('COPERNICUS/S1_GRD')
.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))
.filter(ee.Filter.eq('instrumentMode', 'IW'))
// .filter(ee.Filter.eq('orbitProperties_pass', orbit))
.filterDate(start_date, finish_date)
.filterBounds(roi);
// Get the VV collection.
var collectionVV = collectionS1.select('VH');
// Get the VH collection.
// var collectionVH = collectionS1.select('VH');
// // Get the angle collection.
// var collectionAngle = collectionS1.select('angle');
var VV = ee.Image(collectionVV.median());
Map.addLayer(VV, {min: -25, max: 5}, 'VH', true);
// Import Tools
var batch = require('users/fitoprincipe/geetools:batch');
// Change Folder Name
var folder = 'GEE_EXPORT';
// Download Collections
batch.Download.ImageCollection.toDrive(collectionVV, folder,
{name: 'VH_'+orbit+'_'+'{id}',
scale: 25,
maxPixels: 1e13,
region: roi,
type: 'float'});