umr-lops / xsar

Synthetic Aperture Radar (SAR) Level-1 GRD python mapper for efficient xarray/dask based processing
https://cyclobs.ifremer.fr/static/sarwing_datarmor/xsar/
MIT License
24 stars 8 forks source link

decoding Doppler Estimate crashing for a GRD IW product #119

Closed agrouaze closed 1 year ago

agrouaze commented 1 year ago

product /home/datawork-cersat-public/project/mpc-sentinel1/data/esa/sentinel-1a/L1/IW/S1A_IW_GRDH_1S/2021/001/S1A_IW_GRDH_1SDV_20210101T213015_20210101T213040_035950_043604_0184.SAFE seems to have duplicate values in azimuthTime Doppler annotations. When trying to do a xsar.open_dataset() it crashed:

...
649 ds['geometryDcPolynomial'] = xr.DataArray([Polynomial(p) for p in dc_geoDcPoly], dims=['azimuthTime'],attrs={'source':xpath_mappings['annotation']['dc_geoDcPoly'][1]})
...
ValueError: cannot reindex or align along dimension 'azimuthTime' because the (pandas) index has duplicate values