Converting formal class rasterlayer to spatialgriddataframe

1k Views Asked by At

hopefully someone can help me.

I've got some slope data in the form of a formal class RasterLayerand by using the command as(slope, 'spatialGridDataFrame'), I've managed to convert it to a large spatialgriddataframe. However when I look at the data frame my variable, the slope angle, is filled with NA values. Though I don't understand as when I plot the grid it displays the slope angles see image. slope, plotted How do I make the variable in my spatialgriddata frame represent the slope angles?

This is the formalraster information formalraster info.1

formalraster info.2

This image is the spatialGridDataFrame infomation

spatialGridDataFrame info Any suggestions would be appreciated.

0

There are 0 best solutions below