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

Error: mprod not finite #47

Closed
lionlai1989 opened this issue Apr 15, 2020 · 1 comment
Closed

Error: mprod not finite #47

lionlai1989 opened this issue Apr 15, 2020 · 1 comment

Comments

@lionlai1989
Copy link
Contributor

I run my Pleiades stereo images with s2p but encountered the following error.
FAIL("/usr/bin/python3 /home/ubuntu/.local/bin/s2p tmp.json"): mprod A not finite 1 1
FAIL("/usr/bin/python3 /home/ubuntu/.local/bin/s2p tmp.json"): mprod B not finite 2 2

I reckon this error is probably the same as this.

if (!isfinite(a[i][k]))  
	fail("mprod A not finite %d %d", i, k);  
if (!isfinite(b[k][j]))
	fail("mprod B not finite %d %d", k, j);

I actually kind of worked around this error by doing the following.

if (!isfinite(a[i][k]))
        a[i][k] = 0;
        //fail("mprod A not finite %d %d", i, k);
if (!isfinite(b[k][j]))
        b[k][j] = 0;
        //fail("mprod B not finite %d %d", k, j);

And the result looks kind of nice for me. But I don't know what I was doing, I just want to eliminate the error and generated an plausible result.

@carlodef
Copy link
Member

Hi @lionlai1989, thanks for reporting this issue. Could you please share the content of your input file tmp.json and the full error stack?

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