Google Earth Engine 视频导出错误(a.element.map 不是函数)

Google Earth Engine video export error (a.element.map is not a function)

我想在这里导出延时摄影,但出现奇怪的错误:

Error Creating or Submitting Task
a.element.map is not a function

我想通过 visualize() 在导出的视频中保留 visParams,我不确定这样做是否正确。你有什么建议吗?

var l8 = ee.ImageCollection("LANDSAT/LC08/C01/T1_TOA"),
region = ee.Geometry.Polygon(
    [[[44.76385083079123, 38.28074335406828],
      [44.76385083079123, 37.1334667575582],
      [46.08221020579123, 37.1334667575582],
      [46.08221020579123, 38.28074335406828]]], null, false),
params = {"opacity":1,"bands":["B4","B3","B2"],"min":0.07630298537191671,"max":0.3954072752450793,"gamma":1.356};

var collection = l8.filterBounds(region)
                    .filterMetadata('CLOUD_COVER', 'LESS_THAN', 30);
                    .filterDate('1999-01-01', '2020-01-01');

var l8med = collection.median();
Map.addLayer(collection, params, 'Layer');

print(collection.size());

var newimg = l8med.visualize(params); 

Export.video.toDrive({
  collection: newimg,
  description: 'a1',
  dimensions: 720,
  framesPerSecond: 12,
  folder: "GEE",
  maxFrames: 100000,
  region: region
});

您使用 .median() 从集合中制作了一张图片,然后尝试导出它,所以它无法工作 — 之后没有时间序列可以用来制作视频。

您确实需要 .visualize(),但您需要为 每个 图像执行此操作:

Export.video.toDrive({
  collection: collection.map(function (image) { return image.visualize(params); }),
  ...