Closed dpabon closed 6 days ago
Hi @dpabon , sorry for responding only now - it's holiday time.
You can specify them like so:
dataset_majadas = store.open_data(..., downsampling="BILINEAR", upsampling="BICUBIC")
This is how you can inspect the available open parameters for the "sentinelhub" data store using the "S2L2A" dataset:
Nore, you cannot change the default sampling methods, they are hardcoded in the "sentinelhub" data store of the xcube-sh plugin.
Hi @forman No worries. Thanks for the help!
I'm confused with the last part of your reply:
'Note, you cannot change the default sampling methods, they are hardcoded in the "sentinelhub" data store of the xcube-sh plugin.'
Does this mean that even if I do, downsampling="BILINEAR", upsampling="BICUBIC"
"NEAREST"
will be applied?
Or that it is only possible to select between "NEAREST", "BILINEAR", "BICUBIC"
?
Thanks for your time.
Best, Daniel
Hi Daniel,
I was referring to default values only. Default values are used if you do not provide values for downsampling
and upsampling
explicitly.
Does this mean that even if I do, downsampling="BILINEAR", upsampling="BICUBIC" "NEAREST" will be applied?
No. Your settings will be used.
Hi, This is a question more than an issue... I would like to change the default method used by store.open_data() from 'NEAREST' to 'bilinear'. I'm not sure how to change this in the following code:
when I check the metadata of dataset_majadas I got:
Thanks in advance for your help. Cheers, Daniel