29
loading...
This website collects cookies to deliver better user experience
Introduction:
In this tutorial we’ll be showing you how to order your first Landsat 8 satellite imagery for free using our API and Python.
The Arlula API allows users to query databases of satellite imagery from vendors around the world. This powerful tool allows users to search and compare the quality of global image datasets and order them at scale. The Arlula API is a new way in which people from around the world can access timely satellite imagery and create their own data streams from space!
The Arlula archive Python package makes it easy to access all of the API functionality without having to do any of the hard work!
What you’ll need:
Access to the Arlula API account
Open source
import arlulaapi
arlula_session = arlulaapi.ArlulaSession(yourkey, yoursecret)
import arlulaapi
arlula_session = arlulaapi.ArlulaSession(yourkey, yoursecret)
search_result = arlula_session.search(
start="2019-01-03",
end="2019-04-13",
res="low",
lat=-33.8523,
long=151.2108
)
print(search_result[0].thumbnail)
for result in search_result:
if result.supplier=='landsat' and result.cloud < 5:
eula=result.eula
id=result.id
break
order = arlula_session.order(
id=id,
eula=eula,
seats=1,
trim=False,
webhooks=[],
emails=[]
)
print(order)
for resource in order.resources:
if resource.name.endswith("large.jpg"):
resourceid = resource.id
break
arlula_session.get_resource(
id=resourceid,
filepath='demo.jpg'
)
orderid = order.id
arlula_session.get_order_resources(
id=orderid,
folder='demo'
)
import arlulaapi
arlula_session = arlulaapi.ArlulaSession(yourkey, yoursecret)
search_result = arlula_session.search(
start="2019-01-03",
end="2019-04-13",
res="low",
lat=-33.8523,
long=151.2108
)
for result in search_result:
if result.supplier=='landsat' and result.cloud < 5:
eula=result.eula
id=result.id
break
order = arlula_session.order(
id=id,
eula=eula,
seats=1,
trim=False,
webhooks=[],
emails=[]
)
for resource in order.resources:
if resource.name.endswith("large.jpg"):
resourceid = resource.id
break
arlula_session.get_resource(
id=resourceid,
filepath='demo.jpg'
)
orderid = order.id
arlula_session.get_order_resources(
id=orderid,
folder='demo'
)