get_ss_grds | R Documentation |
Given a polygon and date range, fetch Seascape data and return a raster layer for a single date or raster stack if multiple dates found for given date range.
get_ss_grds(
ss_info,
ply,
ss_var = "CLASS",
date_beg = min(get_ss_dates(ss_info)),
date_end = max(get_ss_dates(ss_info)),
dir_tif = NULL,
del_cache = F,
verbose = F
)
ss_info |
SeaScape ERDDAP info object, as returned by
|
ply |
polygon as spatial feature |
ss_var |
SeaScape variable. One of "CLASS" (default) or "P" for probability. |
date_beg |
date begin to fetch, as character ( |
date_end |
date end to fetch, as character ( |
dir_tif |
directory to cache results. Files are stored in the format
|
del_cache |
Delete ERDDAP cache with
|
verbose |
display messages on status of function. Useful for debugging or showing status while getting data from a wide range and/or big polygon. Default: FALSE. |
Raster raster
layer if one date,
stack
if more
ply <- get_url_ply("mbnms")
ss_i <- get_ss_info()
grds <- get_ss_grds(ss_i, ply, date_beg = "2020-01-01")
grds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.