METRIC.EB错误.local(x,…)中的错误:RasterLayer没有NA像元(要为其计算距离)

时间:2019-03-14 18:24:27

标签: r raster

我正在使用自己的数据,并且能够读取我感兴趣的区域(aoi)的原始landatat图像和表面反射率图像。使用此代码时出现以下错误。

Energy.Balance <- METRIC.EB(
                     image.DN = image, 
                     image.SR = image.SR, 
                     plain=TRUE, 
                     aoi=aoi, 
                     n = 5, 
                     WeatherStation= ws, 
                     ETp.coef = 1.2, 
                     sat="L8", 
                     alb.coeff ="Olmedo",
                     LST.method = "SW", 
                     LAI.method = "metric2010", 
                     Z.om.ws = 0.03, 
                     MTL = MTLfile
                  )
  

.local(x,...)中的错误:     RasterLayer没有NA像元(需要为其计算距离)

添加后:anchors.method ="flexible", plain = TRUE可以运行METRIC.EB()

Error in METRIC.EB(image.DN = image, image.SR = image.SR, plain = TRUE,  : 
  formal argument "plain" matched by multiple actual arguments
In addition: There were 12 warnings (use warnings() to see them)
warnings()
Warning messages:
1: In doTryCatch(return(expr), name, parentenv, handler) :
  display list redraw incomplete
2: In doTryCatch(return(expr), name, parentenv, handler) : invalid graphics state
3: In doTryCatch(return(expr), name, parentenv, handler) : invalid graphics state
4: In doTryCatch(return(expr), name, parentenv, handler) :
  display list redraw incomplete
5: In doTryCatch(return(expr), name, parentenv, handler) : invalid graphics state
6: In doTryCatch(return(expr), name, parentenv, handler) : invalid graphics state
7: In doTryCatch(return(expr), name, parentenv, handler) :
  display list redraw incomplete
8: In doTryCatch(return(expr), name, parentenv, handler) : invalid graphics state
9: In doTryCatch(return(expr), name, parentenv, handler) : invalid graphics state
10: In doTryCatch(return(expr), name, parentenv, handler) :
  display list redraw incomplete
11: In doTryCatch(return(expr), name, parentenv, handler) :
  invalid graphics state
12: In doTryCatch(return(expr), name, parentenv, handler) :
  invalid graphics state

0 个答案:

没有答案
相关问题