Map world y coord back to display units.
Inverse of ytrans2; exponent clamped to +-300 to stay in real64 range.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | w |
World y coordinate. |
pure function inv_y(w) result(v) !! Map world y coord back to display units. !! !! Inverse of `ytrans2`; exponent clamped to +-300 to stay in real64 range. ! Arguments real(real64), intent(in) :: w !! World y coordinate. real(real64) :: v if (st%ylog) then v = 10.d0**max(min(w, 300.d0), -300.d0) else v = w end if end function inv_y