Learn R Programming

⚠️There's a newer version (1.6.0) of this package.Take me there.

sen2r (version 1.5.0)

Find, Download and Process Sentinel-2 Data

Description

Functions to download Sentinel-2 optical images and perform preliminary processing operations. 'sen2r' provides the instruments required to easily perform (and eventually automate) the steps necessary to build a complete Sentinel-2 processing chain. A Graphical User Interface to facilitate data processing is also provided. For additional documentation refer to the following article: Ranghetti et al. (2020) .

Copy Link

Version

Install

install.packages('sen2r')

Monthly Downloads

71

Version

1.5.0

License

GPL-3

Maintainer

Luigi Ranghetti

Last Published

June 27th, 2021

Functions in sen2r (1.5.0)

check_gui_deps

Check GUI dependencies
check_sen2r_deps

Check package dependencies
build_example_param_file

Build an example JSON parameter file
check_gcloud

Check Google Cloud SDK installation
gdalUtil

Interface to GDAL Python-based utilities
add_rgb_image

Add RGB product
write_ignorelist

Read / write the ignore list
fix_envi_format

Fix ENVI outputs
expect_equal_crs

Compare two non-null CRS
give_write_permission

Give permission to write settings on disk
create_s2_dop

Create the database of S2 orbits and doy of passage
install_sen2cor

Download and install (or link) Sen2Cor
create_indices_db

Create the indices database
init_python

Initialise python
install_aria2

Download and install aria2.
gdal_abs2rel

Convert absolute from/to relative paths in a virtual file
read_gipp

Manage GIPP parameters for Sen2Cor
expand_path

Expand a path with a parent directory
gdal_warp

Clip, reproject and warp raster files
dontuse

Don't use
compute_s2_paths

Compute names of S2 file to be generated
s2_dop

Return the Dates Of Passage over some orbits
gipp_init

Copy L2A_GIPP.xml in sen2r
s2_download

Download S2 products.
safe_shortname

Rename products using a shorten convention
safe_is_online

Check if SAFE is available for download
gdalwarp_grid

Warp a raster file aligning it on the grid of another file
normalize_path

Express file paths in canonical Form depending on the operating system
raster_metadata

Get metadata from raster paths
raster2rgb

Produce an RGB image from a singleband raster file.
list_indices

List spectral indices
path_check

Check a path
comsub

Find the longest common starting substring or directory
tile_utmzone

Obtain the UTM zone associated to Sentinel-2 tiles
nn

Replace NULL with character()
mountpoint

Return the mountpoint of the input directory (if it is mounted)
tiles_intersects

Select the tiles intersecting the extent
load_binpaths

Load the paths of external executables
start_trace

Trace functions which create files
s2_order

Order S2 products.
s2_mask

Apply cloud masks
s2_merge

Merge S2 tiles with the same date and orbit
s2_calcindices

Compute maps of spectral indices
s2_defNA

Set NA value of a specific product type
s2_thumbnails

Create thumbnails for S2 products.
print_message

Print a message
stack2rgb

Produce an RGB image from a multiband raster file.
st_crs2

Retrieve coordinate reference system from sf or sfc object
projpar

Return a parameter used in a WKT projection
safe_getMetadata

Get information from S2 file name or metadata
s2_translate

Convert from SAFE format
str_pad2

Pad a string.
s2_tiles

Load Sentinel-2 tiles
suppress_warnings

Selective suppress warnings
load_extent_bbox

Insert an extent
s2_gui

Launch the GUI for Sentinel-2 products
safelist-class

Format for SAFE archive lists
s2_rgb

Create RGB images from S2 reflectance products.
read_scihub_login

Import / export / check SciHub username and password
sen2r_getElements

Get information from S2 short name
s2_list

Retrieve list of available S2 products.
sen2cor

Correct L1C products using Sen2Cor
sen2r_process_report

Summarise processing report
sen2r

Find, download and preprocess Sentinel-2 images
smooth_mask

Buffer cloud masks
st_as_text_2

Return WKT or WKT2 basing on the installed rgdal version
calcindex_raster

Compute index using raster or stars features
add_tile_suffix

Add/remove suffixes for split tiles
check_gdal

Check GDAL installation
check_param_list

Check a parameter list
abs2rel

Convert a path to a relative path