Description Usage Arguments Details Value Examples
Extracts datasets from SMAP data files.
1 | extract_smap(data, name, in_memory = FALSE)
|
data |
A data frame produced by |
name |
The path in the HDF5 file pointing to data to extract. |
in_memory |
Logical. Should the result be stored in memory? If not, then raster objects are stored on disk in the cache directory. By default the result is stored on disk. |
The arguments group
and dataset
must refer specifically the
group and name within group for the input file, such as can be obtained with
list_smap()
. This function will extract that particular dataset,
returning a Raster object.
Returns a RasterStack object.
1 2 3 4 5 6 | ## Not run:
files <- find_smap(id = "SPL4SMGP", dates = "2015-03-31", version = 4)
downloads <- download_smap(files[1, ])
sm_raster <- extract_smap(downloads, name = '/Geophysical_Data/sm_surface')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.