DSM with soap film smoother

44 views
Skip to first unread message

Phil Bouchet

unread,
Nov 26, 2021, 11:28:27 AM11/26/21
to distance-sampling
Dear listfolks,

I am trying to run a dsm model that includes a soap film smoother in order to accommodate the complex shape of a coastal study area (with peninsulae, islands etc.). I have followed the steps described in the dolphin dsm example here (http://distancesampling.org/R/vignettes/mexico-analysis.html), however I keep running into the below error when fitting the model:

Error in get(as.character(match.call()$knots)) : 
  first argument has length > 1

Does anyone know what might be causing this issue?

Many thanks in advance,
Best, Phil 



Phil Bouchet

unread,
May 3, 2022, 8:29:29 AM5/3/22
to distance-sampling
Dear listfolks,

Just wanted to post a quick update (and solution) to this thread for anyone who may also experience the same issue.

The dsm function requires the soap film knots to be available as standalone R objects (due to the way they are being called by internal functions).
The error above stemmed from the fact that my grids of knots were stored inside a list object – this meant that dsm couldn't access the appropriate data using the get() function.

Cheers, Phil

Reply all
Reply to author
Forward
0 new messages