Lemma 29.48.5. Let $f : X \to S$ be a finite locally free morphism of schemes. There exists a disjoint union decomposition $S = \coprod _{d \geq 0} S_ d$ by open and closed subschemes such that setting $X_ d = f^{-1}(S_ d)$ the restrictions $f|_{X_ d}$ are finite locally free morphisms $X_ d \to S_ d$ of degree $d$.

Proof. This is true because a finite locally free sheaf locally has a well defined rank. Details omitted. $\square$

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).