基于 GEE 计算并下载研究区年均叶面积指数 LAI 和光合有效辐射分量 FPAR
目录
1 完整代码
2 运行结果
1 完整代码
var table = table;
var collection = ee.ImageCollection('MODIS/061/MOD15A2H')
.filterDate('2023-01-01', '2023-12-30')
.filterBounds(table);
// LAI配色
var colorLai = {
min: 0,
max: 100,
palette: [
'ffffff', 'fde0d4', 'fcc4ac', 'faa784', 'f68c5a', 'f27232', 'ea5811',
'd43d04', 'b22e03', '8b1f02', '611002', '3b0801', '210401', '140301',
'0b0101', '060101', '020101'
],
};
// FPAR配色
var colorFpar = {
min: 0,
max: 100,
palette: [
'ffffff', 'ce7e45', 'df923d', 'f1b555', 'fcd163', '99b718', '74a901',
'66a000', '529400', '3e8601', '207401', '056201', '004c00', '023b01',
'012e01', '011d01', '011301'
],
};
Map.centerObject(table,7)
var LAI = collection.select('Lai_500m').mean().clip(table)
var FPAR = collection.select('Fpar_500m').mean().clip(table)
Map.addLayer(LAI, colorLai, 'Lai');
Map.addLayer(FPAR, colorFpar, 'Fpar');
// 导出数据
Export.image.toDrive({
image: LAI,
fileFormat: "GeoTIFF",
scale: 500,
maxPixels : 1e13,
crs: "EPSG:4326",
region:table,
description:'LAI2023'
});
Export.image.toDrive({
image: FPAR,
fileFormat: "GeoTIFF",
scale: 500,
maxPixels : 1e13,
region:table,
description:'Fpar2023',
crs:"EPS6:4326" //WGS84
});
2 运行结果


