Learn R Programming

oce (version 0.9-19)

read.topo: Read a Topo File

Description

Read a file that contains topographic data in the ETOPO dataset, as provided by the NOAA website [1].

Usage

read.topo(file, ...)

Arguments

file
Name of a file containing an ETOPO-format dataset.
...
Additional arguments, passed to called routines.

Value

An object of type topo-class that which has the following slots.
data
: a data frame containing lat, lon, and z
metadata
: a list containing the source filename
processingLog
: a log, in the standard oce format.

References

1. NOAA website that provides datasets: http://maps.ngdc.noaa.gov/viewers/wcs-client with the ArcGIS ASCII Grid menu item selected.

See Also

Other things related to topo data: [[,topo-method, [[<-,topo-method, as.topo, plot,topo-method, subset,topo-method, summary,topo-method, topo-class, topoInterpolate, topoWorld

Examples

Run this code
## Not run: 
# library(oce)
# topoMaritimes <- read.topo("topoMaritimes.asc")
# plot(topographyMaritimes)
# ## End(Not run)

Run the code above in your browser using DataLab