Error in metric.EB and calcAnchors
Opened this issue · 0 comments
nasreen11 commented
Hello
I am trying to use your water toolbox and metric code for Landsat 8. I am using the following command
Energy.Balance <- METRIC.EB(image.DN = image, image.SR = image.SR,
-
plain=TRUE, n = 1, WeatherStation = WeatherStation,
-
ETp.coef = 1.2, sat="L8", alb.coeff = "Olmedo", LST.method = "SW",
-
LAI.method = "metric2010", Z.om.ws = 0.03, anchors.method = "flexible", MTL = MTLfile)
But it is showing the following error message.
Error in .local(x, ...) :
RasterLayer has no NA cells (for which to compute a distance)
I also tried the advanced option but it also shows the same errors while calculating hot and cold pixels using calcAnchors although I could calculate G and Rn. Can anyone help me??