Я использую свои собственные данные и могу читать как мое исходное изображение Landat, так и изображение с отражающей поверхностью с моей областью интересов (AOI).Я получаю следующую ошибку при использовании этого кода.
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