Learn R Programming

oce (version 0.9-20)

read.topo: Read a Topo File

Description

Read a file that contains topographic data in the ETOPO dataset, as provided by the NOAA website (see download.topo for a good server for such files.

Usage

read.topo(file, debug = getOption("oceDebug"))

Arguments

file
Name of a file containing an ETOPO-format dataset. Three types are permitted; see “Details”.
debug
an integer specifying whether debugging information is to be printed during the processing. This is a general parameter that is used by many oce functions. Generally, setting debug=0 turns off the printing, while higher values suggest that more information be printed.

Value

An object of type topo-class that which has the following slots. that which has the following slots.

Details

The three permitted file types are as follows: (1) an ascii type described by NOAA as "?"; (2) a NetCDF format described by NOAA as "GMT NetCDF" (recognized by the presence of a variable named ), and (3) another NetCDF format described by NOAA as "NetCDF" (recognized by the presence of a variable called ). Files in each of these formatss can be downloaded with download.topo.

See Also

Other things related to topo data: [[,topo-method, [[<-,topo-method, as.topo, download.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