Skip to main content

Am currently using sentinal-hub python API and would like to know how to download multi-band images(>4) with a single request. The file formats supported: ‘png’, ‘json’, ‘jpeg’, 'tiff all allow 3-4 channels. How can this be done?


The current request being made is:



request_true_color = SentinelHubRequest(
evalscript=evalscript_true_color,
input_data=
SentinelHubRequest.input_data(
data_collection=DataCollection.SENTINEL2_L1C,
time_interval=('2020-06-12', '2020-06-13'),
)
],
responses=
SentinelHubRequest.output_response('default', MimeType.PNG)
],
bbox=betsiboka_bbox,
size=betsiboka_size,
config=config
)

Thank you!

Hi,

the TIFF format supports > 4 channels. The reason you are only getting 3 color channels is probably due to the evalscript_true_color, which judging by its name only produces the RGB values.


It is probably easiest if you take a look at Example 3 in the notebook on our repo.


Thank you. Was looking for this.


Reply