Description Usage Arguments Value
Fetch a single OBPG raster
1 2 3 4 5 6 7 8 | obpg_fetch(
x,
nav,
outpath = NA,
overwrite = TRUE,
fmt = "GTiff",
try_nrt = TRUE
)
|
x |
ncdf4 object or URL. If an ncdf4 object, then it will be left open so be sure to close it when you are done. |
nav |
list as returned by |
outpath |
character or NA to prevent file writing. If provided, the actually path written to will be <path>/YYYY/mmdd/filename |
overwrite |
logical, see |
fmt |
character either 'raster' or 'GTiff' (default) |
try_nrt |
logical, if TRUE and the connection fails, then try again after modifying the url to ".NRT.nc" instead of ".nc" |
a raster layer or NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.