terra::rast() seems to fail when one RasterStack layer has factor levels (and the others do not?). I haven't looked into this thoroughly, but it might be a terra problem and not an amt problem. In the example below, the 4th layer of uhc_hab has factor levels while the others do not.
Seems like an easy fix by creating uhc_hab with terra in the first place. I'm working on that now. Thought this was worth documenting here in case we see it again in the future.
terra::rast()
seems to fail when oneRasterStack
layer has factor levels (and the others do not?). I haven't looked into this thoroughly, but it might be aterra
problem and not anamt
problem. In the example below, the 4th layer ofuhc_hab
has factor levels while the others do not.Seems like an easy fix by creating
uhc_hab
withterra
in the first place. I'm working on that now. Thought this was worth documenting here in case we see it again in the future.