[x,y,z] = contoxyz(data, iz, yi )
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.
Array containing contour data. The x and y must be located in the frist two columns,respectively.
Column number of the z variable to retrieve from the data matrix.
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.
A vector containing x values.
A vector containing y values (same as yi).
An array containing the desired z values,interpolated on grid defined by x and yi values.
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999