The open Earth observation (EO) data are accesible via the Copernicus and Landsat programs which large resource for many EO applications, including ocean and land use and land cover monitoring, disaster control, emergency services and humanitarian relief. Given the large amount of high spatial resolution data at high revisit frequency, techniques able to automatically extract complex patterns in such spatio-temporal data are required.
eo-learn is a collection of open source Python packages that have been developed to seamlessly access and process spatio-temporal image sequences acquired by any satellite fleet in a timely and automatic manner. eo-learn is easy to use, it’s design modular, and encourages collaboration – sharing and reusing of specific tasks in a typical EO-value-extraction workflows, such as cloud masking, image co-registration, feature extraction, classification, etc. (info. adopted eo-learn Docs)
eo-learn library acts as a bridge between Earth observation/Remote sensing field and Python ecosystem for data science and machine learning. The library is written in Python and uses NumPy arrays to store and handle remote sensing data. Its aim is to make entry easier for non-experts to the field of remote sensing on one hand and bring the state-of-the-art tools for computer vision, machine learning, and deep learning existing in Python ecosystem to remote sensing experts.(info. adopted eo-learn Docs)
In this post, I would like to use retrieve the time series Sentinel-2 Level-2A for the area in the south of Finland. For this purpose, you need to have an Sentinel Hub account. It is required to create a new configuration (“Add new configuration”) and set the configuration to be based on Python scripts template. After you have prepared a configuration please put configuration’s instance ID into sentinelhub package’s configuration file following the configuration instructions. For Processing API request you also need to obtain and set your oauth client id and secret.
Set up the Configuration
Import the Required Libraries
Set up the Path to Read & Write data
Read the Area of Interest & Visualize it
Fig. 1: The AOI in the south of Finland
Change the Projection from WGS84 to UTM
Split to Smaller Tiles
A 3x3 EOPatch sample, where each EOPatch has around 3.30 x 3.30 km (~300 MB per EOPatch), is presented.
Create the splitter to obtain a list of bboxes
Save & Plot the Created Grids (Patches)
Fig. 1: Created grids (patches) of the AOI
Choose a 3x3 area
Finding the Centeral Patch
Select 9 patches & save them to disk
Visualize the selected patches
Fig. 1: selected 3 * 3 patches (red)
Define WorkFlow Tasks
Read 6 bands of S2L2A with 10% cloud coverage from Sentinel HUB
Define & Execute the Workflow
Select the Median image between time series data
Fig. 1: Visualization selected image for each patch