.if n .ds Q \&"
.if t .ds Q ``
.if n .ds U \&"
.if t .ds U ''
.TH avg_con2 3m "CODAS Utilities" "GFI"
.tr \&
.nr bi 0
.nr ll 0
.nr el 0
.de DS
..
.de DE
..
.de Pp
.ie \\n(ll>0 \{\
.ie \\n(bi=1 \{\
.nr bi 0
.if \\n(t\\n(ll=0 \{.IP \\(bu\}
.if \\n(t\\n(ll=1 \{.IP \\n+(e\\n(el.\}
.\}
.el .sp
.\}
.el \{\
.ie \\nh=1 \{\
.LP
.nr h 0
.\}
.el .PP
.\}
..
.SH NAME

.Pp
\fBavg_con2\fP - Average data from different contour files

.SH SYNOPSIS

.Pp
[\fIdata\fP, \fIgrid\fP] = \fBavg_con2\fP(\fIfiles\fP, \fIx\fP, \fIy\fP, \fIout\fP, \fImethod\fP
)

.SH DESCRIPTION

.Pp
This is a user interface to function \fBavg_ascii2\fP(3m) for averaging
data from
contour files.
.SH PARAMETERS

.Pp
.nr ll +1
.nr t\n(ll 2
.if \n(ll>1 .RS
.IP "\fBfiles\fP  "
.nr bi 1
.Pp
Cell array of the vector file names to be averaged together.
.Pp
.IP "\fBx\fP  "
.nr bi 1
.Pp
Column number to the \fBx\fP-axes for common regridding.
.Pp
.IP "\fBy\fP  "
.nr bi 1
.Pp
Column number to the \fBy\fP-axes for common regridding.
.Pp
.IP "\fBout \fIoptional\fP\fP  "
.nr bi 1
.Pp
Name for output file containing averaged vector data. Set it to the empty
string for not writting data to disk.
.Pp
.IP "\fBmethod \fIoptional\fP\fP  "
.nr bi 1
.Pp
Method to use for regridding data from the different files (default is
\fBlinear\fP)
.Pp
.if \n(ll>1 .RE
.nr ll -1
.SH RETURNS

.Pp
.nr ll +1
.nr t\n(ll 2
.if \n(ll>1 .RS
.IP "\fBdata \fIoptional\fP\fP  "
.nr bi 1
.Pp
Array of averaged data.
.Pp
.IP "\fBgrid \fIoptional\fP\fP  "
.nr bi 1
.Pp
Grid points for averaged data.
.Pp
.if \n(ll>1 .RE
.nr ll -1
.SH AUTHORS

.Pp
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999
