Timeline for Creating a new layer from raster attribute table in R with terra?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 30 at 12:31 | comment | added | dimfalk |
What exactly are you trying to achieve? Feeding the categories obtained via levels() to classify() does not make sense and also would not work since rcl would consist of characters, and you would need an integer matrix. You probably would have noticed with the upper example being reproducible. Have a look at ?terra::classify for some examples. However, what is your goal? Assuming you had a SpatRaster object witth n categories, do you want to extract category x (let's say, forest areas) to a new object? And 55,000 rows in rat sounds very suspicous and not correct, by the way.
|
|
Mar 11 at 20:58 | history | edited | Reid L | CC BY-SA 4.0 |
added 1 character in body
|
S Mar 11 at 20:58 | review | First questions | |||
Mar 11 at 21:50 | |||||
S Mar 11 at 20:58 | history | asked | Reid L | CC BY-SA 4.0 |