-
Notifications
You must be signed in to change notification settings - Fork 6
/
README.Rmd
78 lines (54 loc) · 2.93 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
output: github_document
---
### General
The Sentinel-1 Water Dynamics Toolkit (SWDT) is a `Shiny` application for processing Senintel-1 image time series to water dynamic maps. Currently the application includes prepared Sentinel-1 GRD images of the Fuente de Piedra Lagoon in Spain from January to December 2017.
The development of SWDT is supported by the Remote Sensing Section of the Department of Geography at Friedrich-Schiller University Jena.
### Installation
You can download the whole application with demo data from Github and restore the missing packages with `packrat`. Note that SWDT depends on [`tsar`](https://github.com/johntruckenbrodt/tsar) and a [`bsplus`](https://github.com/be-marc/bsplus) fork, which have to be installed from GitHub.
### Data
Adding your own data involves several steps at the moment.
* Pre-processing of Sentinel-1 GRD images with the [`pyroSAR`](https://github.com/johntruckenbrodt/pyroSAR) python library
* Projection to EPSG 3857 and same extent
* Supplying an area of interest as a shapefile in EPSG 4326
* Converting of the pre-processed Sentinel-1 images to png files (utilities/tif_to_png.R)
After the data is pre-processed you have to add the following lines to the `config.xml` file into the `config` tags.
```
<aoi>
<name>Fuente</name>
<images>./data/fuente</images>
<shape>./data/fuente</shape>
<thumbs>/thumb/fuente</thumbs>
<parallel>False</parallel>
</aoi>
```
* `<name>` Name of area of interest
* `<images>` Path to directory with Sentinel-1 raster files
* `<shape>` Path to aoi shapefile
* `<thumbs>` Path to directory with Sentinel-1 png files
* `<parallel>`Activate parallel processing with `tsar` package
`<images>` and `<shape>` can be an absolute paths or a path relative to the shiny app root. `<thumbs>` must be a folder in the `./www` folder of the shiny app.
### Features
* Instant results in full-screen leaflet maps
* Parallel processing of minimum and maximum backscatter of Senintel-1 time series with `tsar` package
* Set classification parameters interactively with histograms
* Already calculated time series are cached and stored in a `sqlite` database
### Technical features
SWDT can give you some inspiration for your own shiny application.
#### Reactivity and modules
* Pass information between multiple shiny modules with reactive lists
* Add features to a plot by clicking inside
* Complex reactivity between multiple input widgets on the same reactive value
#### Shiny
* Use modals with disabled navigation bar elements
* Filter DT tables with input widgets
* Use modals and progression bars
* Help text generated from markdown files
* Left and right floating navigation bar
#### Styling
* Customize `ggplot2` with `showtext` fonts to create a consistent layout
* CSS modifications to customize the appearance of `DTOutput`
#### Leaflet for R
* Add Leaflet.OpacityControls plugin to `Leaflet for R`
* Add referenced png images to map
* Change the label of categorical legend entries