pygmtsar
pygmtsar copied to clipboard
[Help]: sbas.compute_align() failed in extent_ra = self.get_extent_ra()
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.
So I am wondering do you have any idea what the problem is here? Thanks in advance