GEE学习part9—Sentinel-1 sar影像下载(完整代码)

数据源为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'});

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值