contoxyz

Last updated Sat Sep 18 21:05:02 1999


Reorder and regrid contour data

1. SYNOPSIS

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

2. 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.

3. 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.

4. 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.

5. AUTHORS

Pierre Jaccard, Geophysical Institute, University of Bergen, 1999