Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify gdal_translate re-sampling algorithm? #25

Open
mpadge opened this issue Dec 10, 2018 · 0 comments
Open

Specify gdal_translate re-sampling algorithm? #25

mpadge opened this issue Dec 10, 2018 · 0 comments

Comments

@mpadge
Copy link

mpadge commented Dec 10, 2018

Thanks for the great work @Jorl17! I've noted in your code here that you use default arguments for gdal_translate, including the -r flag which specifies the re-sampling algorithm. The default when not otherwise specified is "nearest", but would be more appropriately specified as one of the non-default options like cubicspline to ensure some form of interpolation is applied. It's just a simple matter of adding an extra line to your code of:

gdal_translate -q \
  -r cubicspline \
  -projwin ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant