Map cgs mass or radius to world coords.
Scaled to display unit, then log10 on log axis.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | c |
Mass (g) or radius (cm). |
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