Skip to content
Discussion options

You must be logged in to vote

Hi,
I was able to solve the error after I loaded the raster files in R and saved them again:

libary(raster)
library(rgdal)   
landscape <- raster("AO_EXP/Inputs/landscape.asc")   
writeRaster(landscape,"AO_EXP/Inputs/landscape.asc", format="ascii")

So it seems that there are some (hidden) format errors in the files.

A small side note: I saw that your habitat codes start with 0. Please check the help file of ImportedLandscape():

Raster with habitat codes (HabPercent=FALSE)
In this option each habitat or land-cover type has a unique integer code. Each cell in the file contains a single habitat code and 100 percent coverage is assumed for the cell. The landscape is therefore composed of di…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mariesoret
Comment options

Answer selected by mariesoret
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@JetteReeg
Comment options

@JetteReeg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants