Google Earth Engine 中的马赛克

Mosaicking in Google Earth Engine

我正在尝试在 Google Earth Engine 中创建马赛克,但在我将图层添加到地图的行中收到一条错误消息 'b.call is not a function'。 有谁知道是怎么回事吗?

var path38 = ee.ImageCollection("LANDSAT/LC08/C02/T1_L2")
                  .filterDate('2013-07-20', '2013-08-01')
                  .filter(ee.Filter.or(
                  ee.Filter.and(ee.Filter.eq('WRS_PATH', 38),
                  ee.Filter.eq('WRS_ROW', 25)),
                  ee.Filter.and(ee.Filter.eq('WRS_PATH', 38),
                  ee.Filter.eq('WRS_ROW', 26)),
                  ee.Filter.and(ee.Filter.eq('WRS_PATH', 38),
                  ee.Filter.eq('WRS_ROW', 27))));
var visParams = {
  bands: ['SR_B4', 'SR_B3', 'SR_B2'],
  min: 8000,
  max: 20000,
  gamma: 2.8,
};
Map.addLayer(path38, visParams, 'path38SR2011');

var p38mos = path38.mosaic;
var visParams = {
  bands: ['SR_B4', 'SR_B3', 'SR_B2'],
  min: 8000,
  max: 20000,
  gamma: 2.8,
};

Map.addLayer(p38mos, visParams, 'p38_2013');
var p38mos = path38.mosaic;

您错过了实际调用该方法,因此稍后出现类型错误。这一行应该是:

var p38mos = path38.mosaic();