Error reading landscape ASCII haeders - aborting #37
-
|
Hi, I checked the headers of my ascii files, i really don't see the problem with it. For example here is the headers of landscape.asc: Could this be a problem with the size of the file ? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
|
Hi mariesoret, |
Beta Was this translation helpful? Give feedback.
-
|
Hi, thanks for answering here is a zip with RS directory and Rmd file: I will try on a smaller area |
Beta Was this translation helpful? Give feedback.
-
|
Hi, 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():
|
Beta Was this translation helpful? Give feedback.
-
|
Sorry to hijack a thread, but I've been having the same problem. Have tried importing and then re-exporting in R like you did above, but it still doesnt work. Keep getting the "format error in header lines of the selected landscape file" (when trying with txt in GUI) or "*** Format error in header line " when trying with ASCII files in RangeshiftR. Have attached examples in the zip. The files are very big - over 250mb when uncompressed. Could it be that they are too big for the software to read? Reducing file size by using a coarser resolution has not worked yet though. Sorry to bother you |
Beta Was this translation helpful? Give feedback.
-
|
Hi, With this I could solve only 2 errors. So I checked the header manually and saw that the resolution was given as decimal number (25.00001). I set it back to 25. After that no error messages occured reading the LandscapeFile headers. However, the provided landscape file is indeed quite large and I actually interrupted the RangeShiftR test simulation while it was reading in the landscape file because it took too long. Nevertheless, RangeShiftR should be able to run with such a big landscape, but you need to be aware that it might need a lot of resources and the run time could get quite long. If you want to stick to that landscape, I would suggest to try running it on a High Performance Cluster. |
Beta Was this translation helpful? Give feedback.
Hi,
I was able to solve the error after I loaded the raster files in R and saved them again:
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():