Google Earth Engine (GEE) - how to download images in batches? (covers all the most complete batch image download solutions in javascript and python)

Here we have two solutions that can be implemented. The first is to implement the import through an external plug-in. In addition, it is done by writing code, and the other is to complete it by entering code in the console, so next we pass this. There are three ways to complete the batch download. First, we can see how to process it in the form of code:

JavaScript

Option One:



var s2 = ee.ImageCollection("COPERNICUS/S2");
var geometry = ee.Geometry.Polygon([[
  [82.60642647743225, 27.16350437805251],
  [82.60984897613525, 27.1618529901377],
  [82.61088967323303, 27.163695288375266],
  [82.60757446289062, 27.16517483230927]
]]);
Map.addLayer(geometry, {color: 'red'}, 'Farm')
Map.centerObject(geometry)
var rgbVis = {min: 0.0, max: 3000, bands: ['B4', 'B3', 'B2']};

var filtered = s2
  .filter(ee.Filter.date('2020-01-01', '2021-01-01'))
  .filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', 20))
  .filter(ee.Filter.bounds(geometry))

// 去云函数
function maskS2clouds(image) {
  var qa = image.select('QA60')
  var cloudBitMask &

Guess you like

Origin blog.csdn.net/qq_31988139/article/details/130465339