Description Usage Arguments Value
reads a shapefile and retrieves a sits tibble containing time series from a data cube that are inside the SHP file. The script uses the WTSS service, taking information about spatial and temporal resolution from the WTSS configuration.
1 2 3 4 5 6 7 8 9 10 11 12 | .sits_from_shp(
shp_file,
cube,
start_date,
end_date,
bands,
label,
shp_attr,
.n_shp_pol,
.n_shp_pts,
.prefilter
)
|
shp_file |
SHP file which provides the boundaries of a region. |
cube |
Data cube metadata. |
start_date |
Start date of the period. |
end_date |
End date of the period. |
bands |
Names of the bands to be retrieved. |
label |
Label to attach to the time series. |
shp_attr |
Attribute in the shapefile used as a polygon label |
.n_shp_pol |
Number of samples per polygon to be read (for POLYGON or MULTIPOLYGON shapes) |
.n_shp_pts |
Number of points to be read (for POINT shapes) |
.prefilter |
Filtering for SATVEG cube ("0" - none, "1" - no data correction, "2" - cloud correction, "3" - no data and cloud correction). |
A sits tibble.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.