Description Usage Arguments See Also Examples
Download and cache an argo file specified by id
1 2 3 4 5 6 7 8 9 10 11 |
id |
character value giving the Argo float id. In this version
of |
server |
ignored |
destdir |
character value indicating the directory in which to store
downloaded files. The default value of |
destfile |
optional character value that specifies the name to be used
for the downloaded file. If this is not specified, then a name is determined
from the value of |
ntrials |
integer controlling the number of times to attempt
to download the file. The default value, |
force |
A logical value that indicates whether to force the download,
even if the pathname constructed from |
dryrun |
A logical value that indicates whether to return the constructed web query, without attempting to download the file. This can be helpful in designing responses to changing URLs. |
quiet |
logical value, passed to |
debug |
an integer specifying whether debugging information is
to be printed during processing. The printing is done by
a call to |
Other functions related to argo data:
dc.argoIndex()
,
dc.argoSearch()
,
dc.argo()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # These examples assume that the ~/data/argo directory exists and is readable.
## Not run:
library(oce)
# Case 1: id is a URL; server is ignored.
id <- "ftp://ftp.ifremer.fr/ifremer/argo/dac/nmdis/2901633/profiles/R2901633_071.nc"
f <- dc.argoById(id, destdir="~/data/argo")
a <- read.oce(f)
summary(a) # an oce object of class 'argo'
par(mfrow=c(2, 2))
plot(a, which="map")
mtext(a[["time"]], cex=par("cex"))
mtext(gsub(".*/", "", f), cex=par("cex"), line=-1)
plot(a, which="TS")
plot(a, which="temperature profile")
plot(a, which="salinity profile")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.