-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Major changes - Documentation was improved with three new vignettes about GUI usage, command line usage and output structure. ## Bug fixes - Restore checking environmental variable in `init_python()` (this urgent bug fixing was the reason of the urgent release of the current version). - Fix building offline footprint. - Fix the Dockerfile. ## Changes in default argument values - Accept both `sen2r(..., rm_safe = "yes"`) and `"all"`. - In the GUI, the maximum allowed cloud cover was set to 100% accordingly to the `sen2r()` defaults. ## Minor changes - Add check on `max_mask` - `mask_type` coherence (if `max_mask < 100` and `mask_type` is not specified, a warning is returned). - Suppress some unuseful warnings. - Switch examples on 2019 dates (previously examples were based on 2017 images, which were partially moved on LTA). - Do not print progress bars in logs.
- Loading branch information
Showing
174 changed files
with
3,198 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.0 | ||
Version: 1.3.1 | ||
Authors@R: c(person("Luigi", "Ranghetti", | ||
email = "[email protected]", | ||
role = c("aut", "cre"), | ||
|
@@ -23,7 +23,6 @@ BugReports: https://github.com/ranghetti/sen2r/issues | |
Depends: R (>= 3.5.0) | ||
Imports: | ||
methods, | ||
rgdal, | ||
sf, | ||
stars, | ||
data.table, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM rocker/geospatial:3.5.1 | ||
FROM rocker/geospatial:latest | ||
|
||
LABEL maintainer="Luigi Ranghetti <[email protected]>" | ||
|
||
|
@@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y \ | |
python-gdal \ | ||
aria2 \ | ||
libpython-dev \ | ||
libv8-3.14-dev && \ | ||
libnode-dev && \ | ||
apt-get autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,42 @@ | ||
#' @title Initialise python | ||
#' @description Deprecated function. | ||
#' @description Internal function to set the environmental variables | ||
#' required to run Python-based GDAL utilities on Windows. | ||
#' @return NULL (the function is called for its side effects) | ||
#' @author Luigi Ranghetti, phD (2020) \email{luigi@@ranghetti.info} | ||
#' @note License: GPL 3.0 | ||
|
||
init_python <- function() { | ||
stop("This function is deprecated.") | ||
|
||
# Setting environmental variables is required only on Windows | ||
if (Sys.info()["sysname"] != "Windows") { | ||
return(invisible(NULL)) | ||
} | ||
|
||
binpaths <- load_binpaths("gdal") | ||
pythonhome_new <- list.files( | ||
file.path(dirname(dirname(binpaths$gdalinfo)),"apps"), | ||
pattern="^Python", | ||
full.names=TRUE | ||
)[1] | ||
pythonhome_exi <- Sys.getenv("PYTHONHOME") | ||
if (!normalize_path(pythonhome_exi) %in% normalize_path(pythonhome_new)) { | ||
Sys.setenv(PYTHONHOME = pythonhome_new) | ||
on.exit(Sys.setenv(PYTHONHOME = pythonhome_exi)) | ||
} | ||
pythonpath_new <- list.files(pythonhome_new,"^[Ll]ib",full.names=TRUE)[1] | ||
pythonpath_exi <- Sys.getenv("PYTHONPATH") | ||
if (!normalize_path(pythonpath_exi) %in% normalize_path(pythonpath_new)) { | ||
Sys.setenv(PYTHONPATH = pythonpath_new) | ||
on.exit(Sys.setenv(PYTHONPATH = pythonpath_exi)) | ||
} | ||
path_exi <- Sys.getenv("PATH") | ||
if (!any(grepl( | ||
normalize_path(pythonhome_new), | ||
normalize_path(unlist(strsplit(path_exi, ";")), mustWork = FALSE), | ||
fixed=TRUE | ||
))) { | ||
Sys.setenv(PATH = paste0(pythonhome_new,";",Sys.getenv("PATH"))) | ||
on.exit(Sys.setenv(PATH = path_exi)) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.