At a 100 resolution the BBox [-115.0, 35.0, -114.0, 37.0] downloads ok (shape (2, 2242, 844, 13)).
If I change resolution to 500 or 1000 I get an error saying the box is too large.
Making the box much smaller [-114.75, 36.25, -114.0, 36.5] doesn’t seem to help- the resolution at 500 (or 1000) seems to cause a problem.
It’s possible I am mistaken, but shouldn’t the new 5x (i.e 500) resolution result in a new box that has 1/5 of the rows/columns, of the 100 resolution shape box ?
import time
import numpy as np
import pickle
import geopandas
from eolearn.io import SentinelHubInputTask
from sentinelhub import CRS, BBox, DataSource
from eolearn.io import SentinelHubInputTask
from eolearn.core import SaveToDisk, FeatureType, OverwritePermission, LinearWorkflow
layer = ‘BANDS-S2-L1C’
save = SaveToDisk(‘mojave’, overwrite_permission=2, compress_level=1)
input_task = SentinelHubInputTask(
resolution=500,
bands_feature=(FeatureType.DATA, ‘bands’),
additional_data=[(FeatureType.MASK, ‘dataMask’)],
time_difference=datetime.timedelta(minutes=120),
data_source=DataSource.SENTINEL2_L1C,
max_threads=10,
)
bb_1 = BBox(bbox=[-115.0, 35.0, -114.0, 37.0],crs=CRS.WGS84)
#bb_1 = BBox(bbox=[-114.75, 36.25, -114.0, 36.5],crs=CRS.WGS84)
workflow = LinearWorkflow(input_task, save)
result_bb1 = workflow.execute({input_task: {‘bbox’: bb_1, ‘time_interval’: time_i},
save: {‘eopatch_folder’: ‘/deepdata/moj’}})
eopatch_nev = result_bb1[save]
This is the error when I change resolution of box that downloads at 100 but not 500:
DownloadFailedException: During execution of task SentinelHubInputTask: Failed to download from:
https://services.sentinel-hub.com/api/v1/process
with HTTPError:
400 Client Error: Bad Request for url: https://services.sentinel-hub.com/api/v1/process
Server response: “{“error”:{“status”:400,“reason”:“Bad Request”,“message”:“The bounding box area is too large! Please zoom in.”,“code”:“RENDERER_EXCEPTION”}}”
Many thanks;-)