Hi, I am rather new to analysing satellite images so of course I ran into a problem I think there is no solution to… I am trying to change an image from Sentinel 1C format to a Sentinel 2A format. From google earth engine I downloaded a tiff file of an image. I also successfully installed the Sen2Cor script and I am able to run it. However, when running the following command in my terminal: sen2cor /Users/admin/Desktop/August2018.tiff I get the following error: elif path == '' or path.endswith('/'): AttributeError: 'NoneType' object has no attribute 'endswith'
Am I supposed to pass the image in a different format than in .tiff?
Any help would be much appreciated!
Many thanks in advance,
Marko
The tiff files will not work. You need official ESA S2 L1C products.
You can get them from Open Access Hub (copernicus.eu),
There you can get L2A products too.
Hey @marpet , the data I want to download is ‘offline’, how long does it usually take for such data to be ready for download?
Many thanks for your help,
Marko
Hello
Offline products are in LTA (Long Term Archive). If they are greyed out, clicking the download adds them to your Cart. In my experience, the wait is a lot less than an hour, typically. If the product in your cart is still greyed out after a while, try to refresh the page, and it may appear.
@marpet & @Jan thank you very much, that was very helpful! I finally got my data in the .SAFE format. When I try to run sen2cor /Users/admin/Desktop/S2A_MSIL1C_20160814T100032_N0204_R122_T33TVL_20160814T100604.SAFE I get the error of Product metadata file cannot be read.
Am I again passing the wrong file into the converter?
Apologies to constantly give you follow up questions but your advice has been a tremendous help!
We recommend using the last available version of Sen2Cor 2.11 that solves the issue when processing L1C products with the 14.2 Product Format Specification (e.g. PB02.04).
Please be aware of point 7) of Sen2Cor FAQ if you plan to install Sen2Cor version 2.11 on Linux recent distributions.