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

View source: R/check.bathy.R

check.bathyR Documentation

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)

Arguments

x

a matrix

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

Value

The output of check.bathy is an ordered matrix.

Author(s)

Eric Pante

See Also

read.bathy, as.bathy, getNOAA.bathy

Examples

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

marmap documentation built on March 31, 2023, 6:59 p.m.

Related to check.bathy in marmap...