You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on github.com and signed with GitHub’s verified signature.
The key has expired.
Changes in default values
The default value for "list_prods" argument in sen2r() is NULL instead of 'BOA'.
Remove 'no' value for argument "step_atmcorr" in sen2r() (use 'l2a' without selecting any L2A products instead).
Default values for "smoothing" and "buffer" arguments in s2_mask() are now 0 (like in sen2r()) instead than 10/20 m.
Set parallel = FALSE as default in sen2r() (parallelisation must be explicitly required).
Since old name products were repackaged by ESA, these products are no longer supported.
In the case the users manually defines the path to be used as temporary directory and this directory already exists, a casual subdirectory of the user-defined folder is used (this to prevent to accidentally delete existing files).
Major changes
sen2r package directory is no more used to store files, but a subfolder .sen2r of the user Home directory is created and used.
In this way, reinstalling sen2r will not require anymore to reinstall runtime dependencies / to reconfigure the package.
The permission to write on this folder is asked to the user when the package is loaded for the first time.
s2_list() and s2_download() now use internal methods instead of calling python function derived from s2download scripts by Hagolle (this substantially improve the speed of SAFE search), which were removed.
sen2r is now supported also on MacOS.
New/removed dependencies
Remove sp and rgdal from explicit dependencies.
Remove stringr and gdalUtils dependencies.
Add stars dependency.
New functions
str_pad2(), equivalent to str_pad() without the needing to load "stringr".
raster_metadata(), to get raster metadata, without rgdal dependency.
check_scihub_login() to check if SciHub credentials are right.
check_scihub_connection() to check for internet connectivity.
build_example_param_file() (not exported) to build an example parameter file.
Other changes
Packages stability was improved by adding test functions, working with testthat.
S2 tiles are not provided as kmz within the package, but a rds file is downloaded after installing the package (in this way, package installation is lighter, and S2 tiles are read faster).
Function check_gdal() was rewritten without using gdalUtils, in order to be simpler and faster.
The minimum convex hull of the extent is used instead of the bbox to search SAFE images.
Several "soft" error/warning messages were introduced.
ENVI headers now includes some information about band names (TOA/BOA) and SCL classes.
Coupling SAFE: in offline mode, if some L2A products exists but not the corresponding L1C, and TOA-derived products are required, only the "coupled" SAFE archives are used.
Small base example files were added to the package for testing purposes.
Sen2Cor version which the user wants to install can be chosen in the GUI.
Documentation was updated and improved, in particular adding function examples.