Downloading Sentinel-2 Imagery in Python with Google Colab (Updated Nov 2023)
As you may be aware, the primary platform for accessing Sentinel images, https://scihub.copernicus.eu/, stopped operation in October 2023. A new portal with an updated API structure has been launched recently at https://dataspace.copernicus.eu/. Therefore, existing R and Python libraries will only work after receiving the necessary updates.
To facilitate the process, after registering on the new website, I will guide you through scripting in Python with the Google Colab platform to download Sentinel-2 images, perform the conversion from βjp2β files to GeoTIFF format, clip the images to your Area of Interest (AOI), and visualize the true color representation for both the top of the atmosphere and the surface reflectance product.
Table of Contents
- π Introduction
- π Sign up for βCopernicus Data Space Ecosystemβ
- π Install and Import the Libraries
- β³ Filter and Submit the Query
- π₯ Download the βjp2β files for the Surface Reflectance Product
- π₯ Download the βjp2β files for the Top of the Atmosphere (TOA)
- π οΈ Stack, Convert to Geotiff, and Clip it to AOI (Surface Reflectance)
- π οΈ Stack, Convert to Geotiff, and Clip it to AOI (TOA)
- π Plot the True Color of the TOA and Surface Reflectance Images