GRASS logo


i.sentinel.import - Imports Sentinel data downloaded from Copernicus Open Access Hub using


imagery, sentinel, import


i.sentinel.import --help
i.sentinel.import [-rlcp] input=name [pattern=string] [--help] [--verbose] [--quiet] [--ui]


Reproject raster data using r.import if needed
Link raster data instead of importing
Import cloud masks as vector maps
Print raster data to be imported and exit
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog


input=name [required]
Name for input directory where downloaded Sentinel data lives
File name pattern to import

Table of contents

i.sentinel.import module allows importing Sentinel products downloaded by module.

By default i.sentinel.import imports all Sentinel bands found in input directory by r.import. Note that in the case that spatial reference system of input data differs from GRASS location, the input data are reprojected.

Optionally input data can be linked by r.external when -l is given. Note that linking data requires that input data and GRASS location have the same spatial reference system.

Number of imported Sentinel bands can be optionally reduced by pattern option.


If -c flag is given, than also cloud mask file is imported as vector map if available. Name of created vector map is determined from input Sentinel product.


At first, print list of raster files to be imported by -p. For each file also projection match with current location is printed including detected input data EPSG code.
i.sentinel.import -p input=data

data/S2B_MSIL1C_20180216T102059_N0206_R065_T32UPB_20180216T140508.SAFE/GRANULE/.../T32UPB_20180216T102059_B04.jp2 1 (EPSG: 32632)
data/S2B_MSIL1C_20180216T102059_N0206_R065_T32UPB_20180216T140508.SAFE/GRANULE/.../T32UPB_20180216T102059_B07.jp2 1 (EPSG: 32632)
data/S2B_MSIL1C_20180216T102059_N0206_R065_T32UPB_20180216T140508.SAFE/GRANULE/.../T32UPB_20180216T102059_B11.jp2 1 (EPSG: 32632)
Import all Sentinel bands found in data directory.
i.sentinel.import input=data
Limit import only to 4th and 8th bands.
i.sentinel.import input=data pattern='B0[4|8]'
Link data and import also cloud mask file.
i.sentinel.import -l -c input=data

Fig: Band 4 with imported cloud mask

SEE ALSO, r.import, r.external, v.import

See also GRASS GIS Workshop in Jena for usage examples.


Martin Landa, GeoForAll Lab, CTU in Prague, Czech Republic with support of OpenGeoLabs company


Available at: i.sentinel.import source code (history)

Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index

© 2003-2018 GRASS Development Team, GRASS GIS 7.4.2svn Reference Manual