Learn R Programming

marmap (version 1.0.10)

check.bathy: Sort bathymetric data matrix by increasing latitude and longitude

Description

Reads a bathymetric data matrix and orders its rows and columns by increasing latitude and longitude.

Usage

check.bathy(x)

Value

The output of check.bathy is an ordered matrix.

Arguments

x

a matrix

Author

Eric Pante

Details

check.bathy allows to sort rows and columns by increasing latitude and longitude, which is necessary for ploting with the function image (package graphics). check.bathy is used within the marmap functions read.bathy and as.bathy (it is also used in getNOAA.bathy through as.bathy).

See Also

read.bathy, as.bathy, getNOAA.bathy

Examples

Run this code
matrix(1:100, ncol=5, dimnames=list(20:1, c(3,2,4,1,5))) -> a
check.bathy(a)

Run the code above in your browser using DataLab