Learn R Programming

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

sen2r (version 1.5.4)

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

95

Version

1.5.4

License

GPL-3

Maintainer

Luigi Ranghetti

Last Published

January 6th, 2023

Functions in sen2r (1.5.4)

expect_equal_crs

Compare two non-null CRS
expand_path

Expand a path with a parent directory
gdal_abs2rel

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

Clip, reproject and warp raster files
gdalUtil

Interface to GDAL Python-based utilities
comsub

Find the longest common starting substring or directory
fix_envi_format

Fix ENVI outputs
create_s2_dop

Create the database of S2 orbits and doy of passage
create_indices_db

Create the indices database
compute_s2_paths

Compute names of S2 file to be generated
load_binpaths

Load the paths of external executables
list_indices

List spectral indices
install_sen2cor

Download and install (or link) Sen2Cor
read_gipp

Manage GIPP parameters for Sen2Cor
init_python

Initialise python
install_aria2

Download and install aria2.
gdalwarp_grid

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

Give permission to write settings on disk
write_ignorelist

Read / write the ignore list
gipp_init

Copy L2A_GIPP.xml in sen2r
load_extent_bbox

Insert an extent
mountpoint

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

Get metadata from raster paths
normalize_path

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

Print a message
s2_angles

Extract sun angles from SAFE archives
projpar

Return a parameter used in a WKT projection
raster2rgb

Produce an RGB image from a singleband raster file.
path_check

Check a path
nn

Replace NULL with character()
s2_gui

Launch the GUI for Sentinel-2 products
s2_mask

Apply cloud masks
s2_order

Order S2 products.
s2_merge

Merge S2 tiles with the same date and orbit
s2_defNA

Set NA value of a specific product type
s2_calcindices

Compute maps of spectral indices
s2_rgb

Create RGB images from S2 reflectance products.
s2_list

Retrieve list of available S2 products.
s2_download

Download S2 products.
s2_dop

Return the Dates Of Passage over some orbits
safe_shortname

Rename products using a shorten convention
safe_getMetadata

Get information from S2 file name or metadata
safelist-class

Format for SAFE archive lists
sen2cor

Correct L1C products using Sen2Cor
s2_tiles

Load Sentinel-2 tiles
safe_is_online

Check if SAFE is available for download
read_scihub_login

Import / export / check SciHub username and password
s2_translate

Convert from SAFE format
sen2r

Find, download and preprocess Sentinel-2 images
s2_thumbnails

Create thumbnails for S2 products.
st_crs2

Retrieve coordinate reference system from sf or sfc object
tile_utmzone

Obtain the UTM zone associated to Sentinel-2 tiles
sen2r_getElements

Get information from S2 short name
tiles_intersects

Select the tiles intersecting the extent
str_pad2

Pad a string.
sen2r_process_report

Summarise processing report
suppress_warnings

Selective suppress warnings
start_trace

Trace functions which create files
st_as_text_2

Return WKT or WKT2 basing on the installed rgdal version
smooth_mask

Buffer cloud masks
stack2rgb

Produce an RGB image from a multiband raster file.
add_tile_suffix

Add/remove suffixes for split tiles
abs2rel

Convert a path to a relative path
check_gcloud

Check Google Cloud SDK installation
check_gdal

Check GDAL installation
build_example_param_file

Build an example JSON parameter file
check_sen2r_deps

Check package dependencies
check_param_list

Check a parameter list
calcindex_raster

Compute index using raster or stars features
check_gui_deps

Check GUI dependencies
add_rgb_image

Add RGB product