SUEWS API Site
Documentation of SUEWS source code
Functions/Subroutines
mod_interp Module Reference

Functions/Subroutines

elemental real(kind(1d0)) function interp1d (x1, x2, y1, y2, xi)
 

Function/Subroutine Documentation

◆ interp1d()

elemental real(kind(1d0)) function mod_interp::interp1d ( real(kind(1d0)), intent(in)  x1,
real(kind(1d0)), intent(in)  x2,
real(kind(1d0)), intent(in)  y1,
real(kind(1d0)), intent(in)  y2,
real(kind(1d0)), intent(in)  xi 
)

Definition at line 186 of file suews_phys_estm.f95.

186  REAL(KIND(1d0)), INTENT(in) ::x1, x2, xi
187  REAL(KIND(1d0)), INTENT(in) ::y1, y2
188  REAL(KIND(1D0))::b0, b1
189  REAL(KIND(1d0)) ::yi
190  !integer ::ny !!!!!FO!!!!!
191  b1 = (y2 - y1)/(x2 - x1)
192  b0 = y1 - b1*x1
193  yi = b0 + b1*xi