New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 10419 for NEMO/branches/2018/dev_r10164_HPC09_ESIWACE_PREP_MERGE/doc/latex/NEMO/subfiles/chap_OBS.tex – NEMO

Ignore:
Timestamp:
2018-12-19T20:46:30+01:00 (5 years ago)
Author:
smasson
Message:

dev_r10164_HPC09_ESIWACE_PREP_MERGE: merge with trunk@10418, see #2133

Location:
NEMO/branches/2018/dev_r10164_HPC09_ESIWACE_PREP_MERGE/doc/latex
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r10164_HPC09_ESIWACE_PREP_MERGE/doc/latex

    • Property svn:ignore set to
      *.aux
      *.bbl
      *.blg
      *.dvi
      *.fdb*
      *.fls
      *.idx
      *.ilg
      *.ind
      *.log
      *.maf
      *.mtc*
      *.out
      *.pdf
      *.toc
      _minted-*
  • NEMO/branches/2018/dev_r10164_HPC09_ESIWACE_PREP_MERGE/doc/latex/NEMO

    • Property svn:ignore set to
      *.aux
      *.bbl
      *.blg
      *.dvi
      *.fdb*
      *.fls
      *.idx
      *.ilg
      *.ind
      *.log
      *.maf
      *.mtc*
      *.out
      *.pdf
      *.toc
      _minted-*
  • NEMO/branches/2018/dev_r10164_HPC09_ESIWACE_PREP_MERGE/doc/latex/NEMO/subfiles

    • Property svn:ignore set to
      *.aux
      *.bbl
      *.blg
      *.dvi
      *.fdb*
      *.fls
      *.idx
      *.ilg
      *.ind
      *.log
      *.maf
      *.mtc*
      *.out
      *.pdf
      *.toc
      _minted-*
  • NEMO/branches/2018/dev_r10164_HPC09_ESIWACE_PREP_MERGE/doc/latex/NEMO/subfiles/chap_OBS.tex

    r10368 r10419  
    1 \documentclass[../tex_main/NEMO_manual]{subfiles} 
     1\documentclass[../main/NEMO_manual]{subfiles} 
     2 
    23\begin{document} 
    34% ================================================================ 
     
    1112\minitoc 
    1213 
    13  
    1414\newpage 
    15 $\ $\newline    % force a new line 
    1615 
    1716The observation and model comparison code (OBS) reads in observation files 
     
    573572 
    574573\subsubsection{Horizontal interpolation} 
     574 
    575575Consider an observation point ${\rm P}$ with with longitude and latitude $({\lambda_{}}_{\rm P}, \phi_{\rm P})$ and 
    576576the four nearest neighbouring model grid points ${\rm A}$, ${\rm B}$, ${\rm C}$ and ${\rm D}$ with 
     
    578578All horizontal interpolation methods implemented in NEMO estimate the value of a model variable $x$ at point $P$ as 
    579579a weighted linear combination of the values of the model variables at the grid points ${\rm A}$, ${\rm B}$ etc.: 
    580 \begin{eqnarray} 
    581 {x_{}}_{\rm P} & \hspace{-2mm} = \hspace{-2mm} &  
    582 \frac{1}{w} \left( {w_{}}_{\rm A} {x_{}}_{\rm A} +  
    583                    {w_{}}_{\rm B} {x_{}}_{\rm B} +  
    584                    {w_{}}_{\rm C} {x_{}}_{\rm C} +  
    585                    {w_{}}_{\rm D} {x_{}}_{\rm D} \right) 
    586 \end{eqnarray} 
     580\begin{align*} 
     581  {x_{}}_{\rm P} & \hspace{-2mm} = \hspace{-2mm} & 
     582                                                   \frac{1}{w} \left( {w_{}}_{\rm A} {x_{}}_{\rm A} + 
     583                                                   {w_{}}_{\rm B} {x_{}}_{\rm B} + 
     584                                                   {w_{}}_{\rm C} {x_{}}_{\rm C} + 
     585                                                   {w_{}}_{\rm D} {x_{}}_{\rm D} \right) 
     586\end{align*} 
    587587where ${w_{}}_{\rm A}$, ${w_{}}_{\rm B}$ etc. are the respective weights for the model field at 
    588588points ${\rm A}$, ${\rm B}$ etc., and $w = {w_{}}_{\rm A} + {w_{}}_{\rm B} + {w_{}}_{\rm C} + {w_{}}_{\rm D}$. 
     
    597597  For example, the weight given to the field ${x_{}}_{\rm A}$ is specified as the product of the distances 
    598598  from ${\rm P}$ to the other points: 
    599   \begin{eqnarray} 
    600   {w_{}}_{\rm A} = s({\rm P}, {\rm B}) \, s({\rm P}, {\rm C}) \, s({\rm P}, {\rm D}) 
    601   \nonumber 
    602   \end{eqnarray} 
     599  \begin{align*} 
     600    {w_{}}_{\rm A} = s({\rm P}, {\rm B}) \, s({\rm P}, {\rm C}) \, s({\rm P}, {\rm D}) 
     601  \end{align*} 
    603602  where  
    604   \begin{eqnarray} 
    605    s\left ({\rm P}, {\rm M} \right )  
     603  \begin{align*} 
     604    s\left ({\rm P}, {\rm M} \right )  
    606605     & \hspace{-2mm} = \hspace{-2mm} &  
    607606      \cos^{-1} \! \left\{  
     
    610609               \cos ({\lambda_{}}_{\rm M} - {\lambda_{}}_{\rm P})  
    611610                   \right\} 
    612    \end{eqnarray} 
     611   \end{align*} 
    613612   and $M$ corresponds to $B$, $C$ or $D$. 
    614613   A more stable form of the great-circle distance formula for small distances ($x$ near 1) 
    615614   involves the arcsine function ($e.g.$ see p.~101 of \citet{Daley_Barker_Bk01}: 
    616    \begin{eqnarray} 
    617    s\left( {\rm P}, {\rm M} \right)  
    618      & \hspace{-2mm} = \hspace{-2mm} &  
    619       \sin^{-1} \! \left\{ \sqrt{ 1 - x^2 } \right\} 
    620    \nonumber 
    621    \end{eqnarray} 
     615   \begin{align*} 
     616     s\left( {\rm P}, {\rm M} \right) & \hspace{-2mm} = \hspace{-2mm} & \sin^{-1} \! \left\{ \sqrt{ 1 - x^2 } \right\} 
     617   \end{align*} 
    622618   where 
    623    \begin{eqnarray} 
    624     x & \hspace{-2mm} = \hspace{-2mm} &  
    625       {a_{}}_{\rm M} {a_{}}_{\rm P} + {b_{}}_{\rm M} {b_{}}_{\rm P} + {c_{}}_{\rm M} {c_{}}_{\rm P} 
    626    \nonumber 
    627    \end{eqnarray} 
     619   \begin{align*} 
     620     x & \hspace{-2mm} = \hspace{-2mm} & 
     621                                         {a_{}}_{\rm M} {a_{}}_{\rm P} + {b_{}}_{\rm M} {b_{}}_{\rm P} + {c_{}}_{\rm M} {c_{}}_{\rm P} 
     622   \end{align*} 
    628623   and  
    629    \begin{eqnarray} 
    630       {a_{}}_{\rm M} & \hspace{-2mm} = \hspace{-2mm} & \sin {\phi_{}}_{\rm M},  
    631       \nonumber \\ 
    632       {a_{}}_{\rm P} & \hspace{-2mm} = \hspace{-2mm} & \sin {\phi_{}}_{\rm P},  
    633       \nonumber \\ 
    634       {b_{}}_{\rm M} & \hspace{-2mm} = \hspace{-2mm} & \cos {\phi_{}}_{\rm M} \cos {\phi_{}}_{\rm M},  
    635       \nonumber \\ 
    636       {b_{}}_{\rm P} & \hspace{-2mm} = \hspace{-2mm} & \cos {\phi_{}}_{\rm P} \cos {\phi_{}}_{\rm P},  
    637       \nonumber \\ 
    638       {c_{}}_{\rm M} & \hspace{-2mm} = \hspace{-2mm} & \cos {\phi_{}}_{\rm M} \sin {\phi_{}}_{\rm M},  
    639       \nonumber \\ 
     624   \begin{align*} 
     625      {a_{}}_{\rm M} & \hspace{-2mm} = \hspace{-2mm} & \sin {\phi_{}}_{\rm M}, \\ 
     626      {a_{}}_{\rm P} & \hspace{-2mm} = \hspace{-2mm} & \sin {\phi_{}}_{\rm P}, \\ 
     627      {b_{}}_{\rm M} & \hspace{-2mm} = \hspace{-2mm} & \cos {\phi_{}}_{\rm M} \cos {\phi_{}}_{\rm M}, \\ 
     628      {b_{}}_{\rm P} & \hspace{-2mm} = \hspace{-2mm} & \cos {\phi_{}}_{\rm P} \cos {\phi_{}}_{\rm P}, \\ 
     629      {c_{}}_{\rm M} & \hspace{-2mm} = \hspace{-2mm} & \cos {\phi_{}}_{\rm M} \sin {\phi_{}}_{\rm M}, \\ 
    640630      {c_{}}_{\rm P} & \hspace{-2mm} = \hspace{-2mm} & \cos {\phi_{}}_{\rm P} \sin {\phi_{}}_{\rm P}. 
    641       \nonumber 
    642    \nonumber 
    643   \end{eqnarray} 
     631  \end{align*} 
    644632 
    645633\item[2.] {\bf Great-Circle distance-weighted interpolation with small angle approximation.} 
    646634  Similar to the previous interpolation but with the distance $s$ computed as 
    647   \begin{eqnarray} 
    648     s\left( {\rm P}, {\rm M} \right)  
    649      & \hspace{-2mm} = \hspace{-2mm} &  
    650       \sqrt{ \left( {\phi_{}}_{\rm M} - {\phi_{}}_{\rm P} \right)^{2}  
    651       + \left( {\lambda_{}}_{\rm M} - {\lambda_{}}_{\rm P} \right)^{2} 
    652         \cos^{2} {\phi_{}}_{\rm M} } 
    653   \end{eqnarray} 
     635  \begin{align*} 
     636    s\left( {\rm P}, {\rm M} \right) 
     637    & \hspace{-2mm} = \hspace{-2mm} & 
     638                                      \sqrt{ \left( {\phi_{}}_{\rm M} - {\phi_{}}_{\rm P} \right)^{2} 
     639                                      + \left( {\lambda_{}}_{\rm M} - {\lambda_{}}_{\rm P} \right)^{2} 
     640                                      \cos^{2} {\phi_{}}_{\rm M} } 
     641  \end{align*} 
    654642  where $M$ corresponds to $A$, $B$, $C$ or $D$. 
    655643 
     
    688676 
    689677%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    690 \begin{figure}      \begin{center} 
    691 \includegraphics[width=0.90\textwidth]{Fig_OBS_avg_rec} 
    692 \caption{      \protect\label{fig:obsavgrec} 
    693   Weights associated with each model grid box (blue lines and numbers) 
    694   for an observation at -170.5E, 56.0N with a rectangular footprint of 1\deg x 1\deg.} 
    695 \end{center}      \end{figure} 
     678\begin{figure} 
     679  \begin{center} 
     680    \includegraphics[width=0.90\textwidth]{Fig_OBS_avg_rec} 
     681    \caption{ 
     682      \protect\label{fig:obsavgrec} 
     683      Weights associated with each model grid box (blue lines and numbers) 
     684      for an observation at -170.5E, 56.0N with a rectangular footprint of 1\deg x 1\deg. 
     685    } 
     686  \end{center} 
     687\end{figure} 
    696688%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    697689 
    698690%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    699 \begin{figure}      \begin{center} 
    700 \includegraphics[width=0.90\textwidth]{Fig_OBS_avg_rad} 
    701 \caption{      \protect\label{fig:obsavgrad} 
    702   Weights associated with each model grid box (blue lines and numbers) 
    703   for an observation at -170.5E, 56.0N with a radial footprint with diameter 1\deg.}  
    704 \end{center}      \end{figure} 
     691\begin{figure} 
     692  \begin{center} 
     693    \includegraphics[width=0.90\textwidth]{Fig_OBS_avg_rad} 
     694    \caption{ 
     695      \protect\label{fig:obsavgrad} 
     696      Weights associated with each model grid box (blue lines and numbers) 
     697      for an observation at -170.5E, 56.0N with a radial footprint with diameter 1\deg. 
     698    }  
     699  \end{center} 
     700\end{figure} 
    705701%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    706702 
     
    719715denote the bottom left, bottom right, top left and top right corner points of the cell, respectively.  
    720716To determine if P is inside the cell, we verify that the cross-products  
    721 \begin{eqnarray} 
    722 \begin{array}{lllll} 
    723 {{\bf r}_{}}_{\rm PA} \times {{\bf r}_{}}_{\rm PC} 
    724 & = & [({\lambda_{}}_{\rm A}\; -\; {\lambda_{}}_{\rm P} ) 
    725       ({\phi_{}}_{\rm C}   \; -\; {\phi_{}}_{\rm P} ) 
    726     - ({\lambda_{}}_{\rm C}\; -\; {\lambda_{}}_{\rm P} ) 
    727       ({\phi_{}}_{\rm A}   \; -\; {\phi_{}}_{\rm P} )] \; \widehat{\bf k} \\ 
    728 {{\bf r}_{}}_{\rm PB} \times {{\bf r}_{}}_{\rm PA} 
    729 & = & [({\lambda_{}}_{\rm B}\; -\; {\lambda_{}}_{\rm P} ) 
    730       ({\phi_{}}_{\rm A}   \; -\; {\phi_{}}_{\rm P} ) 
    731     - ({\lambda_{}}_{\rm A}\; -\; {\lambda_{}}_{\rm P} ) 
    732       ({\phi_{}}_{\rm B}   \; -\; {\phi_{}}_{\rm P} )] \; \widehat{\bf k} \\ 
    733 {{\bf r}_{}}_{\rm PC} \times {{\bf r}_{}}_{\rm PD} 
    734 & = & [({\lambda_{}}_{\rm C}\; -\; {\lambda_{}}_{\rm P} ) 
    735       ({\phi_{}}_{\rm D}   \; -\; {\phi_{}}_{\rm P} ) 
    736     - ({\lambda_{}}_{\rm D}\; -\; {\lambda_{}}_{\rm P} ) 
    737       ({\phi_{}}_{\rm C}   \; -\; {\phi_{}}_{\rm P} )] \; \widehat{\bf k} \\ 
    738 {{\bf r}_{}}_{\rm PD} \times {{\bf r}_{}}_{\rm PB} 
    739 & = & [({\lambda_{}}_{\rm D}\; -\; {\lambda_{}}_{\rm P} ) 
    740       ({\phi_{}}_{\rm B}   \; -\; {\phi_{}}_{\rm P} ) 
    741     - ({\lambda_{}}_{\rm B}\; -\; {\lambda_{}}_{\rm P} ) 
    742       ({\phi_{}}_{\rm D}  \;  - \; {\phi_{}}_{\rm P} )] \; \widehat{\bf k} \\ 
    743 \end{array} 
    744 \label{eq:cross} 
    745 \end{eqnarray} 
     717\begin{align*} 
     718  \begin{array}{lllll} 
     719    {{\bf r}_{}}_{\rm PA} \times {{\bf r}_{}}_{\rm PC} 
     720    & = & [({\lambda_{}}_{\rm A}\; -\; {\lambda_{}}_{\rm P} ) 
     721          ({\phi_{}}_{\rm C}   \; -\; {\phi_{}}_{\rm P} ) 
     722          - ({\lambda_{}}_{\rm C}\; -\; {\lambda_{}}_{\rm P} ) 
     723          ({\phi_{}}_{\rm A}   \; -\; {\phi_{}}_{\rm P} )] \; \widehat{\bf k} \\ 
     724    {{\bf r}_{}}_{\rm PB} \times {{\bf r}_{}}_{\rm PA} 
     725    & = & [({\lambda_{}}_{\rm B}\; -\; {\lambda_{}}_{\rm P} ) 
     726          ({\phi_{}}_{\rm A}   \; -\; {\phi_{}}_{\rm P} ) 
     727          - ({\lambda_{}}_{\rm A}\; -\; {\lambda_{}}_{\rm P} ) 
     728          ({\phi_{}}_{\rm B}   \; -\; {\phi_{}}_{\rm P} )] \; \widehat{\bf k} \\ 
     729    {{\bf r}_{}}_{\rm PC} \times {{\bf r}_{}}_{\rm PD} 
     730    & = & [({\lambda_{}}_{\rm C}\; -\; {\lambda_{}}_{\rm P} ) 
     731          ({\phi_{}}_{\rm D}   \; -\; {\phi_{}}_{\rm P} ) 
     732          - ({\lambda_{}}_{\rm D}\; -\; {\lambda_{}}_{\rm P} ) 
     733          ({\phi_{}}_{\rm C}   \; -\; {\phi_{}}_{\rm P} )] \; \widehat{\bf k} \\ 
     734    {{\bf r}_{}}_{\rm PD} \times {{\bf r}_{}}_{\rm PB} 
     735    & = & [({\lambda_{}}_{\rm D}\; -\; {\lambda_{}}_{\rm P} ) 
     736          ({\phi_{}}_{\rm B}   \; -\; {\phi_{}}_{\rm P} ) 
     737          - ({\lambda_{}}_{\rm B}\; -\; {\lambda_{}}_{\rm P} ) 
     738          ({\phi_{}}_{\rm D}  \;  - \; {\phi_{}}_{\rm P} )] \; \widehat{\bf k} \\ 
     739  \end{array} 
     740  % \label{eq:cross} 
     741\end{align*} 
    746742point in the opposite direction to the unit normal $\widehat{\bf k}$ 
    747743(i.e., that the coefficients of $\widehat{\bf k}$ are negative), 
     
    774770 
    775771%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    776 \begin{figure}      \begin{center} 
    777 \includegraphics[width=10cm,height=12cm,angle=-90.]{Fig_ASM_obsdist_local} 
    778 \caption{      \protect\label{fig:obslocal} 
    779   Example of the distribution of observations with the geographical distribution of observational data.}  
    780 \end{center}      \end{figure} 
     772\begin{figure} 
     773  \begin{center} 
     774    \includegraphics[width=10cm,height=12cm,angle=-90.]{Fig_ASM_obsdist_local} 
     775    \caption{ 
     776      \protect\label{fig:obslocal} 
     777      Example of the distribution of observations with the geographical distribution of observational data. 
     778    } 
     779  \end{center} 
     780\end{figure} 
    781781%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    782782 
     
    799799 
    800800%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    801 \begin{figure}     \begin{center} 
    802 \includegraphics[width=10cm,height=12cm,angle=-90.]{Fig_ASM_obsdist_global} 
    803 \caption{      \protect\label{fig:obsglobal} 
    804   Example of the distribution of observations with the round-robin distribution of observational data.} 
    805 \end{center}     \end{figure} 
     801\begin{figure} 
     802  \begin{center} 
     803    \includegraphics[width=10cm,height=12cm,angle=-90.]{Fig_ASM_obsdist_global} 
     804    \caption{ 
     805      \protect\label{fig:obsglobal} 
     806      Example of the distribution of observations with the round-robin distribution of observational data. 
     807    } 
     808  \end{center} 
     809\end{figure} 
    806810%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    807811 
     
    11531157This technique has not been used before so experimentation is needed before results can be trusted. 
    11541158 
    1155  
    1156  
    1157  
    11581159\newpage 
    11591160 
     
    13671368 
    13681369%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    1369 \begin{figure}     \begin{center} 
    1370 %\includegraphics[width=10cm,height=12cm,angle=-90.]{Fig_OBS_dataplot_main} 
    1371 \includegraphics[width=9cm,angle=-90.]{Fig_OBS_dataplot_main} 
    1372 \caption{      \protect\label{fig:obsdataplotmain} 
    1373   Main window of dataplot.} 
    1374 \end{center}     \end{figure} 
     1370\begin{figure} 
     1371  \begin{center} 
     1372    % \includegraphics[width=10cm,height=12cm,angle=-90.]{Fig_OBS_dataplot_main} 
     1373    \includegraphics[width=9cm,angle=-90.]{Fig_OBS_dataplot_main} 
     1374    \caption{ 
     1375      \protect\label{fig:obsdataplotmain} 
     1376      Main window of dataplot. 
     1377    } 
     1378  \end{center} 
     1379\end{figure} 
    13751380%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    13761381 
     
    13791384 
    13801385%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    1381 \begin{figure}     \begin{center} 
    1382 %\includegraphics[width=10cm,height=12cm,angle=-90.]{Fig_OBS_dataplot_prof} 
    1383 \includegraphics[width=7cm,angle=-90.]{Fig_OBS_dataplot_prof} 
    1384 \caption{      \protect\label{fig:obsdataplotprofile} 
    1385   Profile plot from dataplot produced by right clicking on a point in the main window.} 
    1386 \end{center}     \end{figure} 
     1386\begin{figure} 
     1387  \begin{center} 
     1388    % \includegraphics[width=10cm,height=12cm,angle=-90.]{Fig_OBS_dataplot_prof} 
     1389    \includegraphics[width=7cm,angle=-90.]{Fig_OBS_dataplot_prof} 
     1390    \caption{ 
     1391      \protect\label{fig:obsdataplotprofile} 
     1392      Profile plot from dataplot produced by right clicking on a point in the main window. 
     1393    } 
     1394  \end{center} 
     1395\end{figure} 
    13871396%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    13881397 
    1389  
    1390  
     1398\biblio 
    13911399 
    13921400\end{document} 
Note: See TracChangeset for help on using the changeset viewer.