Learn R Programming

oce (version 0.2-1)

read.topo: Read an topography file

Description

Read a file that contains topographic data in the ETOPO2 dataset, as provided by the NOAA website.

Usage

read.topo(file, history, ...)

Arguments

file
name of a file containing an ETOPO2 dataset.
history
if provided, the action item to be stored in the log. (Typically only provided for internal calls; the default that it provides is better for normal calls by a user.)
...
additional arguments, passed to called routines.

Value

  • An object of type class "topo", which is a list containing the following items.
  • dataa data frame containing lat, lon, and z
  • metadataa list containing the source filename
  • historya history, in the standard oce format.

References

http://www.ngdc.noaa.gov/mgg/gdas/gd_designagrid.html

Examples

Run this code
library(oce)
topoMaritimes <- read.topo("topoMaritimes.asc")
plot(topographyMaritimes)

Run the code above in your browser using DataLab