Closed agrouaze closed 6 months ago
@vincelhx 2 questions:
xsar
source code the swaths
dataset is defined in the datatree, is there a piece of code missing?swaths
dataset aimaing at giving information on the swath merging, is only relevant for GRD product?I found explanation for point 1.: https://github.com/umr-lops/xarray-safe-s1/blob/2fc774caf1281e4e402b675b273f046fb087720b/safe_s1/reader.py#L106 and https://github.com/umr-lops/xarray-safe-s1/blob/2fc774caf1281e4e402b675b273f046fb087720b/safe_s1/reader.py#L515
For is means that dataset['swath_merging']
is supposed to be present only for GRD. This security was not added in xsar
so far.
The reason of the bug is now understood,GRD SAFE path given with a trailing slash leads to self.product='XXX'
then swath_merging
dataset is an empty xarray.Dataset
.
issue appers with the compilation of the notebook
examples/xsar_tops_slc.ipynb
traceback