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

[Help]: sbas.compute_align() failed in extent_ra = self.get_extent_ra() #166

Open
jie666-6 opened this issue Aug 30, 2024 · 1 comment
Open

Comments

@jie666-6
Copy link

jie666-6 commented Aug 30, 2024

The processing was ok but after I change the study site, I got error in sbas.compute_align() as below

*** pandas.errors.InvalidIndexError: Reindexing only valid with uniquely valued Index objects

I went back to check each step, it seems that the error showing up here in Stack_align.py

        # DEM extent in radar coordinates, merged reference PRM required
        extent_ra = self.get_extent_ra()

Then I went to Stack_dem.py for get_extent_ra() function, the error shows when it arrives
geom = self.geocode(LineString(np.column_stack([df.lon, df.lat])))

LineString(np.column_stack([df.lon, df.lat])) works well but when it goes to self.geocode(), such pandas.errors.InvalidIndexError: shows up

I check the DEM and S1 data, it seems that S1 data and DEM are both correct.
image

So I am wondering do you have any idea what the problem is here? Thanks in advance

@AlexeyPechnikov
Copy link
Owner

It could be related to issues like incorrect dependencies, such as having numpy>=2.0 installed, or problems with the DEM coordinates being repeated or uneven. Does it work for you in the PyGMTSAR Docker container or on Google Colab?

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