Skip to content
Prev 9411 / 29559 Next

Error in ContourLines2SLDF(CLrp) : cL too short

On Mon, 27 Sep 2010, Maxime Pauwels wrote:

            
The levels= value is outside the range of values in img1rp:

library(maptools)
image(volcano)
summary(c(volcano))
CLrp <- contourLines(volcano, levels=70)
CLSLrp<-ContourLines2SLDF(CLrp)
# error
CLrp <- contourLines(volcano, levels=170)
CLSLrp<-ContourLines2SLDF(CLrp)
plot(CLSLrp, add=TRUE)
# OK

Hope this helps,

Roger