|
| integer function | surface_fit_least_squares (this, smoothing, reset_knots) |
| | Fit a least-squares spherical surface with fixed knots.
|
| |
| integer function | surface_fit_interpolating (this, reset_knots) |
| | Fit an interpolating spherical surface ( \( s = 0 \)).
|
| |
| integer function | surface_fit_automatic_knots (this, smoothing, keep_knots) |
| | Fit a smoothing spherical surface with automatic knot placement.
|
| |
| elemental subroutine | sphere_destroy (this) |
| | Release all allocated memory and reset the sphere fitter to its default state.
|
| |
| subroutine | sphere_new_points (this, theta, phi, r, w) |
| | Load new scattered spherical data and allocate working storage.
|
| |
| type(fitpack_sphere) function | sphere_new_from_points (theta, phi, r, w, ierr) |
| | Construct a fitpack_sphere from scattered data and perform an initial fit.
|
| |
| real(fp_real) function, dimension(size(phi), size(theta)) | sphere_eval_many (this, theta, phi, ierr) |
| | Evaluate the spherical spline on a grid of colatitude and longitude values.
|
| |
| real(fp_real) function | sphere_eval_one (this, theta, phi, ierr) |
| | Evaluate the spherical spline at a single point.
|
| |
| integer function | sphere_new_fit (this, theta, phi, r, w, smoothing) |
| | Load new scattered data and fit a smoothing spherical spline in one call.
|
| |
| elemental integer(fp_size) function | sphere_comm_size (this) |
| | Return the communication buffer size for parallel pack/expand.
|
| |
| pure subroutine | sphere_comm_pack (this, buffer) |
| | Pack the sphere fitter state into a communication buffer.
|
| |
| pure subroutine | sphere_comm_expand (this, buffer) |
| | Restore the sphere fitter state from a communication buffer.
|
| |
OOP wrapper for bivariate spline fitting on the sphere to scattered data.
Provides fitpack_sphere, a derived type for fitting bicubic splines to data scattered over the unit sphere, parameterized by colatitude \( \theta \in [0, \pi] \) and longitude \( \phi \in [0, 2\pi] \). The fitted surface \( r = s(\theta, \phi) \) satisfies appropriate pole constraints to ensure smoothness at \( \theta = 0 \) and \( \theta = \pi \). Uses the sphere core routine.
- See also
- Dierckx, Ch. 11, §11.2 (pp. 263–269); sphere
| integer function fitpack_sphere_domains::surface_fit_automatic_knots |
( |
class(fitpack_sphere), intent(inout) | this, |
|
|
real(fp_real), intent(in), optional | smoothing, |
|
|
logical, intent(in), optional | keep_knots ) |
|
private |
Fit a smoothing spherical surface with automatic knot placement.
Iterates over the smoothing schedule, calling the sphere core routine to fit a bicubic spline \( r = s(\theta, \phi) \) to scattered data on the unit sphere.
- Parameters
-
| [in] | smoothing | Smoothing factor ( \( s \ge 0 \)); default uses stored value. |
| [in] | keep_knots | If .true., reuse the current knot set. |
- Returns
- Error flag.
- See also
- sphere
Ensure we start with new knots (unless caller wants to keep them)