DHUSGET.sh script to download Sentinel-2 images: Short Potsdam example & alternatives

For searching and downloading Sentinel imagery, several options exist. @annekatriendw for example published two beginners friendly articles about downloading satellite imagery: First an article about downloading Sentinel imagery using the Scientific data hub and second an article about accessing Sentinel and Landsat data via the Amazon web servide (AWS). 
In case you need to bulk-download data Sentinel data and you have to search over the same area again and again, to search at the SciHub website can be very annoying – and what you need is a command line solution!
In this short blog post I present a scriptable example based on ESA´s DHUSGET script, as alternative to use the Scientific data hub GUI. ESA´s well documented script allows to combine complex searches within Sentinels satellite imagery database. Here you find the documentation and the script.
The script itself is provided here.

 

Applying the script

Imagine you want to search for all Sentinel-2 scenes scenes with the product level L1C (orthorectified) covering the city of Potsdam. You could execute the script with the following flags:
bash dhusget.sh -u"****" -p"****" -m Sentinel-2 
-t 700 -c 12.99,52.42:13.16,52.35 
-T S2MSI1C -o all
Next I explain the of the used flags. Much more options are possible, all flags can be seen within the dhusget.sh script):
-u = Open hub Username
-p = Open hub Password
-m = Mission name. Possible is Sentinel-1, Sentinel-2, Sentinel-3
-t = Time in hours, when images have been ingested
-c = Bounding Box of your area of interest. Two diagonal  coordinates in decimal degrees
– T = Product type
-o = Download options

 

Alternatives

Of course you can also use wget or curl request, which result in fairly longer commands. Another alternative is Oliver Hagolle´s python script for an automated download of Sentinel-2 L1C data: https://github.com/olivierhagolle/Sentinel-download
For bulk downloading Landsat, the recommendable Landsat-util command line utility exists: http://landsat-util.readthedocs.io/en/latest/

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.