在R中堆叠JP2栅格时出错

时间:2017-12-18 14:33:17

标签: r image-processing raster

我正在尝试阅读和堆叠12个哨兵2图像的乐队。图像采用jp2格式。我以前用tiff文件成功完成了这个,但是当我运行以下脚本时,我收到一个错误:

sentinel2 <- list.files("path/to/folder", pattern="\\.jp2$", full.names = T) 

sentinel2_stack <- stack(sentinel2)

Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer",  
: Cannot create a RasterLayer object from this file. (file does not exist)

我已加载光栅包。有什么建议?这是jp2格式的问题吗?

0 个答案:

没有答案