[Git][debian-gis-team/xarray-safe-s1][upstream] New upstream version 2024.05.06
    Antonio Valentino (@antonio.valentino) 
    gitlab at salsa.debian.org
       
    Fri May 10 09:28:03 BST 2024
    
    
  
Antonio Valentino pushed to branch upstream at Debian GIS Project / xarray-safe-s1
Commits:
8dda4370 by Antonio Valentino at 2024-05-10T08:17:12+00:00
New upstream version 2024.05.06
- - - - -
2 changed files:
- highleveltests/open_SLC_IW.py
- safe_s1/reader.py
Changes:
=====================================
highleveltests/open_SLC_IW.py
=====================================
@@ -1,3 +1,4 @@
+import pdb
 from safe_s1 import Sentinel1Reader, getconfig
 import time
 conf = getconfig.get_config()
@@ -11,3 +12,4 @@ dt = sub_reader.datatree
 print('out of the reader')
 print(dt)
 print('time to read the SAFE through S3: %1.2f sec'%elapse_t)
+pdb.set_trace()
=====================================
safe_s1/reader.py
=====================================
@@ -36,6 +36,9 @@ class Sentinel1Reader:
         self.short_name = ':'.join(name_parts)
         """Like name, but without path"""
         self.path = ':'.join(self.name.split(':')[1:-1])
+        # remove trailing slash in the safe path
+        if self.path[-1]=='/':
+            self.path = self.path.rstrip('/')
         """Dataset path"""
         self.safe = os.path.basename(self.path)
 
@@ -109,7 +112,7 @@ class Sentinel1Reader:
             assert self.dt==self.datatree
         else:
             print('multidataset')
-            raise Exception()
+            # raise Exception()
 
     def load_digital_number(self, resolution=None, chunks=None, resampling=rasterio.enums.Resampling.rms):
         """
@@ -519,7 +522,6 @@ class Sentinel1Reader:
                                                                describe=True)
         else :
             ds = xr.Dataset()
-            
         return ds
 
     @property
View it on GitLab: https://salsa.debian.org/debian-gis-team/xarray-safe-s1/-/commit/8dda4370ef875b3dae754a3503d25af525d3a2c4
-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/xarray-safe-s1/-/commit/8dda4370ef875b3dae754a3503d25af525d3a2c4
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240510/6780096f/attachment-0001.htm>
    
    
More information about the Pkg-grass-devel
mailing list