ytrans Function

public pure function ytrans(c) result(p)

Map cgs mass or radius to world coords.

Scaled to display unit, then log10 on log axis.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: c

Mass (g) or radius (cm).

Return Value real(kind=real64)


Source Code

   pure function ytrans(c) result(p)
      !! Map cgs mass or radius to world coords.
      !!
      !! Scaled to display unit, then log10 on log axis.
      ! Arguments
      real(real64), intent(in) :: c
         !! Mass (g) or radius (cm).
      real(real64) :: p
      p = c/yscale()
      if (st%ylog) p = log10(max(p, LOGMIN))
   end function ytrans