Solution (source code)

= Solution

For a geometrically thin isothermal ideal-gas atmosphere, set $g=GM_p/R_p^2$ and
$$
H=\frac{k_BT_0}{\mu m_Hg}.
$$
Hydrostatic balance gives $P(z)=P_0e^{-z/H}$. The observed transit photosphere at $P_{\rm phot}$ is consequently at the <isothermal pressure-level transit radius>
$$
\boxed{R_{\rm obs}=R_p+H\ln\frac{P_0}{P_{\rm phot}}}.
$$
This assumes $P_{\rm phot}<P_0$, constant $T_0$, composition, and gravity, and an opacity that selects the stated pressure.