[ad_1]
You might be downloading satellite tv for pc photographs from the brand new ESA Sentinel Hub API and merging them into animated gifs utilizing pure Python.
![Milan Janosov](https://miro.medium.com/v2/resize:fill:88:88/1*j-_N3y1dPf76qGpbUNp6mA.jpeg)
![Towards Data Science](https://miro.medium.com/v2/resize:fill:48:48/1*CJe3891yB1A1mzMdqemkdg.jpeg)
Some time in the past, I wrapped up the know-how of gathering and making 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 significant replace unseen in years on the Sentinel Hub with updates API entry strategies. Therefore, I briefly overview methods to get knowledge from the present API. As an extra use-case, I additionally present methods 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 likelihood to additional discover the API relying on particular use circumstances and knowledge units.
All photographs created by the creator.
First, you will want to put in the sentinelhub python library, which you are able to do in a Jupyter pocket book by working the next cell:
import sys!{sys.executable} -m pip set up sentinelhub –upgrade
Then, additionally, you will want to enroll and create your entry tokens. You could learn concerning the how-to right here and get your account up and working 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 likelihood to improve to a premium plan. To that finish, you might also be taken with studying concerning the several types of knowledge layers the Sentinel Hub offers right here beneath the Information tab. Lengthy story quick — join the API, log into the Dashboard, hit Consumer Settings, and g for the OAuth shopper 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 pattern codes constructed by the Sentinel staff to indicate you methods to get imagery knowledge for numerous areas. I attempt to make it attention-grabbing by choosing just a few extra…
[ad_2]
Source link