Closed jovanovski closed 6 months ago
Hi @jovanovski
i agree that it is often a bit messy to add specific filters. But you approach with other_args
should work. The code joins the two dictionaries, and since you want "constellation": "LANDSAT"
to be in the "dataFilter"
you can do this:
input_data=[
SentinelHubRequest.input_data(
data_collection=DataCollection.HARMONIZED_LANDSAT_SENTINEL,
time_interval=("2020-06-12", "2020-06-30"),
other_args={"dataFilter": {"constellation": "LANDSAT"}}
)
]
I was able to get an image with the above. If the issues remain we can try and resolve them.
Ah, yes, you're right @zigaLuksic! Thank you for the hint!
Describe the bug
The
constellation
data filter needed for HLS requests can't be added. If added to theother_args
dict, it's being put outside thedata_filters
object, hence not used.To Reproduce
Steps to reproduce the behavior:
ThermalInfrared1
band from HLSconstellation
filterExpected behavior
To be able to add this filter
Desktop (please complete the following information):
Additional context
Here is the request and you can see how
other_args
adds the value outside ofdata_filters
If I manually edit the library and force it inside the data filters, the request works.