powered by
Compute rotationally invariant spherical B-splines on the unit sphere
fmesher_spherical_bsplines1(loc, n, degree, uniform)fmesher_spherical_bsplines(loc, n, degree, uniform)
fmesher_spherical_bsplines(loc, n, degree, uniform)
A matrix of evaluated b-spline basis functions
numeric vector/matrix; coordinates of points to locate in the mesh, only the z-coordinates are used (sin(latitude))
sin(latitude)
The number of basis functions
The polynomial basis degree
logical; If TRUE, the knots are spaced uniformly by latitude, if FALSE, the knots are spaced uniformly by sin(latitude)
TRUE
FALSE
m <- fm_rcdt_2d(globe = 1) fmesher_spherical_bsplines(m$loc, n = 3, degree = 2, uniform = FALSE) fmesher_spherical_bsplines1(m$loc[, 3], n = 3, degree = 2, uniform = FALSE)
Run the code above in your browser using DataLab