I have downloaded Sentinel data from the AWS bucket on S3. How can I place this into the appropriate SAFE folder structure to run the Fmask cloud masking software (https://github.com/GERSL/Fmask)?
1 Answer
When Sentinel-2 data is downloaded directly from the aws bucket, it comes in a digested format.
In order to recreate the .SAFE
structure, a different tool should be used. The people behind storing Sentinel-2 data on AWS have created a tool set for that. The tool can found here and the key usage is as follows:
sentinelhub.aws --tile T54HVH 2017-04-14 -e
Where the -e
is a flag that triggers the recreation of the .SAFE
structure for the downloads.
-
"-e" apparently stands for "entire". That is, download the "entire" product in a SAFE folder structure. Commented Nov 1, 2018 at 14:06
aws s3 cp --request-payer requester s3://sentinel-s2-l1c/tiles/tiles/37/Q/ED/2017/1/12/0/B01.jp2 /path/to/my/folder/B01.jp2