Error in reading a TPS file
Closed this issue · 3 comments
JohnSal1 commented
Hi,
I extracted some semi-landmarks and save them as TPS file.
While reading the TPS file (attached as ZIP) I got this error "No curves detected; all points appear to be fixed landmarks." and all the file is filled with NA.
Code used:
x <- readland.tps("E:/pi01Angle.tps", specID = c("imageID"),negNA = FALSE, readcurves = TRUE, warnmsg = TRUE)
Any idea why?
mlcollyer commented
Your tps file includes a scale argument but is missing a value. If you provide a value for the scale or remove the argument, the function produces a configuration.
Mike
… On Dec 7, 2023, at 2:42 AM, JohnSal1 ***@***.***> wrote:
Hi,
I extracted some semi-landmarks and save them as TPS file.
While reading the TPS file (attached as ZIP) I got this error "No curves detected; all points appear to be fixed landmarks." and all the file is filled with NA.
Code used:
x <- readland.tps("E:/pi01Angle.tps", specID = c("imageID"),negNA = FALSE, readcurves = TRUE, warnmsg = TRUE)
pi01Angle.zip <https://github.com/geomorphR/geomorph/files/13597013/pi01Angle.zip>
Any idea why?
—
Reply to this email directly, view it on GitHub <#45>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABUNU4VNAF2K7YSZEUDE4TDYIFXPPAVCNFSM6AAAAABAKTI422VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTAMBZGUZTCNI>.
You are receiving this because you are subscribed to this thread.
JohnSal1 commented
Thanks a lot. I removed the scale.
mlcollyer commented
This is an issue we need to fix but you should be okay if you remove the warnmsg argument from your function. The problem is that within the readmulti.tps function, we suppress warning messages for readland.tps, and when you requested the same action, R does not like to be told twice to do something.
Thanks for the alert!
Mike
… On Dec 7, 2023, at 8:05 AM, JohnSal1 ***@***.***> wrote:
Thanks a lot. I removed the scale.
I moved forward and tried to read multiply TPS files (attached as zip) using this code:
mydir = "E:/"
myTPS = list.files(path=mydir, pattern="*.tps", full.names=TRUE)
x <- readmulti.tps(myTPS, specID = c( "imageID"),negNA = FALSE, readcurves = TRUE, warnmsg = TRUE)
nyTPS.zip <https://github.com/geomorphR/geomorph/files/13600417/nyTPS.zip>
but I get this error:
Error in readland.tps(tps.list[x], warnmsg = F, ...) :
formal argument "warnmsg" matched by multiple actual arguments
Any way to solve it?
Thanks again
—
Reply to this email directly, view it on GitHub <#45 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABUNU4XQ2SU36MCDE7EV6BTYIG5JFAVCNFSM6AAAAABAKTI422VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBVGMYTCMRYG4>.
You are receiving this because you commented.