/[MITgcm]/manual/s_phys_pkgs/rw.tex
ViewVC logotype

Diff of /manual/s_phys_pkgs/rw.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by cnh, Wed Jan 28 21:29:09 2004 UTC revision 1.3 by cnh, Thu Jan 29 14:43:14 2004 UTC
# Line 1  Line 1 
1  \section{Basic binary I/O utilities}  \section{Basic binary I/O utilities}
2  \label{sec:pkg:rw}  \label{sec:pkg:rw}
3  The {\tt rw/} package provides a very rudimentary binary I/O capability  The {\tt rw} package provides a very rudimentary binary I/O capability
4  for quickly writing {\bf single record} direct-access Fortran binary files.  for quickly writing {\it single record} direct-access Fortran binary files.
5  It is primarily used for writing diagnostic output.  It is primarily used for writing diagnostic output.
6    
7  \subsection{Introduction}  \subsection{Introduction}
8  Package {\tt rw/} is an interface to the more general {\tt mdsio/} package.  Package {\tt rw} is an interface to the more general {\tt mdsio} package.
9  It can be used to write or read direct-access Fortran binary files for  The {\tt rw} package can be used to write or read direct-access Fortran
10  two-dimensional XY and three-dimensional XYZ arrays. Each call to an {\tt rw/}  binary files for two-dimensional XY and three-dimensional XYZ arrays.
11  read or write routine will read (or write) to the first record of a file.  The arrays are assumed to have been decalred according to the standard
12  To write files with multiple records use the package {\tt mdsio/} or the  MITgcm two-dimensional or the-dimensional floating poit array type e.g
13  package {\tt mnc/ \ref{sec:pkg:mnc}} which produces netCDF \cite{rew:97}  \begin{verbatim}
14  based output.  C     Example of declaring a standard two dimensional "long" floating
15    C     point type array (the _RL macro is usually mapped to 64-bit
16    C     floats in most configurations)
17          _RL anArray(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
18    \end{verbatim}
19    Each call to an {\tt rw} read or write routine will read (or write) to the
20    first record of a file. To write files with multiple records use the
21    package {\tt mdsio} (see section) or the package {\tt mnc} (see section {sec:pkg:mnc})
22    which produces netCDF \cite{rew:97} based output.
23    
24  \subsection{Key subroutines, parameters and files}  \subsection{Key subroutines, parameters and files}
25  \label{sec:pkg:rw:implementation_synopsis}  \label{sec:pkg:rw:implementation_synopsis}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22