Skip to content

Commit

Permalink
Add equation numbers in topofeatures chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoledoux committed Dec 10, 2020
1 parent b1e1bd0 commit 7278da2
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions topofeatures/topofeatures.tex
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,21 @@ \subsection{Slope in grids}
With this method, the height differences in the $x$-direction (west-east) and in the $y$-direction (south-north) are calculated separately, and then the 2 differences are combined to obtain the slope.
This means that only the direct 4-neighbours of $c_{i,j}$ are used.

\[
\frac{\partial z}{\partial x} = \frac{z_{i+1,j} - z_{i-1,j}}{2\,r}
\begin{equation}
\frac{\partial z}{\partial x} = \frac{z_{i-1,j} - z_{i+1,j}}{2\,r}
\, ,
\frac{\partial z}{\partial y} = \frac{z_{i,j+1} - z_{i,j-1}}{2\,r}
\]
\frac{\partial z}{\partial y} = \frac{z_{i,j-1} - z_{i,j+1}}{2\,r}
\end{equation}

The gradient is defined as:
\[
\begin{equation}
\tan \alpha = \sqrt{(\frac{\partial z}{\partial x})^2 + (\frac{\partial z}{\partial y})^2}
\]
\end{equation}

and the aspect as:
\[
\begin{equation}
\tan \theta = \frac{\frac{\partial z}{\partial y}}{\frac{\partial z}{\partial x}}
\]
\end{equation}

The value of $\theta$ should be resolved for the correct trigonometric quadrant, and if $\frac{\partial z}{\partial x} = 0$ then it means the aspect should be handled differently (considering only the variation in the south-north direction).

Expand All @@ -133,16 +135,16 @@ \subsection{Slope in grids}
Based on the 9 elevation points, it is possible to fit a polynomial (as explained in \refchap{chap:interpol}) that approximate the surface locally; notice that the polynomial might not pass through the point if a low-degree function is used.

A quadratic polynomial could for instance be defined:
\[
\begin{equation}
f(x,y) = ax^2 + by^2 + cxy + dx + ey +d
\]
\end{equation}
, and thus:
\[
\begin{equation}
\frac{\partial f}{\partial x} = 2ax + cy + d
\]
\[
\end{equation}
\begin{equation}
\frac{\partial f}{\partial y} = 2by + cx + e
\]
\end{equation}
and if a local coordinate system centered at $c_{i,j}$ is used, then $x = y = 0$, and thus $\frac{\partial f}{\partial x} = d$ and $\frac{\partial f}{\partial y} = e$.


Expand Down

0 comments on commit 7278da2

Please sign in to comment.