Google Earth Engine(GEE)——landsat 8 和9影像集合SR_B6无法进行映射
True Color (432): Layer error: ImageCollection.mosaic: Error in map(ID=LC09_001048_20220114): Image.select: Pattern 'ST_B6' did not match any bands.
True Color (432): Layer error: ImageCollection.mosaic: Error in map(ID=LC08_001004_20210511): Image.select: Pattern 'ST_B6' did not match any bands.
这里是直接修改后的代码,大家可以尝试将注释代码部分去掉,结果就会出现上面的报错:
//所有参与计算的影像集合都为地标反射率SR数据集、、、、、、、、、、、、、、、、、、、
///USGS Landsat 9 Level 2, Collection 2, Tier 1
var dataset = ee.ImageCollection('LANDSAT/LC09/C02/T1_L2')
.filterDate('2022-01-01', '2022-02-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)');
/USGS Landsat 8 Level 2, Collection 2, Tier 1///
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)');
///USGS Landsat 5 Level 2, Collection 2, Tier 1/
var dataset = ee.ImageCollection('LANDSAT/LT05/C02/T1_L2')
.filterDate('2000-06-01', '2000-07-01');
print(dataset.limit(10))
// Applies scaling factors.
function applyScaleFactors(image) {
var opticalBands = image.select('SR_B.').multiply(0.0000275).add(-0.2);
//var thermalBand = image.select("ST_B6").multiply(0.00341802).add(149.0);
return image.addBands(opticalBands, null, true)
//.addBands(thermalBand, null, true);
}
dataset = dataset.map(applyScaleFactors);
var visualization = {
bands: ['SR_B3', 'SR_B2', 'SR_B1'],
min: 0.0,
max: 0.3,
};
Map.setCenter(-114.2579, 38.9275, 8);
Map.addLayer(dataset, visualization, 'True Color (321)');
所有目前对于所有的C02数据中,Landsat8 和5的地表反射率中,无法进行温度波段的映射和转换。只有Landsat9 是ok的。上面的代码中已经去除了温度波段的映射计算,所以结果是可以的,也可以进行正常的波段运算,这可能是GEE数据集中在归档的时候,并没有把温度波段和其它波段一起放,而是放在了Bitmask for SR_CLOUD_QA的一个子波段。这里简单举一个例子,请查看下面的Landsat5的波段。
Resolution
30 meters
Bands
Name | Units | Min | Max | Scale | Offset | Wavelength | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SR_B1 | 1 | 65455 | 2.75e-05 | -0.2 | 0.45-0.52 μm | Band 1 (blue) surface reflectance | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SR_B2 | 1 | 65455 | 2.75e-05 | -0.2 | 0.52-0.60 μm | Band 2 (green) surface reflectance | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SR_B3 | 1 | 65455 | 2.75e-05 | -0.2 | 0.63-0.69 μm | Band 3 (red) surface reflectance | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SR_B4 | 1 | 65455 | 2.75e-05 | -0.2 | 0.77-0.90 μm | Band 4 (near infrared) surface reflectance | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SR_B5 | 1 | 65455 | 2.75e-05 | -0.2 | 1.55-1.75 μm | Band 5 (shortwave infrared 1) surface reflectance | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SR_B7 | 1 | 65455 | 2.75e-05 | -0.2 | 2.08-2.35 μm | Band 7 (shortwave infrared 2) surface reflectance | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SR_ATMOS_OPACITY | 0 | 10000 | 0.001 | A general interpretation of atmospheric opacity generated by LEDAPS and based on the radiance viewed over Dark Dense Vegetation (DDV) within the scene. A general interpretation of atmospheric opacity is that values (after scaling by 0.001 is applied) less than 0.1 are clear, 0.1-0.3 are average, and values greater than 0.3 indicate haze or other cloud situations. SR values from pixels with high atmospheric opacity will be less reliable, especially under high solar zenith angle conditions. The SR_ATMOS_OPACITY band is provided for advanced users and for product quality assessment and has not been validated. Most users are advised to instead use the QA_PIXEL band information for cloud discrimination. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SR_CLOUD_QA | Cloud Quality Assessment | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bitmask for SR_CLOUD_QA | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ST_B6 | K | 0 | 65535 | 0.00341802 | 149 | 10.40-12.50 μm | Band 6 surface temperature. If 'PROCESSING_LEVEL' is set to 'L2SR', this band is fully masked out. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ST_ATRAN | 0 | 10000 | 0.0001 | Atmospheric Transmittance. If 'PROCESSING_LEVEL' is set to 'L2SR', this band is fully masked out. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ST_CDIST | km | 0 | 24000 | 0.01 | Pixel distance to cloud. If 'PROCESSING_LEVEL' is set to 'L2SR', this band is fully masked out. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ST_DRAD | W/(m^2*sr*um)/ DN | 0 | 28000 | 0.001 | Downwelled Radiance. If 'PROCESSING_LEVEL' is set to 'L2SR', this band is fully masked out. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ST_EMIS | 0 | 10000 | 0.0001 | Emissivity estimated from ASTER GED. If 'PROCESSING_LEVEL' is set to 'L2SR', this band is fully masked out. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ST_EMSD | 0 | 10000 | 0.0001 | Emissivity standard deviation. If 'PROCESSING_LEVEL' is set to 'L2SR', this band is fully masked out. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ST_QA | K | 0 | 32767 | 0.01 | Uncertainty of the Surface Temperature band. If 'PROCESSING_LEVEL' is set to 'L2SR', this band is fully masked out. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ST_TRAD | W/(m^2*sr*um)/ DN | 0 | 22000 | 0.001 | Thermal band converted to radiance. If 'PROCESSING_LEVEL' is set to 'L2SR', this band is fully masked out. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ST_URAD | W/(m^2*sr*um)/ DN | 0 | 28000 | 0.001 | Upwelled Radiance. If 'PROCESSING_LEVEL' is set to 'L2SR', this band is fully masked out. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
QA_PIXEL | Pixel quality attributes generated from the CFMASK algorithm. |
相关文章
- leelazero and google colab
- Google Earth Engine 教程——影像区域统计分析
- Google Earth Engine 教程——Landsat 8 影像集合去云分析QA波段和去云NDVI的影像
- Google Earth Engine(GEE)——连接join,两个影像集合的通过时间属性来进行equals连接
- Google Earth Engine(GEE)——GEE新功能FeatureView上线矢量集合加载无延时可以快速加载查看
- Google Earth Engine ——极简教程(英文版)
- Google Earth Engine(GEE)——影像集合的边界筛选和时间筛选
- Google Earth Engine ——土地分类/覆盖制图(1)
- Google Earth Engine(GEE)—geemap Image collection影像集合筛选和属性信息获取
- Google Earth Engine(GEE)——fliter()筛选矢量集合的有用信息
- Google Earth Engine(GEE)——影像集合中MAX,min、mean和正常影像的显示差异!
- Google Earth Engine(GEE)—— ImageCollection 影像集合上的映射
- Google Earth Engine(GEE)——JavaScript基本功能介绍( 矢量集合FeatureCollections)
- Google Earth Engine(GEE)——机器学习(非监督分类)
- Google Earth Engine(GEE)——特征和特征集合可视化FeatureCollection(不同颜色和线条宽度的显示)
- Google Earth Engine(GEE) ——Landsat4/5/7/8集合计算指定区域NDVI的Mann Kendall M-K分析(曼肯德尔趋势分析)
- Google Earth Engine——全球建筑物GlobalMLBuildingFootprints矢量集合下载
- Google Earth Engine(GEE) ——geoBoundaries全球政治行政边界数据库
- Google Earth Engine ——Landsat 5 和Landsat1-4影像集合
- Google Earth Engine——TRMM/34B2产品包含一个网格化的、经TRMM调整的、合并的红外降水(毫米/小时)和降水误差的有效值估计,时间分辨率为3小时,空间分辨率为0.25度。
- Google Earth Engine——流域边界数据集 (WBD) 是水文单位 (HU) 数据的综合汇总集合,与国家划定和分辨率标准一致。它定义了地表水排放到某个点的区域范围
- Google Earth Engine ——MODIS Terra/Aqua Daily NDVI数据集
- [Google Guava] 2.4-集合扩展工具类
- Google protocol buffer在windows下的编译