Let us denote the British to metric conversion factors from $ft$ to $m$ and $gpm$ to $\frac{m^3}{s}$ by $ft\_m$ and $gpm\_m^3ps$ respectively. Let us denote the height $h=38'\cdot ft\_m$, the flow rate $q=560\;gpm\cdot gpm\_m^3ps$, the horizontal length $l=90'\cdot ft\_m$, the density of water in metric units $\rho\approx1000\;\frac{kg}{m^3}$, the acceleration due to gravity $g=9.81\frac{m^2}{s}$, the cross sectional area in $m^2$ of the pipe $A=\pi r^2$ where the radius of the connecting pipe in $m$ is denoted by $r$, the velocity of water in $\frac{m}{s}$ in the connecting pipe $v$, the height in $m$ of a point denoted $i\in\mathbb{N}$ in the connecting pipe $h_i$ and the pressure of water in $\frac{m}{s}$ at a point denoted $i\in\mathbb{N}$ in the connecting pipe $P_i$. Let $i=1$ and $i=2$ denote the points within the pipe located at the bottom of the tank and the top of the plant respectively.
Let $\bar{h}$ be the depth of the tank. From fluid statics we have that $P_1=\rho g \bar{h}$ and $v_1=0$. From the geometry we have that $h_1=h$ and $h_2=0$ and from kinematics we have that $v_2=\frac{q}{A}$. Applying Bernoulli's equation we have that $P_1+\frac{1}{2}\rho v_1^2+\rho g h=P_i+\frac{1}{2}\rho v_i^2+\rho g h_i$ and $P_1+\frac{1}{2}\rho v_1^2+\rho g h=P_2+\frac{1}{2}\rho v_2^2+\rho g h_2$ so that $P_1+\frac{1}{2}\rho v_1^2+\rho g h=P_2+\frac{1}{2}\rho v_2^2$.
- Therefore, $P_i=P_1 + \rho g h - \frac{1}{2}\rho v_i^2 -\rho g h_i$ at any point $i$ along the pipe lying between the points $1$ and $2$
- The pipe can be sized on considering that $A=\frac{q}{v_2}$ and that $v_2=\sqrt{2\frac{P_1}{\rho}+2 g h - 2\frac{P_2}{\rho}}$ where $P_2$ is the measured pressure within the tank (equal to atmospheric pressure if the pipe opens into the plant which is open to air and not full).
In order to account for the pipe loss (due to friction among other causes) in the absence of knowledge of loss constants, the sum on the left hand side in the Bernoulli's equations in this answer can be reduced by a nominal percentage, say $10\%$ for instance.