Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/398.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何从Google Earth引擎下载特定多边形的sentinel 1_Javascript_Google Earth Engine_Sentinel - Fatal编程技术网

Javascript 如何从Google Earth引擎下载特定多边形的sentinel 1

Javascript 如何从Google Earth引擎下载特定多边形的sentinel 1,javascript,google-earth-engine,sentinel,Javascript,Google Earth Engine,Sentinel,我想下载VV和VH的Sentinel-1 SAR数据,IW仅在矩形多边形内?我可以下载ROI,但即使ROI是一个矩形,要导出的输出也是一个矩形 红色矩形是我的ROI,但它采用了极端坐标,并制作了一个包围ROI的正方形,然后导出输出,如图所示 我只想要ROI中的数据 我甚至试着用ee.Image.clip。但我无法想出一个可以下载数据的解决方案。它将变成一个大文件 var start_date = ee.Date('2019-05-01'); finish_date = ee.Date('20

我想下载VV和VH的Sentinel-1 SAR数据,IW仅在矩形多边形内?我可以下载ROI,但即使ROI是一个矩形,要导出的输出也是一个矩形

红色矩形是我的ROI,但它采用了极端坐标,并制作了一个包围ROI的正方形,然后导出输出,如图所示

我只想要ROI中的数据

我甚至试着用ee.Image.clip。但我无法想出一个可以下载数据的解决方案。它将变成一个大文件

var start_date = ee.Date('2019-05-01');
finish_date = ee.Date('2019-06-15');
var orbit = 'ASCENDING';

var collectionS1 = ee.ImageCollection('COPERNICUS/S1_GRD')
    .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV'))
    .filter(ee.Filter.eq('instrumentMode', 'IW'))
    // .filter(ee.Filter.eq('orbitProperties_pass', orbit))
    .filterDate(start_date, finish_date)
    //.filterBounds(polygons);

 // Get the VV collection.
var collectionVV = collectionS1.select('VV');
// Get the VH collection.
var collectionVH = collectionS1.select('VH');

var VV = ee.Image(collectionVV.first().clip(roi_A);  //roi_A is my rectangular roi
var VH = ee.Image(collectionVH.first()); 

// I would like to take VV and VH and stack them and download
var VVVH = VV.addBands(VH)

Export.image.toDrive({
  image: VV,
  description: 'A_ERT',
  scale: 10,
  //region: ROI,
  fileFormat: 'GeoTIFF',
  //formatOptions: {
  //  cloudOptimized: true
  //}
});

我收到以下错误消息

错误:导出太大:指定了6875185131像素(最大值:100000000)。如果要导出大面积,请指定更高的maxPixels值


首先,请看下面的指南:

在Export.image.toDrive中有多种方法可以实现此目的:

  • 指定区域-创建几何图形并在导出中指定其名称(f.ex.区域:几何图形)
  • 如果导出大比例图像-缩小比例(例如比例:20)
  • 如果您真的想要区域的完整分辨率,请将“maxPixels:”添加到导出中,并按照我在上面链接的指南(f.ex.maxPixels:1e10)中指定的值增加
  • 若要加快工作流程,还可以通过添加.filterBounds(几何体)将imageCollection中的数据过滤到几何体中