interpolation_1d Subroutine

public subroutine interpolation_1d(x, y, point, val)

Perform linear interpolation to the "point" on the Cartesian (x) grid (from STPK)

Arguments

Type IntentOptional Attributes Name
double precision, intent(in) :: x(2)

The nearest west and east points for "point"

double precision, intent(in) :: y(2)

Values defined at x. y(1) at x(1) y(2) at x(2)

double precision, intent(in) :: point

The target point for the interpolation

double precision, intent(out) :: val

Interpolated value