Construct mesh from domain rather than sample locations #390
Replies: 1 comment 1 reply
-
In retrospect, I wish I hadn't got into the business of trying to simplify mesh creation and left it as a user-input as in tinyVAST. I just wish the documentation of the fmesher arguments was better for the user.
So, Perhaps a helper function that takes an sf polygon, overlays a grid of specified resolution, and extracts knot locations? Then add an argument to |
Beta Was this translation helpful? Give feedback.
-
In my experience with VAST, it is a good default to construct the SPDE mesh using evenly spaced locations within the spatial domain, rather than the current default (applying fmesher to the sample locations). This is because the desired abundance index then uses area weighting (not sample weighting), and the SPDE mesh vertex density might be very low in large areas. For example, this arises in the eastern+northern Bering Sea, and in many fishery CPUE analyses.
Is it worth adding a new option for users to pass an sf polygon as
data
tomake_mesh
and then defining the mesh based onst_make_grid
locations within that domain? That would then more closely match the default behavior in VAST.Beta Was this translation helpful? Give feedback.
All reactions