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