This module contains functions to read and write the data.
To create a new dataset the output format must be specified
with one of the following predefined file format types:

\vspace*{3mm}
\hspace*{8mm}\begin{minipage}{15cm}
\begin{deflist}{{\large\tt FILETYPE\_GRB2 \ \ }}
\item[{\large\tt FILETYPE\_GRB}]   File type GRIB version 1
\item[{\large\tt FILETYPE\_GRB2}]  File type GRIB version 2          
\item[{\large\tt FILETYPE\_NC }]   File type netCDF
\item[{\large\tt FILETYPE\_NC2}]   File type netCDF version 2 (64-bit)
\item[{\large\tt FILETYPE\_NC4}]   File type netCDF-4 (HDF5)
\item[{\large\tt FILETYPE\_NC4C}]  File type netCDF-4 classic
\item[{\large\tt FILETYPE\_SRV}]   File type SERVICE
\item[{\large\tt FILETYPE\_EXT}]   File type EXTRA
\item[{\large\tt FILETYPE\_IEG}]   File type IEG
\end{deflist}
\end{minipage}
\vspace*{3mm}

{\tt FILETYPE\_GRB2} is only available if the {\CDI} library was compiled with GRIB\_API support and all netCDF file types are only available if the {\CDI} library was compiled with netCDF support!

To set the byte order of a binary dataset with the file format
type {\tt FILETYPE\_SRV}, {\tt FILETYPE\_EXT} or {\tt FILETYPE\_IEG} use one of the
following predefined constants in the call to {\htmlref{\tt streamDefByteorder}{streamDefByteorder}}:

\vspace*{3mm}
\hspace*{8mm}\begin{minipage}{15cm}
\begin{deflist}{{\large\tt CDI\_LITTLEENDIAN \ \ }}
\item[{\large\tt CDI\_BIGENDIAN   }]  Byte order big endian
\item[{\large\tt CDI\_LITTLEENDIAN}]  Byte order little endian
\end{deflist}
\end{minipage}
\vspace*{3mm}
