Exporting geometry form Sentinel 1 data using -S1 TOPS SPLIT Analyzer (STSA)

96 views Asked by At

Im looking to export geometry from Sentinel 1 SLC product. Im using S1 TOPS SPLIT Analyzer (STSA) which is documented here.

Everything seems to work up to the export part. My code as per example in documentation:

import stsa

s1 = stsa.TopsSplitAnalyzer(target_subswaths=['iw1', 'iw2', 'iw3'], polarization='vh')

# METHOD 2: Load using Copernicus Scihub API
s1.load_api(
    'myusername',
    'S1A_IW_SLC__1SDV_20210627T043102_20210627T043130_038521_048BB9_DA44',
    'mypassword'
)

But when I try to export geometry either shapfile, geojson or csv with:

s1.to_json('json_output.json')

I get an error: enter image description here

I would love to know how to solve this issue. Any help appreciated.

1

There are 1 answers

0
Benas Pekarskis On

I thought Ill share my findings. I believe the error is related to shapely version. I have updated my shapely to 1.8.1.post1 and everything seem to work fine. Related post from SNAP Forum.

If anyone have better explanation, please feel free to share.