force-level1-sentinel2
FORCE can process Level 1C Sentinel-2A and Sentinel-2B MSI data as provided by ESA through their data hub.
The full resolution Sentinel-2 images must be acquired from the ESA archive (or from elsewhere).
Downloading data, unzipping, managing the data pool, and preparing/updating the file queue can be fully handled by force-level1-sentinel2
.
Note
If you need to bypass force-level1-sentinel2
, it is recommended to store the images in a consistent data pool without duplicates.
You will need to prepare a File queue.
Usage
force-level1-sentinel2
Usage: force-level1-sentinel2.sh Level-1-Datapool queue Boundingbox
starttime endtime min-cc max-cc [dry]
Level-1-Datapool
The Sentinel-2 images are downloaded to the Level 1 data pool, which should be an existing directory.Files are not downloaded/imported if they are duplicates of already existing files.queue
A file queue (e.g. a file namedlevel1-sentinel2-germany.txt
) needs to be given.If it does not exist, it will be created.If it exists, new imports are appended to this file.Outdated files (older production number) are removed from this queue, and the new imports are appended to the end.This queue is needed for Level 2 processing. All images withQUEUED
status will be processed, then set toDONE
.Boundingbox
Each acquisition covered by the bounding box is downloaded/imported.The bounding box encloses your study area and must be given as"X1/Y1,X2/Y2,X3/Y3,...,X1/Y1"
.The box must be closed (first X/Y = last X/Y).X/Y must be given in decimal degree with negative values for West and South coordinates.Note that the box doesn’t have to be square, you can specify a polygonstarttime endtime
Starttime and endtime specify a temporal subset and refer to the acquisition time.Dates must be given asYYYY-MM-DD
min-cc max-cc
The cloud cover range must be given in % ranging from 0 to 100
[dry]
This argument is optional, and if
dry
is specified, it will trigger a dry run that will only return the number of images and their total data volume
.scihub
in your home directory (you can chmod to 400), with user name in the first line and password in the second line.It is possible to call force-level1-sentinel2
(and subsequently force-level2
) from a cronjob, in which case a near-real time processing can be realized.
A note on the Long Term Archive
See also
Check out this tutorial, which shows how to use force-level1-sentinel2
, how to set up a scheduled download, and more.