|
| integer function | spgrid_fit_least_squares (this, smoothing, reset_knots) |
| | Fit a least-squares gridded spherical surface with fixed knots.
|
| |
| integer function | spgrid_fit_interpolating (this, reset_knots) |
| | Fit an interpolating gridded spherical surface ( \( s = 0 \)).
|
| |
| integer function | spgrid_fit_automatic_knots (this, smoothing, keep_knots) |
| | Fit a smoothing spherical surface on a lat-lon grid with automatic knot placement.
|
| |
| elemental subroutine | spgrid_destroy (this) |
| | Release all allocated memory and reset the gridded sphere fitter to its default state.
|
| |
| subroutine | spgrid_new_points (this, u, v, z) |
| | Load new gridded spherical data and allocate working storage.
|
| |
| type(fitpack_grid_sphere) function | spgrid_new_from_points (u, v, z, ierr) |
| | Construct a fitpack_grid_sphere from gridded data and perform an initial fit.
|
| |
| integer function | spgrid_new_fit (this, u, v, z, smoothing) |
| | Load new gridded data and fit a smoothing spherical spline in one call.
|
| |
| real(fp_real) function, dimension(size(v), size(u)) | gridded_eval_many (this, u, v, ierr) |
| | Evaluate the gridded spherical spline on a grid of colatitude and longitude values.
|
| |
| real(fp_real) function | gridded_eval_one (this, u, v, ierr) |
| | Evaluate the gridded spherical spline at a single point.
|
| |
| subroutine | pole_bc (this, pole, z0, exact, differentiable, zero_grad) |
| | Set boundary conditions at one pole of the sphere.
|
| |
| subroutine | bc_north_pole (this, z0, exact, differentiable, zero_grad) |
| | Set boundary conditions at the north pole ( \( u = 0 \)).
|
| |
| subroutine | bc_south_pole (this, z0, exact, differentiable, zero_grad) |
| | Set boundary conditions at the south pole ( \( u = \pi \)).
|
| |
| subroutine | gridded_to_disk (this, filename) |
| | Write gridded spherical data to a formatted text file.
|
| |
| elemental integer(fp_size) function | gridsphere_comm_size (this) |
| | Return the communication buffer size for parallel pack/expand.
|
| |
| pure subroutine | gridsphere_comm_pack (this, buffer) |
| | Pack the gridded sphere fitter state into a communication buffer.
|
| |
| pure subroutine | gridsphere_comm_expand (this, buffer) |
| | Restore the gridded sphere fitter state from a communication buffer.
|
| |
OOP wrapper for bivariate spline fitting on the sphere to gridded data.
Provides fitpack_grid_sphere, a derived type for fitting bicubic splines to data given on a latitude-longitude grid over the sphere. The colatitude grid \( u_i \in [0, \pi] \) ( \( i = 1, \ldots, m_u \)) and the \( 2\pi \)-periodic longitude grid \( v_j \) ( \( j = 1, \ldots, m_v \)) define the sampling. Boundary conditions at the north ( \( u = 0 \)) and south ( \( u = \pi \)) poles can be configured for function value, exactness, continuity order, and gradient vanishing. Uses the spgrid core routine.
- See also
- Dierckx, Ch. 11, §11.2 (pp. 263–269); spgrid
| integer function fitpack_gridded_sphere::spgrid_fit_automatic_knots |
( |
class(fitpack_grid_sphere), intent(inout) | this, |
|
|
real(fp_real), intent(in), optional | smoothing, |
|
|
logical, intent(in), optional | keep_knots ) |
|
private |
Fit a smoothing spherical surface on a lat-lon grid with automatic knot placement.
Iterates over the smoothing schedule, calling the spgrid core routine to fit a bicubic spline on the sphere grid. Pole boundary conditions (continuity order, gradient vanishing, exact data) are applied as configured.
- 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
- spgrid
Ensure we start with new knots (unless caller wants to keep them)