A star's pixel diameter from its apparent magnitude, from its brightness and luminance (OpenFrames' getStarPixelSizeFromMagnitude).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | mag |
apparent magnitude |
pure real(wp) function raw_size(mag) real(wp), intent(in) :: mag !! apparent magnitude real(wp) :: la, l la = 100.0_wp**(-2.0_wp / 5.0_wp) ! transition luminance l = 100.0_wp**(-mag / 5.0_wp) ! relative luminance raw_size = 2.0_wp * sqrt(l / (l**(2.0_wp / 3.0_wp) + la)) end function raw_size