我被困在水袋上。我要遵循的示例代码在此网站https://cran.r-project.org/web/packages/water/vignettes/Landsat8.html上。我正在使用自己的数据,并且能够读取我感兴趣的区域(aoi)的原始Landat图像和表面反射率图像。使用此代码时出现以下错误。
hot.and.cold <- calcAnchors(image = image.TOAr, Ts = Ts, LAI = LAI, plots = F, albedo = albedo, Z.om = Z.om, n = 1, anchors.method = "flexible",
+ WeatherStation = WeatherStation, verbose = F)
Error in .local(x, ...) :
RasterLayer has no NA cells (for which to compute a distance)