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 9392 for branches/2017/dev_merge_2017/DOC/tex_sub/chap_OBS.tex – NEMO

Ignore:
Timestamp:
2018-03-09T16:57:00+01:00 (6 years ago)
Author:
nicolasmartin
Message:

Global replacement of patterns \np{id}=value by \forcode{id = value} for integer and booleans

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/DOC/tex_sub/chap_OBS.tex

    r9389 r9392  
    2424The OBS code is called from \mdl{nemogcm} for model initialisation and to calculate the model 
    2525equivalent values for observations on the 0th timestep. The code is then called again after 
    26 each timestep from \mdl{step}. The code is only activated if the namelist logical \np{ln\_diaobs} 
     26each timestep from \mdl{step}. The code is only activated if the namelist logical \np{ln_diaobs} 
    2727is set to true. 
    2828 
     
    3434Some profile observation types (e.g. tropical moored buoys) are made available as daily averaged quantities. 
    3535The observation operator code can be set-up to calculate the equivalent daily average model temperature fields 
    36 using the \np{nn\_profdavtypes} namelist array. Some SST observations are equivalent to a night-time 
     36using the \np{nn_profdavtypes} namelist array. Some SST observations are equivalent to a night-time 
    3737average value and the observation operator code can calculate equivalent night-time average model SST fields by 
    38 setting the namelist value \np{ln\_sstnight} to true. Otherwise the model value from the nearest timestep to the 
     38setting the namelist value \np{ln_sstnight} to true. Otherwise the model value from the nearest timestep to the 
    3939observation time is used. 
    4040 
     
    8888 
    8989Options are defined through the  \ngn{namobs} namelist variables. 
    90 The options \np{ln\_t3d} and \np{ln\_s3d} switch on the temperature and salinity 
     90The options \np{ln_t3d} and \np{ln_s3d} switch on the temperature and salinity 
    9191profile observation operator code. The filename or array of filenames are 
    92 specified using the \np{cn\_profbfiles} variable. The model grid points for a 
     92specified using the \np{cn_profbfiles} variable. The model grid points for a 
    9393particular  observation latitude and longitude are found using the grid 
    9494searching part of the code. This can be expensive, particularly for large 
    95 numbers of observations, setting \np{ln\_grid\_search\_lookup} allows the use of 
     95numbers of observations, setting \np{ln_grid_search_lookup} allows the use of 
    9696a lookup table which is saved into an ``xypos`` file (or files). This will need 
    9797to be generated the first time if it does not exist in the run directory. 
    9898However, once produced it will significantly speed up future grid searches. 
    99 Setting \np{ln\_grid\_global} means that the code distributes the observations 
     99Setting \np{ln_grid_global} means that the code distributes the observations 
    100100evenly between processors. Alternatively each processor will work with 
    101101observations located within the model subdomain (see section~\ref{OBS_parallel}). 
     
    406406The mean dynamic 
    407407topography (MDT) must be provided in a separate file defined on the model grid 
    408  called {\it slaReferenceLevel.nc}. The MDT is required in 
     408 called \ifile{slaReferenceLevel}. The MDT is required in 
    409409order to produce the model equivalent sea level anomaly from the model sea 
    410410surface height. Below is an example header for this file (on the ORCA025 grid). 
     
    556556NEMO therefore has the capability to specify either an interpolation or an averaging (for surface observation types only).  
    557557 
    558 The main namelist option associated with the interpolation/averaging is \np{nn\_2dint}. This default option can be set to values from 0 to 6.  
     558The main namelist option associated with the interpolation/averaging is \np{nn_2dint}. This default option can be set to values from 0 to 6.  
    559559Values between 0 to 4 are associated with interpolation while values 5 or 6 are associated with averaging. 
    560560\begin{itemize} 
    561 \item \np{nn\_2dint}=0: Distance-weighted interpolation 
    562 \item \np{nn\_2dint}=1: Distance-weighted interpolation (small angle) 
    563 \item \np{nn\_2dint}=2: Bilinear interpolation (geographical grid) 
    564 \item \np{nn\_2dint}=3: Bilinear remapping interpolation (general grid) 
    565 \item \np{nn\_2dint}=4: Polynomial interpolation 
    566 \item \np{nn\_2dint}=5: Radial footprint averaging with diameter specified in the namelist as \np{rn\_???\_avglamscl} in degrees or metres (set using \np{ln\_???\_fp\_indegs}) 
    567 \item \np{nn\_2dint}=6: Rectangular footprint averaging with E/W and N/S size specified in the namelist as \np{rn\_???\_avglamscl} and \np{rn\_???\_avgphiscl} in degrees or metres (set using \np{ln\_???\_fp\_indegs}) 
     561\item \forcode{nn_2dint = 0}: Distance-weighted interpolation 
     562\item \forcode{nn_2dint = 1}: Distance-weighted interpolation (small angle) 
     563\item \forcode{nn_2dint = 2}: Bilinear interpolation (geographical grid) 
     564\item \forcode{nn_2dint = 3}: Bilinear remapping interpolation (general grid) 
     565\item \forcode{nn_2dint = 4}: Polynomial interpolation 
     566\item \forcode{nn_2dint = 5}: Radial footprint averaging with diameter specified in the namelist as \np{rn\_???\_avglamscl} in degrees or metres (set using \np{ln\_???\_fp\_indegs}) 
     567\item \forcode{nn_2dint = 6}: Rectangular footprint averaging with E/W and N/S size specified in the namelist as \np{rn\_???\_avglamscl} and \np{rn\_???\_avgphiscl} in degrees or metres (set using \np{ln\_???\_fp\_indegs}) 
    568568\end{itemize} 
    569569The ??? in the last two options indicate these options should be specified for each observation type for which the averaging is to be performed (see namelist example above). 
    570 The \np{nn\_2dint} default option can be overridden for surface observation types using namelist values \np{nn\_2dint\_???} where ??? is one of sla,sst,sss,sic. 
     570The \np{nn_2dint} default option can be overridden for surface observation types using namelist values \np{nn\_2dint\_???} where ??? is one of sla,sst,sss,sic. 
    571571 
    572572Below is some more detail on the various options for interpolation and averaging available in NEMO. 
     
    956956 
    957957The above namelist will result in feedback files whose first 12 hours contain 
    958 the first field of foo.nc and the second 12 hours contain the second field. 
     958the first field of \ifile{foo} and the second 12 hours contain the second field. 
    959959 
    960960%\begin{framed} 
     
    998998\noindent 
    999999\linebreak 
    1000 \textbf{\$\{prefix\}\_\$\{yyyymmdd\}\_\$\{sys\}\_\$\{cfg\}\_\$\{vn\}\_\$\{kind\}\_\$\{nproc\}.nc} 
     1000\ifile{\textbf{\$\{prefix\}\_\$\{yyyymmdd\}\_\$\{sys\}\_\$\{cfg\}\_\$\{vn\}\_\$\{kind\}\_\$\{nproc\}}} 
    10011001 
    10021002\noindent 
Note: See TracChangeset for help on using the changeset viewer.