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

dx, dy can be uninitialised in index file #8

Open
nichannah opened this issue Oct 2, 2019 · 0 comments
Open

dx, dy can be uninitialised in index file #8

nichannah opened this issue Oct 2, 2019 · 0 comments

Comments

@nichannah
Copy link

I have found that dx, dy in the index file can be non-deterministic and sometimes incorrect in the index file. For example, here is the output from 2 consecutive runs:

dx = 0.000000e+00
dy = inf
dx = 0.000000e+00
dy = 3.193589e+04

I think the reason for this is that the the line https://github.com/openwfm/convert_geotiff/blob/master/read_geotiff.c#L65 can fail and since idx,dx and idx.dy are not initialised they take on random values. If these values are < 0 then everything is OK because there is code that catches this later on.

nichannah pushed a commit to nichannah/convert_geotiff that referenced this issue Oct 2, 2019
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