Ignore:
Timestamp:
10/15/19 11:37:29 (5 years ago)
Author:
yushan
Message:

Doc updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/doc/XIOS_graph_user_guide.tex

    r1741 r1742  
    8383\usepackage[dvipsnames]{xcolor} 
    8484\newcommand{\visbutton}[1]{\colorbox[RGB]{92,184,92}{\color{white}{#1}}} 
     85 
     86\usepackage{float} 
    8587%%% END Article customizations 
    8688 
     
    128130In the workflow graph, a node represents a XIOS filter. We have 7 categories of filters: 
    129131\begin{itemize} 
    130     \item source filter: when the field data is received from model or read from netcdf file 
     132    \item source filter: when the field data is received from model or read from NetCDF file 
    131133    \item pass through filter: when having a field reference 
    132134    \item arithmetic filter: when arithmetic operations are performed on the field 
    133135    \item temporal filter: when the field has a temporal operation (\textit{e.g.} average, maximum, minimum, ...) 
    134136    \item spatial transform filter: when the field has a spatial transform applied upon (\textit{e.g.} zoom, interpolate, ...) 
    135     \item file write filter: when the field data is written to a netcdf file 
     137    \item file write filter: when the field data is written to a NetCDF file 
    136138    \item store filter: when the field data is send back to model 
    137139\end{itemize} 
     
    150152\end{lstlisting} 
    151153 
    152 \subsection{Heritage by field referecing} 
     154\subsection{Heritage by field referencing} 
    153155 
    154156\begin{lstlisting}[language=XML] 
     
    169171\section{Visualization of workflow graph} 
    170172 
    171 \begin{figure}[ht] 
    172 \centering 
    173 \includegraphics[scale=0.4]{inputs/images/graph_init} 
    174 \caption{Start state of the Visualization} 
     173 
     174\subsection{Example of XIOS workflow graph output} 
     175 
     176\begin{figure}[H] 
     177    \centering 
     178    \includegraphics[scale=0.45]{inputs/images/workflow_graph} 
    175179\end{figure} 
    176180 
    177 The workflow graph can be viewed through the \verb|graph.html| script located in the XIOS  
     181From this graph, we can gather several information directly: 
     182\begin{itemize} 
     183    \item the workflow has 3 inputs fields and one output field; 
     184    \item \verb|filed_D = field_A + field_B + field_C|; 
     185    \item \verb|field_D| is outputted every time step (instant temporal filter); 
     186    \item the output NetCDF file is named \verb|output.nc|; 
     187    \item the date label of the time step is 2012-03-01 at 21 o'clock. 
     188\end{itemize} 
     189 
     190This graph shows how XIOS interprets the \verb|xml| inputs. Users can easily check if it corresponds to  
     191their designed input configurations.  
     192 
     193The workflow graph is viewed through the \verb|graph.html| script located in the XIOS  
    178194folder. The graph file \verb|graph_data.json| is stored in the same folder as the \verb|iodef.xml| file 
    179195which is used for configure the simulation. 
    180 Choose the graph file to start the Visualization by cliking the button \colorbox[RGB]{66,139,202}{\color{white}{Load a JSON XIOS file}}. 
     196Choose the graph file to start the Visualization by clicking the button \colorbox[RGB]{66,139,202}{\color{white}{Load a JSON XIOS file}}. 
    181197Several buttons are set to allow user to visualize the graph interactively.  
     198 
     199\begin{figure}[H] 
     200    \centering 
     201    \includegraphics[scale=0.4]{inputs/images/graph_init} 
     202    \caption{Start state of the Visualization} 
     203\end{figure} 
    182204 
    183205\subsection{Enable/Disable all} 
     
    200222\visbutton{Enable input} shows all input nodes of the graph. The input nodes are 
    201223often, if not always, the source filters: data received from the model or read  
    202 from a netcdf file. 
     224from a NetCDF file. 
    203225 
    204226\subsection{Enable output} 
    205227\visbutton{Enable output} shows all output nodes of the graph. The output nodes  
    206 are either the file writer filter: data written to a netcdf file; either the store  
     228are either the file writer filter: data written to a NetCDF file; either the store  
    207229filter: data send back to model. 
    208230 
     
    236258\end{lstlisting} 
    237259 
    238 In this example, the graph will only include information between the 3rd and 5th timestep. 
    239 These attributes are not madatory. If \verb|build_workflow_graph_start| is not define, the graph will start to record from the first iteration. 
    240 Similarly, the defualt value of \verb|build_workflow_graph_end| is the last iteration of the simulation. 
     260In this example, the graph will only include information between the 3rd and 5th time step. 
     261These attributes are not mandatory. If \verb|build_workflow_graph_start| is not define, the graph will start to record from the first iteration. 
     262Similarly, the default value of \verb|build_workflow_graph_end| is the last iteration of the simulation. 
    241263 
    242264In case that two values of the same attribute are defined, we take the largest range. 
Note: See TracChangeset for help on using the changeset viewer.