Closed xhdong-umd closed 3 years ago
The error is happening because the "movement_data" are not being calibrated correctly (class mismatch), ...
because they have a different format (sensor.type='gps'
) than the "calibration_data", ...
because "calibration_data" are not MoveBank formatted, ...
because "calibration_data" look like "movement_data" that have been run through ctmm
and calibrated already, ...
but the RMS UERE for "calibration_data" is suspiciously large (38 meters) and the same as what you get when treating "movement_data" as calibration data.
@chfleming , Adrián mentioned that the hosted web version doesn't have the error. Out of curiosity I tested and found it's related to ctmm version. By further installing different ctmm versions, I found out that after this commit there will be error.
Reproducible code if you download the data shared by Adrián
library(ctmm)
tele_list <- as.telemetry("d:/Work/R/ctmm-shiny/data/Vultures movement/Vultures position Summer 2020 MB.csv")
cali_tele <- as.telemetry("d:/Work/R/ctmm-shiny/data/Vultures movement/Calibration data CTT E-400 MB unit 12340.csv")
# ctmmweb:::is_calibrated(cali_tele)
cali_uere <- ctmm::uere.fit(cali_tele)
uere(tele_list) <- cali_uere
ctmm::plot(tele_list,
error = 2)
Of course I knew you mentioned before there were some problems in the data, so the error might be expected behavior since the data was not right. I just want you to know this detail.
The error was mine this time. It should be fixed now. I didn't anticipate different fix-type columns sometimes differing and sometimes not, though I should had.
Thanks Chris!
@chfleming I received an error report from user about the calibration process. I forwarded the email to you so you should have copy of the data.
To reproduce the error:
What really happened is:
To reproduce above in script:
So my question is: