Google Earth Engine(GEE)——计算LST地表温度的出现的错误

简介: Google Earth Engine(GEE)——计算LST地表温度的出现的错误

很多时候我们将利用Landsat中的ST波段进行分析,这里我们首先再GEE原有的代码中进行初始影像的查看代码如下:

var dataset = ee.ImageCollection('LANDSAT/LC08/C02/T1_L2')
    .filterDate('2021-05-01', '2021-06-01');
// Applies scaling factors.
function applyScaleFactors(image) {
  var opticalBands = image.select('SR_B.').multiply(0.0000275).add(-0.2);
  var thermalBands = image.select('ST_B.*').multiply(0.00341802).add(149.0);
  return image.addBands(opticalBands, null, true)
              .addBands(thermalBands, null, true);
}
dataset = dataset.map(applyScaleFactors);
var visualization = {
  bands: ['SR_B4', 'SR_B3', 'SR_B2'],
  min: 0.0,
  max: 0.3,
};
Map.setCenter(-114.2579, 38.9275, 8);
Map.addLayer(dataset, visualization, 'True Color (432)');

再此代码基础上继续分析,这里需要根据公式来计算LST,但是这里我们查看代码有问题,问题如下:

 

第一个问题:

Image (Error)

Image.select: Pattern 'B10' did not match any bands.

这里的问题就在于我们影像中并没有这个波段,原始波段中仅有ST_B10波段,所以不能拿过代码来就用,我们需要根据波段名称就直接用,所以我们得注意。在进行分析前,一定要查看相应的波段。另外,你使用的是Landsat8的影像,波段的年限是2013年开始,所以for循环不要超过这个期限。

然后我们再看最后一个错误:

Image (Error)

Image.parseExpression: Expression parse error at character 28: 'T/(1+(10.9*T/1438e10-2)*log(ε))-273.15' ^.

0.135335*1438

表达式错误:

(T/((1+(10.9*T/1438)*ε1)-273.15))也就是这个错误,我们需要重新编辑这个函数

expression(expression, map)

Evaluate

相关文章
|
5天前
|
数据可视化 定位技术 Sentinel
如何用Google Earth Engine快速、大量下载遥感影像数据?
【2月更文挑战第9天】本文介绍在谷歌地球引擎(Google Earth Engine,GEE)中,批量下载指定时间范围、空间范围的遥感影像数据(包括Landsat、Sentinel等)的方法~
708 0
如何用Google Earth Engine快速、大量下载遥感影像数据?
|
5天前
|
编解码 人工智能 算法
Google Earth Engine——促进森林温室气体报告的全球时间序列数据集
Google Earth Engine——促进森林温室气体报告的全球时间序列数据集
33 0
|
5天前
|
机器学习/深度学习 算法 数据可视化
基于Google Earth Engine云平台构建的多源遥感数据森林地上生物量AGB估算模型含生物量模型应用APP
基于Google Earth Engine云平台构建的多源遥感数据森林地上生物量AGB估算模型含生物量模型应用APP
114 0
|
5天前
|
数据处理
Google Earth Engine(GEE)——sentinel-1数据处理过程中出现错误Dictionary does not contain key: bucketMeans
Google Earth Engine(GEE)——sentinel-1数据处理过程中出现错误Dictionary does not contain key: bucketMeans
33 0
|
5天前
|
编解码 人工智能 数据库
Google Earth Engine(GEE)——全球道路盘查项目全球道路数据库
Google Earth Engine(GEE)——全球道路盘查项目全球道路数据库
48 0
|
5天前
|
编解码
Open Google Earth Engine(OEEL)——matrixUnit(...)中产生常量影像
Open Google Earth Engine(OEEL)——matrixUnit(...)中产生常量影像
25 0
|
5天前
Google Earth Engine(GEE)——导出指定区域的河流和流域范围
Google Earth Engine(GEE)——导出指定区域的河流和流域范围
55 0
|
5天前
|
传感器 编解码 数据处理
Open Google Earth Engine(OEEL)——哨兵1号数据的黑边去除功能附链接和代码
Open Google Earth Engine(OEEL)——哨兵1号数据的黑边去除功能附链接和代码
29 0
|
5天前
Google Earth Engine(GEE)——当加载图表的时候出现错误No features contain non-null values of “system:time_start“.
Google Earth Engine(GEE)——当加载图表的时候出现错误No features contain non-null values of “system:time_start“.
48 0
|
5天前
|
编解码 定位技术
Google Earth Engine(GEE)——导出后的影像像素不同于原始Landsat影像的分辨率(投影差异)
Google Earth Engine(GEE)——导出后的影像像素不同于原始Landsat影像的分辨率(投影差异)
36 0

热门文章

最新文章