Skip to main content

Hello!

I am trying to download images from Landsat 5 for the year 2007. I get



500 Server Error: Internal Server Error



I am using DataCollection.LANDSAT45_L2


Below is the code that I am using:


from sentinelhub import SHConfig
from sentinelhub import WcsRequest, MimeType, CRS, BBox, DataCollection

config = SHConfig()
config.instance_id = INSTANCE_ID
config.sh_client_id = CLIENT_ID
config.sh_client_secret = CLIENT_SECRET

betsiboka_coords_wgs84 = [46.16, -16.15, 46.51, -15.58]
betsiboka_bbox = BBox(bbox=betsiboka_coords_wgs84, crs=CRS.WGS84)

wcs_true_color_request = WcsRequest(
data_collection=DataCollection.LANDSAT45_L2,
layer='TRUE-COLOR',
bbox=betsiboka_bbox,
image_format=MimeType.TIFF,
time=['2007-10-01', '2007-12-30'],
resx='30m',
resy='30m',
config=config
)

sentinelhub.version prints 3.3.1


Any tip or guidance would be much appreciated!

Hi,

note that the support for OGC requests in sentienlhub-py is deprecated and it is likely it would not work for recently added data collections (such as Landsat 4-5). I suggest you try requesting Landsat data with Process API, some examples are available here: Sentinel Hub Process API — Sentinel Hub 3.3.1 documentation


Reply