Skip to content

Commit

Permalink
Merge pull request #335 from ranghetti/devel
Browse files Browse the repository at this point in the history
RC v. 1.3.7
  • Loading branch information
ranghetti authored Jul 6, 2020
2 parents 74acccd + dc47fbe commit b0d8d41
Show file tree
Hide file tree
Showing 125 changed files with 380 additions and 257 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: sen2r
Type: Package
Title: Find, Download and Process Sentinel-2 Data
Version: 1.3.6.9002
Version: 1.3.7
Authors@R: c(person("Luigi", "Ranghetti",
email = "[email protected]",
role = c("aut", "cre"),
Expand Down Expand Up @@ -51,6 +51,7 @@ Suggests:
geojsonlint,
httptest,
knitr,
markdown,
rmarkdown,
sys,
tools,
Expand Down
19 changes: 19 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# Version 1.3.7

## Major changes
- Some additional products are now supported: `CLD`, `SNW`, `AOT`, `WVP` (see documentation for description). The GUI and internal functions were modified to support their selection and generation.

## Minor changes
- Add indices Red / Green / Blue Chromatic Coordinate (`Rcc`, `Gcc`, `Bcc`) and Excess Green (`ExG`) (#330).
- All methods based on runtime GDAL are now discouraged and never called by default (before this version, they were used in case GDAL was found on `paths.json`).
- Output GeoTIFF files are now tiled.

## Documentation
- New products were documented in function references and in the article ["Output file structure"](https://sen2r.ranghetti.info/articles/outstructure).
- Function references explicit discourage the use of GDAL-based methods.
- The documentation site links to the personal page https://luigi.ranghetti.info/.

## Bug fixes
- Fix #318, #323 and #329.


# Version 1.3.6

## Bug fixes
Expand Down
11 changes: 8 additions & 3 deletions R/gipp.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ gipp_init <- function(gipp_sen2r_path = NA, force = FALSE, dem_warning = FALSE)
sen2cor_version_raw1
)
# define L2A_GIPP.xml path
gipp_sen2cor_path <- normalize_path(
file.path("~/sen2cor", sen2cor_version, "cfg/L2A_GIPP.xml")
)
gipp_sen2cor_path <- normalize_path(file.path(
if (Sys.info()["sysname"] == "Windows") {
file.path(Sys.getenv("USERPROFILE"), "Documents")
} else {
"~"
},
"sen2cor", sen2cor_version, "cfg/L2A_GIPP.xml"
))
# (this assumes Sen2Cor to be installed and configured to be used with sen2r)

if (!file.exists(gipp_sen2cor_path)) {
Expand Down
31 changes: 30 additions & 1 deletion R/s2_gui.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ s2_gui <- function(param_list = NULL,
tabItem <- shinydashboard::tabItem
tabItems <- shinydashboard::tabItems
tagList <- shiny::tagList
tags <- shiny::tags
textInput <- shiny::textInput
toggle <- shinyjs::toggle
uiOutput <- shiny::uiOutput
Expand All @@ -171,7 +172,35 @@ s2_gui <- function(param_list = NULL,
# shiny
s2_gui.ui <- dashboardPage(
title = "sen2r: Find, Download and Process Sentinel-2 Data",
header = dashboardHeader(),
header = dashboardHeader(

tags$li(class ="dropdown", tags$a(
href="http://sen2r.ranghetti.info",
shiny::icon("book"),
style="margin:0;padding-top:11px;padding-bottom:11px;padding-left:10px;padding-right:10px;font-size:30px;",
target="_blank"
)),
tags$li(class ="dropdown", tags$a(
href="https://github.com/ranghetti/sen2r",
shiny::icon("github"),
style="margin:0;padding-top:11px;padding-bottom:11px;padding-left:10px;padding-right:10px;font-size:30px;",
target="_blank"
)),
tags$li(class ="dropdown", tags$a(
href="https://luigi.ranghetti.info",
shiny::icon("user"),
style="margin:0;padding-top:11px;padding-bottom:11px;padding-left:10px;padding-right:10px;font-size:30px;",
target="_blank"
)),
tags$li(class ="dropdown", tags$a(
href="http://www.irea.cnr.it",
tags$img(src="www/images/irea_logo.png"),
style="margin:0;padding-top:2px;padding-bottom:2px;padding-left:10px;padding-right:10px;",
target="_blank"
))


),
sidebar = dashboardSidebar(

# logo
Expand Down
3 changes: 2 additions & 1 deletion R/str_pad2.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#' @title Pad a string.
#' @description Vectorised over `string`, `width` and `pad`.
#' This is an internal function doing the same thing of [stringr::str_pad]
#' This is an internal function doing the same thing of `str_pad()`
#' function in package `stringr`
#' (except for parameters `'width'` and `'length'` which must be of length 1),
#' but without depending on package `stringi`.
#' @param string A character vector.
Expand Down
10 changes: 5 additions & 5 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,20 @@ sen2r()
```

<p style="text-align:center;">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/devel/man/figures/sen2r_gui_sheet1.png" target="_blank">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/master/man/figures/sen2r_gui_sheet1.png" target="_blank">
<img src="man/figures/sen2r_gui_sheet1_small.png">
</a>
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/devel/man/figures/sen2r_gui_sheet2.png" target="_blank">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/master/man/figures/sen2r_gui_sheet2.png" target="_blank">
<img src="man/figures/sen2r_gui_sheet2_small.png">
</a>
<br/>
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/devel/man/figures/sen2r_gui_sheet3.png" target="_blank">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/master/man/figures/sen2r_gui_sheet3.png" target="_blank">
<img src="man/figures/sen2r_gui_sheet3_small.png">
</a>
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/devel/man/figures/sen2r_gui_sheet4.png" target="_blank">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/master/man/figures/sen2r_gui_sheet4.png" target="_blank">
<img src="man/figures/sen2r_gui_sheet4_small.png">
</a>
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/devel/man/figures/sen2r_gui_sheet5.png" target="_blank">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/master/man/figures/sen2r_gui_sheet5.png" target="_blank">
<img src="man/figures/sen2r_gui_sheet5_small.png">
</a>
</p>
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ sen2r()

<p style="text-align:center;">

<a href="https://raw.githubusercontent.com/ranghetti/sen2r/devel/man/figures/sen2r_gui_sheet1.png" target="_blank">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/master/man/figures/sen2r_gui_sheet1.png" target="_blank">
<img src="man/figures/sen2r_gui_sheet1_small.png"> </a>
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/devel/man/figures/sen2r_gui_sheet2.png" target="_blank">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/master/man/figures/sen2r_gui_sheet2.png" target="_blank">
<img src="man/figures/sen2r_gui_sheet2_small.png"> </a> <br/>
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/devel/man/figures/sen2r_gui_sheet3.png" target="_blank">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/master/man/figures/sen2r_gui_sheet3.png" target="_blank">
<img src="man/figures/sen2r_gui_sheet3_small.png"> </a>
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/devel/man/figures/sen2r_gui_sheet4.png" target="_blank">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/master/man/figures/sen2r_gui_sheet4.png" target="_blank">
<img src="man/figures/sen2r_gui_sheet4_small.png"> </a>
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/devel/man/figures/sen2r_gui_sheet5.png" target="_blank">
<a href="https://raw.githubusercontent.com/ranghetti/sen2r/master/man/figures/sen2r_gui_sheet5.png" target="_blank">
<img src="man/figures/sen2r_gui_sheet5_small.png"> </a>

</p>
Expand Down
12 changes: 5 additions & 7 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# sen2r v. 1.3.6
# sen2r v. 1.3.7

## Test environments
* [local installation] Ubuntu 18.04, 64 bit, R 3.6.3
* [local installation] Archlinux, 64 bit, R 4.0.0
* [local installation] Archlinux, 64 bit, R 4.0.2
* [local installation] Windows 10, 64 bit, R 4.0.0
* [local installation] Windows 10, 64 bit, R 3.6.3
* [travis-ci] Ubuntu 16.04.6 LTS, 64 bit, R 3.6.2 (devel, release and oldrelease)
* [win-builder] R unstable (r78617), 4.0.0 and 3.6.3 (devel, release and oldrelease)
* [win-builder] R unstable, 4.0.2 and 3.6.3 (devel, release and oldrelease)

## R CMD check results
There were no ERRORs or WARNINGs.

A note was returned:
```
Days since last update: 3
Number of updates in past 6 months: 7
```
this because this is a bug-fixing release:
the bug I need to fix affects the major part of Windows users,
so this patch is urgent.
this because this package is quite recente and under active development.
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/CODE-OF-CONDUCT.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/docker.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/installation.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/outstructure.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/sen2r_cmd.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/sen2r_gui.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/man/figures/sen2r_gui_sheet1_small.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/man/figures/sen2r_gui_sheet2_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/man/figures/sen2r_gui_sheet3_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/man/figures/sen2r_gui_sheet4_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/man/figures/sen2r_gui_sheet5_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b0d8d41

Please sign in to comment.