contoxyz(3m)

NAME
contoxyz - Reorder and regrid contour data

SYNOPSIS
[x,y,z] = contoxyz(data, iz, yi )

DESCRIPTION
This Matlab function selects specified z variables from an input contour file. It also reorder the columns to have x and y the least and next varying values. Data are also regridded on a specified grid along y values.

PARAMETERS

data
    Array containing contour data. The x and y must be located in the frist two columns,respectively.

iz  Column number of the z variable to retrieve from the data matrix.

yi  A vector on which contour data should be interpolated. This is necessary because some contour data do not have values at identical y in different profiles.

RETURNS

x   A vector containing x values.

y   A vector containing y values (same as yi).

z   An array containing the desired z values,interpolated on grid defined by x and yi values.

AUTHORS
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999