changeset 48:7037bb9bca7c

Changes to micreate_std_variable. Some changes to ordering of netcdf functions.
author neelin <neelin>
date Tue, 15 Dec 1992 15:55:07 +0000
parents eb100e2fca95
children c131e9d2d965
files doc/prog_ref.tex
diffstat 1 files changed, 30 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/doc/prog_ref.tex
+++ b/doc/prog_ref.tex
@@ -409,6 +409,14 @@
 int ncabort(int cdfid);
 \end{verbatim}
 
+\item \code{ncsetfill} : When \code{ncendef} is called, all variables are
+filled with a fill value by default. To turn this off, call this
+routine with \code{fillmode} set to \code{NC\_NOFILL} (to turn it back
+on, use \code{NC\_FILL}).
+\begin{verbatim}
+int ncsetfill(int cdfid,int fillmode);
+\end{verbatim}
+
 \end{itemize}
 
 \subsection{Dimension operations}
@@ -501,6 +509,17 @@
 int ncvarrename(int cdfid,int varid,char* name);
 \end{verbatim}
 
+\item \code{nctypelen} : Get the length (in bytes) of a data type. 
+\begin{verbatim}
+int nctypelen(nc_type datatype);
+\end{verbatim}
+
+\end{itemize}
+
+\subsection{Attribute operations}
+
+\begin{itemize}
+
 \item \code{ncattput} : Store an attribute by name with variable \code{varid}.
 The type and 
 length of the attribute must be specified.
@@ -543,20 +562,6 @@
 int ncattdel(int cdfid,int varid,char* name);
 \end{verbatim}
 
-\item \code{nctypelen} : Get the length (in bytes) of a data type. 
-\begin{verbatim}
-int nctypelen(nc_type datatype);
-\end{verbatim}
-
-\item \code{ncsetfill} : When \code{ncendef} is called, all variables are
-filled with a fill 
-value by default. To turn this off, call this routine with
-\code{fillmode} set to \code{NC\_NOFILL} (to turn it back on, use
-\code{NC\_FILL}).
-\begin{verbatim}
-int ncsetfill(int cdfid,int fillmode);
-\end{verbatim}
-
 \end{itemize}
 
 \section{MINC routines}
@@ -735,17 +740,18 @@
 
 \item \code{micreate\_std\_variable} : Create any of the standard MINC
 variables and set some attributes. Called in the manner of
-\code{ncvardef}. For all variable, attributes \code{MIvarid},
+\code{ncvardef}. For all variables, attributes \code{MIvarid},
 \code{MIvartype} and \code{MIversion} are all set. For dimension
-variables, \code{MIspacing} is set to \code{MI\_REGULAR} and
-\code{MIalignment} is set to \code{MI\_CENTRE} (unless the variable is
-\code{MItime}, then it is set to \code{MI\_START}). For dimension
-width variables, \code{MIspacing} is set to \code{MI\_REGULAR} and
-\code{MIfiltertype} is set to \code{MI\_SQUARE}. For \code{MIimage}
-and for \code{MIimagemax} and \code{MIimagemin}, dimensions are
-checked to ensure that the last two do not vary over image dimensions
-and attribute pointers from \code{MIimage} are created to point to the
-other two.
+and dimension width variables, \code{MIspacing} is set to
+\code{MI\_REGULAR} if the number of dimensions is zero and
+\code{MI\_IRREGULAR} otherwise. For dimension variables,
+\code{MIalignment} is set to \code{MI\_CENTRE} unless the variable is
+\code{MItime}, then it is set to \code{MI\_START}. For dimension
+width variables, \code{MIfiltertype} is set to \code{MI\_SQUARE}. For
+\code{MIimage} and for \code{MIimagemax} and \code{MIimagemin},
+dimensions are checked to ensure that the last two do not vary over
+image dimensions and attribute pointers from \code{MIimage} are
+created to point to the other two.
 \begin{verbatim}
 public int micreate_std_variable(int cdfid, char *name, nc_type datatype, 
                                  int ndims, int dim[]);