I'm having trouble with rsf.fit run on UDs created from ctmm_fit. I'm using the following code:
j = 1 #test on one individual
cilla <- DATA[[j]]
cilla.ud = uds[[j]]
RESULTS <- ctmm::rsf.fit(cilla,
UD = cilla.ud,
R = rlist,
integrated = TRUE,
level.UD = 95,
error = TRUE)
I have 5 underlying rasters I'm using for the rsf (in rlist). There are no NA values in the rasters, and nodata in the raster is set to -3.40282E+38.
The problem I'm having is that rsf.fit produces the error:
Error in ctmm::rsf.fit(cilla, UD = cilla.ud, R = rlist, integrated = TRUE, : NA values in sampled rasters.
But I'm fairly confident that I've dealt with NA and nan values in the underlying rasters. Furthermore, if I look at one of the UDs that produces this error, it's right in the middle of the extent of the rasters.
I've downloaded the most recent ctmm package from Github.
It's highly likely I'm blundering this somewhere, but I'm not sure what else to try to get this to work.
Many thanks for any guidance!