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

Can't open WV dataset #114

Closed rmarquarlops closed 1 year ago

rmarquarlops commented 1 year ago

xsar version '0.8.4.dev10+gdaa434a'

Description of expected behavior and the observed behavior When trying to open a WV file from 2019, I get AttributeError: type object 'Sentinel1Meta' has no attribute platform'

Code for reproduction

path = "SENTINEL1_DS:/home/datawork-cersat-public/cache/project/mpc-sentinel1/data/esa/sentinel-1a/L1/WV/S1A_WV_SLC__1S/2019/175/S1A_WV_SLC__1SSV_20190624T120411_20190624T122726_027821_03240A_68A5.SAFE:WV_015"
sar_meta = xsar.product_info(path)['meta'].iloc[0]
xsar.open_dataset(path)
rmarquarlops commented 1 year ago

I think that adding platform = None here might solve the issue (line 65 of sentinel1_meta.py) but I am not sure, maybe you can try that @agrouaze ?

image

agrouaze commented 1 year ago

Issue reproduced with additional line: cli = dask.distributed.Client() explanation: the s1meta is defined as BlockingActorProxy when using dask cluster and it needs all the attributes to be defined the class. adding platform = None indeed solve the issue.