Skip to content

Error: cannot open this file as a SpatRaster #39

Answered by JetteReeg
millie-robson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
looking at the content of your file it seems that the file format is wrong and not in a raster format. You probably need to go back to ArcMap and make sure to rasterize your landscape (based on the content of your file it might be a spatial polygon or vector?).

A typical .asc raster file would have a header with 6 rows defining the parameters 'ncols', 'nrows', 'xllcorner', 'yllcorner', 'cellsize' and 'NODATA_value', then following the cell values for each grid cell. You can google 'asc raster file example' for examples.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@millie-robson
Comment options

@JetteReeg
Comment options

Answer selected by annekathleenmalchow
@millie-robson
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
2 participants