fortplot_interpolation Module

Shared interpolation utilities for contour plotting

This module provides bilinear interpolation functions used by both raster and PDF backends for Z-value interpolation in contour plots.

Author: fortplot contributors



Subroutines

public subroutine interpolate_z_bilinear(x_grid, y_grid, z_grid, world_x, world_y, z_value)

Bilinear interpolation of Z value at world coordinates Refactored to be under 100 lines (QADS compliance)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x_grid(:)
real(kind=wp), intent(in) :: y_grid(:)
real(kind=wp), intent(in) :: z_grid(:,:)
real(kind=wp), intent(in) :: world_x
real(kind=wp), intent(in) :: world_y
real(kind=wp), intent(out) :: z_value