Creating Satellite tv for pc Picture Timelapses | by Milan Janosov | Mar, 2024


You’re downloading satellite tv for pc photographs from the brand new ESA Sentinel Hub API and merging them into animated gifs utilizing pure Python.

Some time in the past, I wrapped up the know-how of accumulating and getting ready satellite tv for pc imagery knowledge from the European Area Company’s Sentinel satellites in my article titled Deep Dive into ESA’s Sentinel API. Since then, ESA rolled out a serious replace unseen in years on the Sentinel Hub with updates API entry strategies. Therefore, I briefly overview the right way to get knowledge from the present API. As a further use-case, I additionally present the right way to merge the downloaded satellite tv for pc picture snapshots into animated gifs utilizing pure Python. This text goals to get you began and be onboard, with the chance to additional discover the API relying on particular use instances and knowledge units.

All photographs created by the writer.

First, you have to to put in the sentinelhub python library, which you are able to do in a Jupyter pocket book by operating the next cell:

import sys
!{sys.executable} -m pip set up sentinelhub --upgrade

Then, additionally, you will must sign up and create your entry tokens. You might learn in regards to the how-to right here and get your account up and operating in your Sentinel Hub Dashboard right here. The Dashboard additionally informs you about your knowledge utilization, together with the quantity of free credit you’ve got and the chance to improve to a premium plan. To that finish, you may additionally be considering studying in regards to the various kinds of knowledge layers the Sentinel Hub gives right here underneath the Data tab. Lengthy story brief — join the API, log into the Dashboard, hit Consumer Settings, and g for the OAuth consumer button.

Let’s config our pocket book:

from sentinelhub import SHConfig

client_secret = 'GEZixbNoqGcFYiFMNSLz74HrzN03rfvi'
client_id = '10e7a03e-5783-413f-a5ba-3e1a452ce742'

config = SHConfig(sh_client_id = client_id, sh_client_secret = client_secret)

Right here, I depend on sample codes constructed by the Sentinel workforce to point out you the right way to get imagery knowledge for varied areas. I attempt to make it fascinating by deciding on a couple of extra…

Leave a Reply

Your email address will not be published. Required fields are marked *