Learn R Programming

sen2r (version 1.6.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

92

Version

1.6.0

License

GPL-3

Maintainer

Luigi Ranghetti

Last Published

November 10th, 2023

Functions in sen2r (1.6.0)

create_indices_db

Create the indices database
comsub

Find the longest common starting substring or directory
expand_path

Expand a path with a parent directory
gdal_warp

Clip, reproject and warp raster files
gdal_abs2rel

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

Create the database of S2 orbits and doy of passage
expect_equal_crs

Compare two non-null CRS
compute_s2_paths

Compute names of S2 file to be generated
fix_envi_format

Fix ENVI outputs
gdalUtil

Interface to GDAL Python-based utilities
gipp_init

Copy L2A_GIPP.xml in sen2r
install_aria2

Download and install aria2.
install_sen2cor

Download and install (or link) Sen2Cor
write_ignorelist

Read / write the ignore list
list_indices

List spectral indices
normalize_path

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

Replace NULL with character()
load_binpaths

Load the paths of external executables
path_check

Check a path
print_message

Print a message
read_gipp

Manage GIPP parameters for Sen2Cor
mountpoint

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

Insert an extent
gdalwarp_grid

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

Initialise python
projpar

Return a parameter used in a WKT projection
raster2rgb

Produce an RGB image from a singleband raster file.
s2_gui

Launch the GUI for Sentinel-2 products
s2_order

Order S2 products (deprecated).
s2_list

Retrieve list of available S2 products.
s2_mask

Apply cloud masks
s2_merge

Merge S2 tiles with the same date and orbit
s2_download

Download S2 products.
s2_dop

Return the Dates Of Passage over some orbits
s2_angles

Extract sun angles from SAFE archives
raster_metadata

Get metadata from raster paths
give_write_permission

Give permission to write settings on disk
s2_rgb

Create RGB images from S2 reflectance products.
safelist-class

Format for SAFE archive lists
safe_is_online

Check if SAFE is available for download (deprecated)
s2_tiles

Load Sentinel-2 tiles
safe_shortname

Rename products using a shorten convention
s2_thumbnails

Create thumbnails for S2 products.
sen2cor

Correct L1C products using Sen2Cor
sen2r

Find, download and preprocess Sentinel-2 images
read_scihub_login

Import / export / check SciHub username and password (deprecated)
smooth_mask

Buffer cloud masks
s2_defNA

Set NA value of a specific product type
sen2r_getElements

Get information from S2 short name
tiles_intersects

Select the tiles intersecting the extent
s2_calcindices

Compute maps of spectral indices
tile_utmzone

Obtain the UTM zone associated to Sentinel-2 tiles
st_as_text_2

Return WKT or WKT2 basing on the installed rgdal version
safe_getMetadata

Get information from S2 file name or metadata
s2_translate

Convert from SAFE format
str_pad2

Pad a string.
suppress_warnings

Selective suppress warnings
start_trace

Trace functions which create files
sen2r_process_report

Summarise processing report
st_crs2

Retrieve coordinate reference system from sf or sfc object
stack2rgb

Produce an RGB image from a multiband raster file.
check_gcloud

Check Google Cloud SDK installation
add_tile_suffix

Add/remove suffixes for split tiles
check_gdal

Check GDAL installation
build_example_param_file

Build an example JSON parameter file
abs2rel

Convert a path to a relative path
check_sen2r_deps

Check package dependencies
calcindex_raster

Compute index using raster or stars features
add_rgb_image

Add RGB product
check_gui_deps

Check GUI dependencies
check_param_list

Check a parameter list