Modify the resampling method in load #103
-
Hi, Is there a way to replace the resampling method, which is nearest, to bilinear (for example) in the load function ? Actually when i use the function : By doing this, i'm getting this error : My first idea is to reach out your function in your code and modify it, but it's not really "clean", and i would have to reproduce it at each update of eoreader. Do you have an idea ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
Hi Bastien, Are you sure the resampling method is set to nearest by default ? For the moment I am managing this by forcing a method (so I should document it) but the philosophy is:
|
Beta Was this translation helpful? Give feedback.
-
In EOReader 0.21.10, some flexibility has been added to resampling:
os.environ["EOREADER_BAND_RESAMPLING"] = str(Resampling.nearest)
prod.load(RED, window=window_path, pixel_size=60, resampling=Resampling.nearest) You can see the test function here: eoreader/ci/on_push/test_others.py Line 427 in ce6ad4b |
Beta Was this translation helpful? Give feedback.
In fact, I like those conversations because it always offers another perspective to my work and to other usecases 😉
I created an issue related to this rounding topic, don't hesitate to write a comment in it. (#105)
I won't do anything about that right now, even if I think this should be done (the reprojection shouldn't have values with another precision than the initial one!)