Hi ,
I’m new to the Sentinel on AWS ,and I was wondering ,is it possible to download a bbox from AWS ,or I have to download a complete tile?
Can I set some sort of evalscript?
Thanks
Example of a bbox from the “regular” API I am trying to download:
evalscript = “”"
//VERSION=3
// displays VV in decibels from -20 to 0
// the following is simplified below
// var log = 10 * Math.log(VV) / Math.LN10;
// var val = Math.max(0, (log + 20) / 20);
return [Math.max(0, Math.log(VV) * 0.21714724095 + 1), dataMask];
“”"
bbox = BBox(bbox=[ 36,42,36.218004,42.14], crs=CRS.WGS84)
request = SentinelHubRequest(
evalscript=evalscript,
input_data=[
SentinelHubRequest.input_data(
data_collection=DataCollection.SENTINEL1_IW,
time_interval=(‘2024-01-01’, ‘2024-02-01’),
),
],
responses=[
SentinelHubRequest.output_response(‘default’, MimeType.TIFF),
],
bbox=bbox,
size=[512, 598.193],
config=config
)
response = request.get_data()