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

Ignore:
Timestamp:
2018-03-13T15:00:56+01:00 (6 years ago)
Author:
nicolasmartin
Message:

Cleaning of section headings, reinstating the index by mixing \np and \forcode macros, continued conversion of source code inclusions

File:
1 edited

Legend:

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

    r9392 r9393  
    1414%       Old Model Output  
    1515% ================================================================ 
    16 \section{Old Model Output (default)} 
     16\section{Old model output (default)} 
    1717\label{DIA_io_old} 
    1818 
     
    5555% Diagnostics 
    5656% ================================================================ 
    57 \section{Standard model Output (IOM)} 
     57\section{Standard model output (IOM)} 
    5858\label{DIA_iom} 
    5959 
     
    106106even without a parallel-enabled NetCDF4 library, simply by employing only one dedicated I/O server. 
    107107 
    108 \subsection{XIOS: the IO\_SERVER} 
     108\subsection{XIOS: XML Inputs-Outputs Server} 
    109109 
    110110\subsubsection{Attached or detached mode?} 
     
    148148\texttt{ mpirun -np 62 ./nemo.exe : -np 2 ./xios\_server.exe } 
    149149 
    150 \subsubsection{Control of XIOS: the XIOS context in iodef.xml} 
     150\subsubsection{Control of XIOS: the context in iodef.xml} 
    151151 
    152152As well as the {\tt using\_server} flag, other controls on the use of XIOS are set in the XIOS context in iodef.xml.  
     
    216216you used in the f90 code (see subsequent sections for a details of the XML syntax and rules).  
    217217For example: 
    218 \vspace{-20pt} 
    219218\begin{xmllines} 
    220219   <field_definition> 
     
    232231and axes either defined in the code (iom\_set\_domain\_attr and iom\_set\_axis\_attr in iom.F90)  
    233232or defined in the domain\_def.xml file. $e.g.$: 
    234 \vspace{-20pt} 
    235233\begin{xmllines} 
    236234     <grid id="grid_T_3D" domain_ref="grid_T" axis_ref="deptht"/> 
    237235\end{xmllines} 
    238 Note, if your array is computed within the surface module each nn\_fsbc time\_step,  
     236Note, if your array is computed within the surface module each \np{nn\_fsbc} time\_step,  
    239237add the field definition within the field\_group defined with the id ''SBC'': $<$field\_group id=''SBC''...$>$  
    240238which has been defined with the correct frequency of operations (iom\_set\_field\_attr in iom.F90) 
    241239 
    242 \item[4.] add your field in one of the output files defined in iodef.xml (again see subsequent sections for syntax and rules)   \\ 
    243 \vspace{-20pt} 
     240\item[4.] add your field in one of the output files defined in iodef.xml (again see subsequent sections for syntax and rules) 
    244241\begin{xmllines} 
    245242   <file id="file1" .../>    
     
    251248 
    252249\end{description} 
     250 
    253251\subsection{XML fundamentals} 
    254252 
     
    262260See \href{http://www.xmlnews.org/docs/xml-basics.html}{here} for more details. 
    263261 
    264 \subsubsection{Structure of the xml file used in NEMO} 
     262\subsubsection{Structure of the XML file used in NEMO} 
    265263 
    266264The XML file used in XIOS is structured by 7 families of tags: context, axis, domain, grid, field, file and variable.  
     
    397395\\ 
    398396example 1: Direct inheritance. 
    399 \vspace{-20pt} 
    400397\begin{xmllines} 
    401398   <field_definition operation="average" > 
     
    410407\\ 
    411408example 2: Inheritance by reference. 
    412 \vspace{-20pt} 
    413409\begin{xmllines} 
    414410   <field_definition> 
     
    426422Inherit (and overwrite, if needed) the attributes of a tag you are refering to. 
    427423 
    428 \subsubsection{Use of Groups} 
     424\subsubsection{Use of groups} 
    429425 
    430426Groups can be used for 2 purposes.  
     
    432428In the following example, we define a group of field that will share a common grid ''grid\_T\_2D''.  
    433429Note that for the field ''toce'', we overwrite the grid definition inherited from the group by ''grid\_T\_3D''. 
    434 \vspace{-20pt} 
    435430\begin{xmllines} 
    436431   <field_group id="grid_T" grid_ref="grid_T_2D"> 
     
    445440Several examples of groups of fields are proposed at the end of the file {\tt CONFIG/SHARED/field\_def.xml}.  
    446441For example, a short list of the usual variables related to the U grid: 
    447 \vspace{-20pt} 
    448442\begin{xmllines} 
    449443   <field_group id="groupU" > 
     
    454448\end{xmllines} 
    455449that can be directly included in a file through the following syntax: 
    456 \vspace{-20pt} 
    457450\begin{xmllines} 
    458451   <file id="myfile_U" output_freq="1d" />    
     
    472465For example, in {\tt CONFIG/SHARED/domain\_def.xml}, we provide the following example of a definition  
    473466of a 5 by 5 box with the bottom left corner at point (10,10). 
    474 \vspace{-20pt} 
    475467\begin{xmllines} 
    476468   <domain_group id="grid_T"> 
     
    478470\end{xmllines} 
    479471The use of this subdomain is done through the redefinition of the attribute domain\_ref of the tag family field. For example: 
    480 \vspace{-20pt} 
    481472\begin{xmllines} 
    482473   <file id="myfile_vzoom" output_freq="1d" > 
     
    490481for the equatorial sections and the mooring position for TAO, RAMA and PIRATA followed  
    491482by ''T'' (for example: ''8s137eT'', ''1.5s80.5eT'' ...) 
    492 \vspace{-20pt} 
    493483\begin{xmllines} 
    494484   <file id="myfile_vzoom" output_freq="1d" > 
     
    500490\subsubsection{Define vertical zooms} 
    501491Vertical zooms are defined through the attributs zoom\_begin and zoom\_end of the tag family axis. It must therefore be done in the axis part of the XML file. For example, in NEMOGCM/CONFIG/ORCA2\_LIM/iodef\_demo.xml, we provide the following example: 
    502 \vspace{-20pt} 
    503492\begin{xmllines} 
    504493   <axis_group id="deptht" long_name="Vertical T levels" unit="m" positive="down" > 
     
    507496\end{xmllines} 
    508497The use of this vertical zoom is done through the redefinition of the attribute axis\_ref of the tag family field. For example: 
    509 \vspace{-20pt} 
    510498\begin{xmllines} 
    511499   <file id="myfile_hzoom" output_freq="1d" > 
     
    517505 
    518506The output file names are defined by the attributs ''name'' and ''name\_suffix'' of the tag family file. for example: 
    519 \vspace{-20pt} 
    520507\begin{xmllines} 
    521508   <file_group id="1d" output_freq="1d" name="myfile_1d" >  
     
    577564}} 
    578565 
    579 \subsubsection{Other controls of the xml attributes from NEMO} 
     566\subsubsection{Other controls of the XML attributes from NEMO} 
    580567 
    581568The values of some attributes are defined by subroutine calls within NEMO (calls to iom\_set\_domain\_attr, iom\_set\_axis\_attr and iom\_set\_field\_attr in iom.F90). Any definition given in the xml file will be overwritten. By convention, these attributes are defined to ''auto'' (for string) or ''0000'' (for integer) in the xml file (but this is not necessary).  
     
    589576   \hline 
    590577   \hline 
    591     \multicolumn{2}{|c|}{field\_definition} & freq\_op & \np{rn_rdt} \\ 
    592    \hline 
    593     \multicolumn{2}{|c|}{SBC}               & freq\_op & \np{rn_rdt} $\times$ \np{nn_fsbc}  \\ 
    594    \hline 
    595     \multicolumn{2}{|c|}{ptrc\_T}           & freq\_op & \np{rn_rdt} $\times$ \np{nn_dttrc} \\ 
    596    \hline 
    597     \multicolumn{2}{|c|}{diad\_T}           & freq\_op & \np{rn_rdt} $\times$ \np{nn_dttrc} \\ 
     578    \multicolumn{2}{|c|}{field\_definition} & freq\_op & \np{rn\_rdt} \\ 
     579   \hline 
     580    \multicolumn{2}{|c|}{SBC}               & freq\_op & \np{rn\_rdt} $\times$ \np{nn\_fsbc}  \\ 
     581   \hline 
     582    \multicolumn{2}{|c|}{ptrc\_T}           & freq\_op & \np{rn\_rdt} $\times$ \np{nn\_dttrc} \\ 
     583   \hline 
     584    \multicolumn{2}{|c|}{diad\_T}           & freq\_op & \np{rn\_rdt} $\times$ \np{nn\_dttrc} \\ 
    598585   \hline 
    599586    \multicolumn{2}{|c|}{EqT, EqU, EqW} & jbegin, ni,      & according to the grid    \\ 
     
    612599(1) Simple computation: directly define the computation when refering to the variable in the file definition. 
    613600 
    614 \vspace{-20pt} 
    615 \begin{xmllines} 
    616  <field field\_ref="sst"  name="tosK"  unit="degK" > sst + 273.15 </field> 
    617  <field field\_ref="taum" name="taum2" unit="N2/m4" long\_name="square of wind stress module" > taum * taum </field> 
    618  <field field\_ref="qt"   name="stupid\_check" > qt - qsr - qns </field> 
     601\begin{xmllines} 
     602 <field field_ref="sst"  name="tosK"  unit="degK" > sst + 273.15 </field> 
     603 <field field_ref="taum" name="taum2" unit="N2/m4" long_name="square of wind stress module" > taum * taum </field> 
     604 <field field_ref="qt"   name="stupid_check" > qt - qsr - qns </field> 
    619605\end{xmllines} 
    620606 
     
    622608 
    623609in field\_definition: 
    624 \vspace{-20pt} 
    625 \begin{xmllines} 
    626  <field id="sst2" long\_name="square of sea surface temperature" unit="degC2" >  sst * sst </field > 
     610\begin{xmllines} 
     611 <field id="sst2" long_name="square of sea surface temperature" unit="degC2" >  sst * sst </field > 
    627612\end{xmllines} 
    628613in file\_definition: 
    629 \vspace{-20pt} 
    630 \begin{xmllines} 
    631  <field field\_ref="sst2" > sst2 </field> 
     614\begin{xmllines} 
     615 <field field_ref="sst2" > sst2 </field> 
    632616\end{xmllines} 
    633617Note that in this case, the following syntaxe $<$field field\_ref="sst2" /$>$ is not working as sst2 won't be evaluated. 
     
    635619(3) Change of variable precision: 
    636620 
    637 \vspace{-20pt} 
    638621\begin{xmllines} 
    639622     <!-- force to keep real 8 --> 
    640  <field field\_ref="sst" name="tos\_r8" prec="8" /> 
    641       <!-- integer 2  with add\_offset and scale\_factor attributes --> 
    642  <field field\_ref="sss" name="sos\_i2" prec="2" add\_offset="20." scale\_factor="1.e-3" /> 
     623 <field field_ref="sst" name="tos_r8" prec="8" /> 
     624      <!-- integer 2  with add_offset and scale_factor attributes --> 
     625 <field field_ref="sss" name="sos_i2" prec="2" add_offset="20." scale_factor="1.e-3" /> 
    643626\end{xmllines} 
    644627Note that, then the code is crashing, writting real4 variables forces a numerical convection from real8 to real4 which will create an internal error in NetCDF and will avoid the creation of the output files. Forcing double precision outputs with prec="8" (for example in the field\_definition) will avoid this problem. 
     
    646629(4) add user defined attributes: 
    647630 
    648 \vspace{-20pt} 
    649 \begin{xmllines} 
    650       <file\_group id="1d" output\_freq="1d" output\_level="10" enabled=".TRUE."> <!-- 1d files -->  
    651    <file id="file1" name\_suffix="\_grid\_T" description="ocean T grid variables" > 
    652      <field field\_ref="sst" name="tos" > 
    653        <variable id="my\_attribute1" type="string"  > blabla </variable> 
    654        <variable id="my\_attribute2" type="integer" > 3      </variable> 
    655        <variable id="my\_attribute3" type="float"   > 5.0    </variable> 
     631\begin{xmllines} 
     632      <file_group id="1d" output_freq="1d" output_level="10" enabled=".true."> <!-- 1d files -->  
     633   <file id="file1" name_suffix="_grid_T" description="ocean T grid variables" > 
     634     <field field_ref="sst" name="tos" > 
     635       <variable id="my_attribute1" type="string"  > blabla </variable> 
     636       <variable id="my_attribute2" type="integer" > 3      </variable> 
     637       <variable id="my_attribute3" type="float"   > 5.0    </variable> 
    656638     </field> 
    657      <variable id="my\_global\_attribute" type="string" > blabla\_global </variable> 
     639     <variable id="my_global_attribute" type="string" > blabla_global </variable> 
    658640       </file> 
    659      </file\_group>  
     641     </file_group>  
    660642\end{xmllines} 
    661643 
     
    663645 
    664646 - define a new variable in field\_definition 
    665 \vspace{-20pt} 
    666 \begin{xmllines} 
    667  <field id="toce\_e3t" long\_name="temperature * e3t" unit="degC*m" grid\_ref="grid\_T\_3D" > toce * e3t </field > 
     647\begin{xmllines} 
     648 <field id="toce_e3t" long_name="temperature * e3t" unit="degC*m" grid_ref="grid_T_3D" > toce * e3t </field > 
    668649\end{xmllines} 
    669650 - use it when defining your file.   
    670 \vspace{-20pt} 
    671 \begin{xmllines} 
    672 <file\_group id="5d" output\_freq="5d"  output\_level="10" enabled=".TRUE." >  <!-- 5d files -->   
    673  <file id="file1" name\_suffix="\_grid\_T" description="ocean T grid variables" > 
    674   <field field\_ref="toce" operation="instant" freq\_op="5d" > @toce\_e3t / @e3t </field> 
     651\begin{xmllines} 
     652<file_group id="5d" output_freq="5d"  output_level="10" enabled=".true." >  <!-- 5d files -->   
     653 <file id="file1" name_suffix="_grid_T" description="ocean T grid variables" > 
     654  <field field_ref="toce" operation="instant" freq_op="5d" > @toce_e3t / @e3t </field> 
    675655 </file> 
    676 </file\_group>  
     656</file_group>  
    677657\end{xmllines} 
    678658The freq\_op="5d" attribute is used to define the operation frequency of the ``@'' function: here 5 day. The temporal operation done by the ``@'' is the one defined in the field definition: here we use the default, average. So, in the above case, @toce\_e3t will do the 5-day mean of toce*e3t. Operation="instant" refers to the temporal operation to be performed on the field''@toce\_e3t / @e3t'': here the temporal average is alreday done by the ``@'' function so we just use instant to do the ratio of the 2 mean values. field\_ref="toce" means that attributes not explicitely defined, are inherited from toce field. Note that in this case, freq\_op must be equal to the file output\_freq. 
     
    681661 
    682662 - define a new variable in field\_definition 
    683 \vspace{-20pt} 
    684 \begin{xmllines} 
    685  <field id="ssh2" long\_name="square of sea surface temperature" unit="degC2" >  ssh * ssh </field > 
     663\begin{xmllines} 
     664 <field id="ssh2" long_name="square of sea surface temperature" unit="degC2" >  ssh * ssh </field > 
    686665\end{xmllines} 
    687666 - use it when defining your file.   
    688 \vspace{-20pt} 
    689 \begin{xmllines} 
    690 <file\_group id="1m" output\_freq="1m"  output\_level="10" enabled=".TRUE." >  <!-- 1m files -->   
    691  <file id="file1" name\_suffix="\_grid\_T" description="ocean T grid variables" > 
    692   <field field\_ref="ssh" name="sshstd" long\_name="sea\_surface\_temperature\_standard\_deviation" operation="instant" freq\_op="1m" > sqrt( @ssh2 - @ssh * @ssh ) </field> 
     667\begin{xmllines} 
     668<file_group id="1m" output_freq="1m"  output_level="10" enabled=".true." >  <!-- 1m files -->   
     669 <file id="file1" name_suffix="_grid_T" description="ocean T grid variables" > 
     670  <field field_ref="ssh" name="sshstd" long_name="sea_surface_temperature_standard_deviation" operation="instant" freq_op="1m" > sqrt( @ssh2 - @ssh * @ssh ) </field> 
    693671 </file> 
    694 </file\_group>  
     672</file_group>  
    695673\end{xmllines} 
    696674The freq\_op="1m" attribute is used to define the operation frequency of the ``@'' function: here 1 month. The temporal operation done by the ``@'' is the one defined in the field definition: here we use the default, average. So, in the above case, @ssh2 will do the monthly mean of ssh*ssh. Operation="instant" refers to the temporal operation to be performed on the field ''sqrt( @ssh2 - @ssh * @ssh )'': here the temporal average is alreday done by the ``@'' function so we just use instant. field\_ref="ssh" means that attributes not explicitely defined, are inherited from ssh field. Note that in this case, freq\_op must be equal to the file output\_freq. 
     
    699677 
    700678 - define 2 new variables in field\_definition 
    701 \vspace{-20pt} 
    702 \begin{xmllines} 
    703  <field id="sstmax" field\_ref="sst" long\_name="max of sea surface temperature" operation="maximum" /> 
    704  <field id="sstmin" field\_ref="sst" long\_name="min of sea surface temperature" operation="minimum" /> 
     679\begin{xmllines} 
     680 <field id="sstmax" field_ref="sst" long_name="max of sea surface temperature" operation="maximum" /> 
     681 <field id="sstmin" field_ref="sst" long_name="min of sea surface temperature" operation="minimum" /> 
    705682\end{xmllines} 
    706683 - use these 2 new variables when defining your file.   
    707 \vspace{-20pt} 
    708 \begin{xmllines} 
    709 <file\_group id="1m" output\_freq="1m"  output\_level="10" enabled=".TRUE." >  <!-- 1m files -->   
    710  <file id="file1" name\_suffix="\_grid\_T" description="ocean T grid variables" > 
    711   <field field\_ref="sst" name="sstdcy" long\_name="amplitude of sst diurnal cycle" operation="average" freq\_op="1d" > @sstmax - @sstmin </field> 
     684\begin{xmllines} 
     685<file_group id="1m" output_freq="1m"  output_level="10" enabled=".true." >  <!-- 1m files -->   
     686 <file id="file1" name_suffix="_grid_T" description="ocean T grid variables" > 
     687  <field field_ref="sst" name="sstdcy" long_name="amplitude of sst diurnal cycle" operation="average" freq_op="1d" > @sstmax - @sstmin </field> 
    712688 </file> 
    713 </file\_group>  
     689</file_group>  
    714690\end{xmllines} 
    715691The freq\_op="1d" attribute is used to define the operation frequency of the ``@'' function: here 1 day. The temporal operation done by the ``@'' is the one defined in the field definition: here maximum for sstmax and minimum for sstmin. So, in the above case, @sstmax will do the daily max and @sstmin the daily min. Operation="average" refers to the temporal operation to be performed on the field ``@sstmax - @sstmin'': here monthly mean (of daily max - daily min of the sst). field\_ref="sst" means that attributes not explicitely defined, are inherited from sst field. 
     
    852828   enabled &  
    853829   switch on/off the output of a field or a file &  
    854    enabled=".TRUE." &  
     830   enabled=".true." &  
    855831   field, file families \\  
    856832   \hline    
     
    10241000Output from the XIOS-1.0 IO server is compliant with \href{http://cfconventions.org/Data/cf-conventions/cf-conventions-1.5/build/cf-conventions.html}{version 1.5} of the CF metadata standard. Therefore while a user may wish to add their own metadata to the output files (as demonstrated in example 4 of section \ref{IOM_xmlref}) the metadata should, for the most part, comply with the CF-1.5 standard. 
    10251001 
    1026 Some metadata that may significantly increase the file size (horizontal cell areas and vertices) are controlled by the namelist parameter \np{ln_cfmeta} in the \ngn{namrun} namelist. This must be set to true if these metadata are to be included in the output files. 
     1002Some metadata that may significantly increase the file size (horizontal cell areas and vertices) are controlled by the namelist parameter \np{ln\_cfmeta} in the \ngn{namrun} namelist. This must be set to true if these metadata are to be included in the output files. 
    10271003 
    10281004 
     
    10301006%       NetCDF4 support 
    10311007% ================================================================ 
    1032 \section{NetCDF4 Support (\protect\key{netcdf4})} 
     1008\section{NetCDF4 support (\protect\key{netcdf4})} 
    10331009\label{DIA_iom} 
    10341010 
     
    10481024new libraries and will then read both NetCDF3 and NetCDF4 files. NEMO 
    10491025executables linked with NetCDF4 libraries can be made to produce NetCDF3 
    1050 files by setting the \np{ln_nc4zip} logical to false in the \textit{namnc4}  
     1026files by setting the \np{ln\_nc4zip} logical to false in the \textit{namnc4}  
    10511027namelist: 
    10521028 
     
    10561032 
    10571033If \key{netcdf4} has not been defined, these namelist parameters are not read.  
    1058 In this case, \np{ln_nc4zip} is set false and dummy routines for a few 
     1034In this case, \np{ln\_nc4zip} is set false and dummy routines for a few 
    10591035NetCDF4-specific functions are defined. These functions will not be used but 
    10601036need to be included so that compilation is possible with NetCDF3 libraries. 
     
    10791055domain size in any dimension. The algorithm used is: 
    10801056 
    1081 \vspace{-20pt} 
    10821057\begin{forlines} 
    10831058     ichunksz(1) = MIN( idomain_size,MAX( (idomain_size-1)/nn_nchunks_i + 1 ,16 ) ) 
     
    10881063 
    10891064\noindent As an example, setting: 
    1090 \vspace{-20pt} 
    10911065\begin{forlines} 
    10921066     nn_nchunks_i=4, nn_nchunks_j=4 and nn_nchunks_k=31 
     
    11061080         &filesize & filesize & \% \\ 
    11071081         &(KB)     & (KB)     & \\ 
    1108 \ifile{ORCA2\_restart\_0000} & 16420 & 8860 & 47\%\\ 
    1109 \ifile{ORCA2\_restart\_0001} & 16064 & 11456 & 29\%\\ 
    1110 \ifile{ORCA2\_restart\_0002} & 16064 & 9744 & 40\%\\ 
    1111 \ifile{ORCA2\_restart\_0003} & 16420 & 9404 & 43\%\\ 
    1112 \ifile{ORCA2\_restart\_0004} & 16200 & 5844 & 64\%\\ 
    1113 \ifile{ORCA2\_restart\_0005} & 15848 & 8172 & 49\%\\ 
    1114 \ifile{ORCA2\_restart\_0006} & 15848 & 8012 & 50\%\\ 
    1115 \ifile{ORCA2\_restart\_0007} & 16200 & 5148 & 69\%\\ 
    1116 \ifile{ORCA2\_2d\_grid\_T\_0000} & 2200 & 1504 & 32\%\\ 
    1117 \ifile{ORCA2\_2d\_grid\_T\_0001} & 2200 & 1748 & 21\%\\ 
    1118 \ifile{ORCA2\_2d\_grid\_T\_0002} & 2200 & 1592 & 28\%\\ 
    1119 \ifile{ORCA2\_2d\_grid\_T\_0003} & 2200 & 1540 & 30\%\\ 
    1120 \ifile{ORCA2\_2d\_grid\_T\_0004} & 2200 & 1204 & 46\%\\ 
    1121 \ifile{ORCA2\_2d\_grid\_T\_0005} & 2200 & 1444 & 35\%\\ 
    1122 \ifile{ORCA2\_2d\_grid\_T\_0006} & 2200 & 1428 & 36\%\\ 
    1123 \ifile{ORCA2\_2d\_grid\_T\_0007} & 2200 & 1148 & 48\%\\ 
    1124             ...         & ...  &  ... & ...  \\ 
    1125 \ifile{ORCA2\_2d\_grid\_W\_0000} & 4416 & 2240 & 50\%\\ 
    1126 \ifile{ORCA2\_2d\_grid\_W\_0001} & 4416 & 2924 & 34\%\\ 
    1127 \ifile{ORCA2\_2d\_grid\_W\_0002} & 4416 & 2512 & 44\%\\ 
    1128 \ifile{ORCA2\_2d\_grid\_W\_0003} & 4416 & 2368 & 47\%\\ 
    1129 \ifile{ORCA2\_2d\_grid\_W\_0004} & 4416 & 1432 & 68\%\\ 
    1130 \ifile{ORCA2\_2d\_grid\_W\_0005} & 4416 & 1972 & 56\%\\ 
    1131 \ifile{ORCA2\_2d\_grid\_W\_0006} & 4416 & 2028 & 55\%\\ 
    1132 \ifile{ORCA2\_2d\_grid\_W\_0007} & 4416 & 1368 & 70\%\\ 
     1082ORCA2\_restart\_0000.nc & 16420 & 8860 & 47\%\\ 
     1083ORCA2\_restart\_0001.nc & 16064 & 11456 & 29\%\\ 
     1084ORCA2\_restart\_0002.nc & 16064 & 9744 & 40\%\\ 
     1085ORCA2\_restart\_0003.nc & 16420 & 9404 & 43\%\\ 
     1086ORCA2\_restart\_0004.nc & 16200 & 5844 & 64\%\\ 
     1087ORCA2\_restart\_0005.nc & 15848 & 8172 & 49\%\\ 
     1088ORCA2\_restart\_0006.nc & 15848 & 8012 & 50\%\\ 
     1089ORCA2\_restart\_0007.nc & 16200 & 5148 & 69\%\\ 
     1090ORCA2\_2d\_grid\_T\_0000.nc & 2200 & 1504 & 32\%\\ 
     1091ORCA2\_2d\_grid\_T\_0001.nc & 2200 & 1748 & 21\%\\ 
     1092ORCA2\_2d\_grid\_T\_0002.nc & 2200 & 1592 & 28\%\\ 
     1093ORCA2\_2d\_grid\_T\_0003.nc & 2200 & 1540 & 30\%\\ 
     1094ORCA2\_2d\_grid\_T\_0004.nc & 2200 & 1204 & 46\%\\ 
     1095ORCA2\_2d\_grid\_T\_0005.nc & 2200 & 1444 & 35\%\\ 
     1096ORCA2\_2d\_grid\_T\_0006.nc & 2200 & 1428 & 36\%\\ 
     1097ORCA2\_2d\_grid\_T\_0007.nc & 2200 & 1148 & 48\%\\ 
     1098     ...         & ...  &  ... & ...  \\ 
     1099ORCA2\_2d\_grid\_W\_0000.nc & 4416 & 2240 & 50\%\\ 
     1100ORCA2\_2d\_grid\_W\_0001.nc & 4416 & 2924 & 34\%\\ 
     1101ORCA2\_2d\_grid\_W\_0002.nc & 4416 & 2512 & 44\%\\ 
     1102ORCA2\_2d\_grid\_W\_0003.nc & 4416 & 2368 & 47\%\\ 
     1103ORCA2\_2d\_grid\_W\_0004.nc & 4416 & 1432 & 68\%\\ 
     1104ORCA2\_2d\_grid\_W\_0005.nc & 4416 & 1972 & 56\%\\ 
     1105ORCA2\_2d\_grid\_W\_0006.nc & 4416 & 2028 & 55\%\\ 
     1106ORCA2\_2d\_grid\_W\_0007.nc & 4416 & 1368 & 70\%\\ 
    11331107\end{tabular} 
    11341108\caption{   \protect\label{Tab_NC4}  
     
    11381112 
    11391113When \key{iomput} is activated with \key{netcdf4} chunking and 
    1140 compression parameters for fields produced via \np{iom_put} calls are 
     1114compression parameters for fields produced via \np{iom\_put} calls are 
    11411115set via an equivalent and identically named namelist to \textit{namnc4}  
    11421116in \np{xmlio\_server.def}. Typically this namelist serves the mean files 
     
    11511125%       Tracer/Dynamics Trends 
    11521126% ------------------------------------------------------------------------------------------------------------- 
    1153 \section[Tracer/Dynamics Trends (TRD)] 
    1154                   {Tracer/Dynamics Trends  (\protect\ngn{namtrd})} 
     1127\section{Tracer/Dynamics trends  (\protect\ngn{namtrd})} 
    11551128\label{DIA_trd} 
    11561129 
     
    11651138Note that the output are done with xIOS, and therefore the \key{IOM} is required. 
    11661139 
    1167 What is done depends on the \ngn{namtrd} logical set to \textit{true}: 
     1140What is done depends on the \ngn{namtrd} logical set to \forcode{.true.}: 
    11681141\begin{description} 
    1169 \item[\np{ln_glo_trd}] : at each \np{nn_trd} time-step a check of the basin averaged properties  
     1142\item[\np{ln\_glo\_trd}] : at each \np{nn\_trd} time-step a check of the basin averaged properties  
    11701143of the momentum and tracer equations is performed. This also includes a check of $T^2$, $S^2$,  
    11711144$\tfrac{1}{2} (u^2+v2)$, and potential energy time evolution equations properties ;  
    1172 \item[\np{ln_dyn_trd}] : each 3D trend of the evolution of the two momentum components is output ;  
    1173 \item[\np{ln_dyn_mxl}] : each 3D trend of the evolution of the two momentum components averaged  
     1145\item[\np{ln\_dyn\_trd}] : each 3D trend of the evolution of the two momentum components is output ;  
     1146\item[\np{ln\_dyn\_mxl}] : each 3D trend of the evolution of the two momentum components averaged  
    11741147                           over the mixed layer is output  ;  
    1175 \item[\np{ln_vor_trd}] : a vertical summation of the moment tendencies is performed,  
     1148\item[\np{ln\_vor\_trd}] : a vertical summation of the moment tendencies is performed,  
    11761149                           then the curl is computed to obtain the barotropic vorticity tendencies which are output ; 
    1177 \item[\np{ln_KE_trd}]  : each 3D trend of the Kinetic Energy equation is output ; 
    1178 \item[\np{ln_tra_trd}] : each 3D trend of the evolution of temperature and salinity is output ; 
    1179 \item[\np{ln_tra_mxl}] : each 2D trend of the evolution of temperature and salinity averaged  
     1150\item[\np{ln\_KE\_trd}]  : each 3D trend of the Kinetic Energy equation is output ; 
     1151\item[\np{ln\_tra\_trd}] : each 3D trend of the evolution of temperature and salinity is output ; 
     1152\item[\np{ln\_tra\_mxl}] : each 2D trend of the evolution of temperature and salinity averaged  
    11801153                           over the mixed layer is output ; 
    11811154\end{description} 
     
    11851158 
    11861159\textbf{Note that} in the current version (v3.6), many changes has been introduced but not fully tested.  
    1187 In particular, options associated with \np{ln_dyn_mxl}, \np{ln_vor_trd}, and \np{ln_tra_mxl}  
     1160In particular, options associated with \np{ln\_dyn\_mxl}, \np{ln\_vor\_trd}, and \np{ln\_tra\_mxl}  
    11881161are not working, and none of the option have been tested with variable volume ($i.e.$ \key{vvl} defined). 
    11891162 
     
    11921165%       On-line Floats trajectories 
    11931166% ------------------------------------------------------------------------------------------------------------- 
    1194 \section{On-line Floats trajectories (FLO) (\protect\key{floats})} 
     1167\section{FLO: On-Line Floats trajectories (\protect\key{floats})} 
    11951168\label{FLO} 
    11961169%--------------------------------------------namflo------------------------------------------------------- 
     
    12031176namelis variables. The algorithm used is based  
    12041177either on the work of \cite{Blanke_Raynaud_JPO97} (default option), or on a $4^th$ 
    1205 Runge-Hutta algorithm (\forcode{ln_flork4 = .true.}). Note that the \cite{Blanke_Raynaud_JPO97}  
     1178Runge-Hutta algorithm (\np{ln\_flork4}\forcode{ = .true.}). Note that the \cite{Blanke_Raynaud_JPO97}  
    12061179algorithm have the advantage of providing trajectories which are consistent with the  
    12071180numeric of the code, so that the trajectories never intercept the bathymetry.  
     
    12091182\subsubsection{ Input data: initial coordinates } 
    12101183 
    1211 Initial coordinates can be given with Ariane Tools convention ( IJK coordinates ,(\forcode{ln_ariane = .true.}) ) 
     1184Initial coordinates can be given with Ariane Tools convention ( IJK coordinates ,(\np{ln\_ariane}\forcode{ = .true.}) ) 
    12121185or with longitude and latitude. 
    12131186 
    12141187 
    1215 In case of Ariane convention, input filename is \np{init_float_ariane}. Its format is: 
     1188In case of Ariane convention, input filename is \np{init\_float\_ariane}. Its format is: 
    12161189 
    12171190\texttt{ I J K nisobfl itrash itrash } 
     
    12581231 
    12591232\np{jpnfl} is the total number of floats during the run. 
    1260 When initial positions are read in a restart file ( \np{ln_rstflo}= .TRUE. ),  \np{jpnflnewflo} 
     1233When initial positions are read in a restart file (\np{ln\_rstflo}\forcode{ = .true.} ),  \np{jpnflnewflo} 
    12611234can be added in the initialization file.  
    12621235 
    1263 \subsubsection{ Output data } 
    1264  
    1265 \np{nn_writefl} is the frequency of writing in float output file and \np{nn_stockfl}  
     1236\subsubsection{Output data} 
     1237 
     1238\np{nn\_writefl} is the frequency of writing in float output file and \np{nn\_stockfl}  
    12661239is the frequency of creation of the float restart file. 
    12671240 
    1268 Output data can be written in ascii files (\np{ln_flo_ascii} = .TRUE. ). In that case,  
     1241Output data can be written in ascii files (\np{ln\_flo\_ascii}\forcode{ = .true.}). In that case,  
    12691242output filename is trajec\_float. 
    12701243 
    1271 Another possiblity of writing format is Netcdf (\np{ln_flo_ascii} = .FALSE. ). There are 2 possibilities: 
     1244Another possiblity of writing format is Netcdf (\np{ln\_flo\_ascii}\forcode{ = .false.}). There are 2 possibilities: 
    12721245 
    12731246 - if (\key{iomput}) is used, outputs are selected in  iodef.xml. Here it is an example of specification  
    12741247   to put in files description section: 
    12751248 
    1276 \vspace{-30pt} 
    1277 \begin{xmllines} 
    1278      <group id="1d\_grid\_T" name="auto" description="ocean T grid variables" >   } 
     1249\begin{xmllines} 
     1250     <group id="1d_grid_T" name="auto" description="ocean T grid variables" >   } 
    12791251       <file id="floats"  description="floats variables"> }\\ 
    1280            <field ref="traj\_lon"   name="floats\_longitude"   freq\_op="86400" />} 
    1281            <field ref="traj\_lat"   name="floats\_latitude"    freq\_op="86400" />} 
    1282            <field ref="traj\_dep"   name="floats\_depth"       freq\_op="86400" />} 
    1283            <field ref="traj\_temp"  name="floats\_temperature" freq\_op="86400" />} 
    1284            <field ref="traj\_salt"  name="floats\_salinity"    freq\_op="86400" />} 
    1285            <field ref="traj\_dens"  name="floats\_density"     freq\_op="86400" />} 
    1286            <field ref="traj\_group" name="floats\_group"       freq\_op="86400" />} 
     1252           <field ref="traj_lon"   name="floats_longitude"   freq_op="86400" />} 
     1253           <field ref="traj_lat"   name="floats_latitude"    freq_op="86400" />} 
     1254           <field ref="traj_dep"   name="floats_depth"       freq_op="86400" />} 
     1255           <field ref="traj_temp"  name="floats_temperature" freq_op="86400" />} 
     1256           <field ref="traj_salt"  name="floats_salinity"    freq_op="86400" />} 
     1257           <field ref="traj_dens"  name="floats_density"     freq_op="86400" />} 
     1258           <field ref="traj_group" name="floats_group"       freq_op="86400" />} 
    12871259       </file>} 
    12881260  </group>} 
     
    13121284Some parameters are available in namelist \ngn{namdia\_harm} : 
    13131285 
    1314 - \np{nit000_han} is the first time step used for harmonic analysis 
    1315  
    1316 - \np{nitend_han} is the last time step used for harmonic analysis 
    1317  
    1318 - \np{nstep_han} is the time step frequency for harmonic analysis 
    1319  
    1320 - \np{nb_ana} is the number of harmonics to analyse 
     1286- \np{nit000\_han} is the first time step used for harmonic analysis 
     1287 
     1288- \np{nitend\_han} is the last time step used for harmonic analysis 
     1289 
     1290- \np{nstep\_han} is the time step frequency for harmonic analysis 
     1291 
     1292- \np{nb\_ana} is the number of harmonics to analyse 
    13211293 
    13221294- \np{tname} is an array with names of tidal constituents to analyse 
    13231295 
    1324 \np{nit000_han} and \np{nitend_han} must be between \np{nit000} and \np{nitend} of the simulation. 
     1296\np{nit000\_han} and \np{nitend\_han} must be between \np{nit000} and \np{nitend} of the simulation. 
    13251297The restart capability is not implemented. 
    13261298 
     
    13691341and the time scales over which they are averaged, as well as the level of output for debugging: 
    13701342 
    1371 \np{nn_dct}: frequency of instantaneous transports computing 
    1372  
    1373 \np{nn_dctwri}: frequency of writing ( mean of instantaneous transports ) 
    1374  
    1375 \np{nn_debug}: debugging of the section 
    1376  
    1377 \subsubsection{ Creating a binary file containing the pathway of each section } 
     1343\np{nn\_dct}: frequency of instantaneous transports computing 
     1344 
     1345\np{nn\_dctwri}: frequency of writing ( mean of instantaneous transports ) 
     1346 
     1347\np{nn\_debug}: debugging of the section 
     1348 
     1349\subsubsection{Creating a binary file containing the pathway of each section} 
    13781350 
    13791351In \texttt{NEMOGCM/TOOLS/SECTIONS\_DIADCT/run}, the file \textit{ {list\_sections.ascii\_global}} 
     
    14601432 
    14611433 
    1462 \subsubsection{ To read the output files } 
     1434\subsubsection{To read the output files} 
    14631435 
    14641436The output format is : 
     
    14941466% Steric effect in sea surface height 
    14951467% ================================================================ 
    1496 \section{Diagnosing the Steric effect in sea surface height} 
     1468\section{Diagnosing the steric effect in sea surface height} 
    14971469\label{DIA_steric} 
    14981470 
     
    16491621%       Other Diagnostics 
    16501622% ------------------------------------------------------------------------------------------------------------- 
    1651 \section{Other Diagnostics (\protect\key{diahth}, \protect\key{diaar5})} 
     1623\section{Other diagnostics (\protect\key{diahth}, \protect\key{diaar5})} 
    16521624\label{DIA_diag_others} 
    16531625 
     
    16811653The poleward heat and salt transports, their advective and diffusive component, and  
    16821654the meriodional stream function can be computed on-line in \mdl{diaptr}  
    1683 \np{ln_diaptr} to true (see the \textit{\ngn{namptr} } namelist below).   
    1684 When \np{ln_subbas}~=~true, transports and stream function are computed  
     1655\np{ln\_diaptr} to true (see the \textit{\ngn{namptr} } namelist below).   
     1656When \np{ln\_subbas}\forcode{ = .true.}, transports and stream function are computed  
    16851657for the Atlantic, Indian, Pacific and Indo-Pacific Oceans (defined north of 30\deg S)  
    16861658as well as for the World Ocean. The sub-basin decomposition requires an input file  
     
    17161688%       25 hour mean and hourly Surface, Mid and Bed  
    17171689% ----------------------------------------------------------- 
    1718 \subsection{25 hour mean output for tidal models } 
     1690\subsection{25 hour mean output for tidal models} 
    17191691 
    17201692%------------------------------------------nam_dia25h------------------------------------- 
     
    17311703%     Top Middle and Bed hourly output 
    17321704% ----------------------------------------------------------- 
    1733 \subsection{Top Middle and Bed hourly output } 
     1705\subsection{Top middle and bed hourly output} 
    17341706 
    17351707%------------------------------------------nam_diatmb----------------------------------------------------- 
     
    17561728in the zonal, meridional and vertical directions respectively. The vertical component is included although it is not strictly valid as the vertical velocity is calculated from the continuity equation rather than as a prognostic variable. Physically this represents the rate at which information is propogated across a grid cell. Values greater than 1 indicate that information is propagated across more than one grid cell in a single time step. 
    17571729 
    1758 The variables can be activated by setting the \np{nn_diacfl} namelist parameter to 1 in the \ngn{namctl} namelist. The diagnostics will be written out to an ascii file named cfl\_diagnostics.ascii. In this file the maximum value of $C_u$, $C_v$, and $C_w$ are printed at each timestep along with the coordinates of where the maximum value occurs. At the end of the model run the maximum value of $C_u$, $C_v$, and $C_w$ for the whole model run is printed along with the coordinates of each. The maximum values from the run are also copied to the ocean.output file.  
     1730The variables can be activated by setting the \np{nn\_diacfl} namelist parameter to 1 in the \ngn{namctl} namelist. The diagnostics will be written out to an ascii file named cfl\_diagnostics.ascii. In this file the maximum value of $C_u$, $C_v$, and $C_w$ are printed at each timestep along with the coordinates of where the maximum value occurs. At the end of the model run the maximum value of $C_u$, $C_v$, and $C_w$ for the whole model run is printed along with the coordinates of each. The maximum values from the run are also copied to the ocean.output file.  
    17591731 
    17601732 
Note: See TracChangeset for help on using the changeset viewer.