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

Covariance tab crashes #59

Open
hvasbath opened this issue Jul 15, 2020 · 0 comments
Open

Covariance tab crashes #59

hvasbath opened this issue Jul 15, 2020 · 0 comments

Comments

@hvasbath
Copy link
Member

If the polygon mask is this large that it disables all the pixels that are being used for the covariance estimation. One needs to move the green box of covariance esitmation in advance.

One usually clicks the Mask before entering the Covariance tab.

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/spool/spool.py", line 174, in buildViews
    self.addView(v)
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/spool/spool.py", line 191, in addView
    view = view(self)
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/spool/tab_covariance.py", line 61, in __init__
    self.param_covariance = KiteParamCovariance(model)
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/spool/tab_covariance.py", line 791, in __init__
    **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/spool/base.py", line 484, in __init__
    self.updateValues()
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/spool/base.py", line 503, in updateValues
    value = getattr(model, param)
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/covariance.py", line 1024, in covariance_model_rms
    cov, d = self.getCovariance()
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/covariance.py", line 956, in getCovariance
    return self.covariance_spatial
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/util/__init__.py", line 142, in cache_return
    instance.__dict__[var_name] = func(instance)
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/covariance.py", line 906, in covariance_spatial
    noise_data = self.noise_data.ravel()
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/covariance.py", line 297, in noise_data
    self.noise_data = self.scene.displacement[slice_N, slice_E]
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/covariance.py", line 311, in noise_data
    data = derampMatrix(trimMatrix(data))
  File "/usr/local/lib/python3.6/dist-packages/kite-1.4.0-py3.6-linux-x86_64.egg/kite/util/__init__.py", line 99, in trimMatrix
    raise ValueError('Displacement is all NaN.')
ValueError: Displacement is all NaN.
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