Hi everyone
I'm having issues over the past couple of days in carrying out mean.UD even though the script I've been using has previously been successful (with a slightly different dataset). I keep getting this error;
"Error in grid.union(x) : Inconsistent grid resolutions"
# I have made sure I am doing this before running the models;
ctmm::projection(Segmented_2025.telemetry) <- median(Segmented_2025.telemetry)
#The models all seem to run fine and if I then estimate the AKDEs as a list that all seems to work fine and the UD.s plot out fine, and summary values etc all look good.
#Then I try use the following script to extract models for an individual that was segmented seasonally;
# Create EXT for Mean Calculation
Mean_EXT_2025<-
extent (hrange_list_2025, level = 0.95) # all individuals
# Extract UD's for ASP23
ASP23_HR <- hrange_list_2025 [c("ASP23_1", "ASP23_2")]
# extract segmented individuals from AKDE list
# plot uds
plot_ud(ASP23_HR) # see attached document
# The projection for both objects in the list appears to be the same for telemetry and models:
all(sapply(ASP23.telemetry, function(x) ctmm::projection(x)) ==
sapply(ASP23_models, function(x) ctmm::projection(x)))
TRUE
# Get mean weighted by days of data
Mean_ASP23 <-mean(ASP23_HR,
weights=c(74,50), sample=FALSE, EXT= Mean_EXT_2025)
Error in grid.union(x) : Inconsistent grid resolutions.
I can't really figure out whats going on here.... I have attached my full script FYI which uses some of the functions from
ctmmweb. I am running ctmm version 1.3, R version 4.5.1 in case that
makes any difference? Any suggestions welcome?!
Thanks so much,
Kerry