将处理好的栅格影像导出至Assets
Export.image.toAsset({
image: Image_Name.select(["B12","B11","B8","B7","B6","B5", "B4", "B3"]),
description: 'Export image to Assets',
assetId: 'Image1',
scale: 30,
region: roi,
crs: 'EPSG:4326',
pyramidingPolicy: {
'B12': 'mean',
'B11': 'max',
'B8': 'median',
'B7':'mean',
'B6':'mean',
'B5':'mean',
'B4':'mean',
'B3':'mean'
}
});
将处理好的影像导出至Drive
Export.image.toDrive({
image: Image_Name.select(["B12","B11","B8","B7","B6","B5", "B4", "B3"]),
description: "Export image to Drive",
fileNamePrefix: "Image2",
scale: 30,
region: roi,
crs: 'EPSG:4326',
maxPixels: 1e13
});
导出后在ArcGIS中加载,发现有黑色背景,由于我需要提取每个栅格对应的像元值,而在有黑景的情况下,栅格转点会将黑色背景的栅格也转为点,因此需要去除黑色背景
identify查看发现黑色区域显示为nodata,nodata≠0,也不等于无值。
在properties的symbology里查看Display Nodata as无色是选中的状态,将Display Background value选中发现依然无用。
在Datamanagement tool中找到copy raster,将这幅影像复制,NoData Value设为0 ,输出,发现背景黑值消失,但identify时依然显示为Nodata
再次进行栅格转点,去掉的黑色背景值没有被转为点文件,去除背景黑值成功。