fetch | R Documentation |
Get files
fetch(x, ..., fields = "all", stride = 1, fmt = "nc", url = durl(), store = disk(), read = TRUE, callopts = list())
x |
input |
... |
Dimension arguments. See examples. Can be any 1 or more of the dimensions for the particular dataset - and the dimensions vary by dataset. For each dimension, pass in a vector of length two, with min and max value desired. |
fields |
(character) Fields to return, in a character vector. |
stride |
(integer) How many values to get. 1 = get every value, 2 = get every other value, etc. Default: 1 (i.e., get every value) |
fmt |
(character) One of csv or nc (for netcdf). Default: nc |
url |
A URL for an OpenDAP server. Default: https://goldsmr2.sci.gsfc.nasa.gov/opendap/ |
store |
One of |
read |
(logical) Read data into memory or not. Does not apply when
|
callopts |
Pass on curl options to |
Prints a summary of the data on return, but you can index to various information.
Scott Chamberlain <myrmecocystus@gmail.com>
## Not run: fetch(id = "MERRA_MONTHLY/MSTMNXMLD.5.2.0/2015/MERRA300.prod.simul.tavgM_2d_mld_Nx.201507.hdf") # NASA's ocean color data url <- 'https://oceandata.sci.gsfc.nasa.gov/opendap/' fetch('MODISA/L3SMI/2015/006/A2015006.L3m_DAY_IOP_a_412_giop_4km.nc', url = url) x <- "MODISA/L3SMI/2015/006/A2015006.L3m_DAY_IOP_aph_unc_443_giop_9km.nc.nc4" ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.