making a mesh the considers the coastline

7 views
Skip to first unread message

Scott Goldberg

unread,
Nov 26, 2025, 11:59:22 AM (4 days ago) Nov 26
to R-inla discussion group
I am trying to make a mesh to use to help describe fish catch, and I want to make my mesh only include areas in the water.  My first instinct is to make a barrier mesh, but the links on https://sites.google.com/a/r-inla.org to tutorials do not seem to work for me (https://haakonbakka.bitbucket.io/btopic107.html links to a page saying "Repository not found").  Does anyone have any suggestions as to how to make a proper barrier mesh OR if I am just taking the wrong approach to the problem?  Thank you!

Finn Lindgren

unread,
Nov 26, 2025, 12:19:13 PM (4 days ago) Nov 26
to Scott Goldberg, R-inla discussion group
There are basically two options:
Making the mesh have the coastline as boundary;
fm_mesh_2d(boundary=coastline, …)
or to use the barrier approach, in which you supply the coastline as interior constraints:
fm_mesh_2d(interior=coastline, …)

In both cases, I recommend setting the “cutoff” argument to prevent it from adding unnecessary detail to the mesh.

Finn

On 26 Nov 2025, at 16:59, Scott Goldberg <scot...@udel.edu> wrote:

I am trying to make a mesh to use to help describe fish catch, and I want to make my mesh only include areas in the water.  My first instinct is to make a barrier mesh, but the links on https://sites.google.com/a/r-inla.org to tutorials do not seem to work for me (https://haakonbakka.bitbucket.io/btopic107.html links to a page saying "Repository not found").  Does anyone have any suggestions as to how to make a proper barrier mesh OR if I am just taking the wrong approach to the problem?  Thank you!

--
You received this message because you are subscribed to the Google Groups "R-inla discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/r-inla-discussion-group/352439b1-6b35-4c78-a1c4-a74f34b9c039n%40googlegroups.com.

Chris Smith

unread,
Nov 26, 2025, 12:24:25 PM (4 days ago) Nov 26
to Scott Goldberg, R-inla discussion group
I used this barrier model. The code on the website is fairly straightforward.


On Wed, Nov 26, 2025, 08:59 Scott Goldberg <scot...@udel.edu> wrote:
I am trying to make a mesh to use to help describe fish catch, and I want to make my mesh only include areas in the water.  My first instinct is to make a barrier mesh, but the links on https://sites.google.com/a/r-inla.org to tutorials do not seem to work for me (https://haakonbakka.bitbucket.io/btopic107.html links to a page saying "Repository not found").  Does anyone have any suggestions as to how to make a proper barrier mesh OR if I am just taking the wrong approach to the problem?  Thank you!

--
Reply all
Reply to author
Forward
0 new messages