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

Set DEM sampling in geodiff #242

Open
adehecq opened this issue Mar 8, 2019 · 2 comments
Open

Set DEM sampling in geodiff #242

adehecq opened this issue Mar 8, 2019 · 2 comments

Comments

@adehecq
Copy link
Contributor

adehecq commented Mar 8, 2019

geodiff generate the output on the same grid as the first DEM. Would it be possible to add an option to either generate the output in the same grid as the second DEM instead, or probably easier, switch the sign of the difference?
This way one could independently set the sign of the difference and the output resolution.

@oleg-alexandrov
Copy link
Member

This should be easy enough. In fact, we already do it that way when we diff between a dem and a csv in that tool. Regardless of the order they are passed in, one subtacts the csv from the dem as it is easy to interpolate that way, and then the sign is flipped if necessary. Hope to get to it soon.

For now you can specify the order in the reverse, and then use image_calc to flip the sign. It should hopefully work like this: image_calc input.tif -c "-VAR_0" -o output.tif but the doc has the exact syntax.

@adehecq
Copy link
Contributor Author

adehecq commented Mar 8, 2019

Great ! And I didn't know the image_calc tool, but I guess it's pretty similar to gdal_calc.

Two less important suggestions about geodiff that came to my mind as well:

  • enable to set the exact output file name with a .tif extension, rather than prefix (same way as dem_mosaic)
  • what interpolation method is used? And would it be possible to enable the user to set it?

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

2 participants