Skip to content

Error in metric.EB and calcAnchors #49

@nasreen11

Description

@nasreen11

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??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions