You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File /usr/local/lib/python3.11/site-packages/sarpy/io/init.py:30, in open(file_name)
27 from .general.base import SarpyIOError
29 try:
---> 30 return open_complex(file_name)
31 except SarpyIOError:
32 pass
File /usr/local/lib/python3.11/site-packages/sarpy/io/complex/converter.py:106, in open_complex(file_name)
104 # see if we can find a reader though trial and error
105 for opener in _openers:
--> 106 reader = opener(file_name)
107 if reader is not None:
108 return reader
File /usr/local/lib/python3.11/site-packages/sarpy/io/complex/sentinel.py:1138, in is_a(file_name)
1136 sentinel_details = SentinelDetails(file_name)
1137 logger.info('Path {} is determined to be or contain a Sentinel-1 manifest.safe file.'.format(file_name))
-> 1138 return SentinelReader(sentinel_details)
1139 except (SarpyIOError, AttributeError, SyntaxError, ElementTree.ParseError):
1140 return None
File /usr/local/lib/python3.11/site-packages/sarpy/io/complex/sentinel.py:1059, in SentinelReader.init(self, sentinel_details)
1057 parent_segments = []
1058 segments = []
-> 1059 sicd_collection = self._sentinel_details.get_sicd_collection()
1060 sicd_collection_out = []
1061 for data_file, sicds in sicd_collection:
File /usr/local/lib/python3.11/site-packages/sarpy/io/complex/sentinel.py:1023, in SentinelDetails.get_sicd_collection(self)
1021 self._refine_using_calibration(entry['calibration'], sicds)
1022 # refine our sicd(s) using the noise data (if sensible)
-> 1023 self._refine_using_noise(entry['noise'], sicds)
1024 # populate our derived fields for the sicds
1025 self._derive(sicds)
File /usr/local/lib/python3.11/site-packages/sarpy/io/complex/sentinel.py:987, in SentinelDetails._refine_using_noise(self, noise_file_name, sicds)
985 range_line, range_pixel, range_noise = extract_vector('noiseRange')
986 azimuth_line, azimuth_pixel, azimuth_noise = extract_vector('noiseAzimuth')
--> 987 azimuth_line = numpy.concatenate(azimuth_line, axis=0)
989 # NB: range_line is actually a list of 1 element arrays - probably should have been parsed better
990 range_line = numpy.concatenate(range_line, axis=0)
ValueError: need at least one array to concatenate
The text was updated successfully, but these errors were encountered:
Opening a Sentinel-1 Stripmap acquisition returns an error using sarpy version 1.3.59.
The problem is that azimuth_line is an empty list [], and numpy fails to concatenate.
Here is the traceback:
In [1]: import sarpy.io
In [2]: sarpy.io.open('/sentinel-1-data/s1_nrb/SM/input_data/S1B_S3_SLC__1SSV_20210607T070345_20210607T070410_027247_03412B_569D.SAFE')
ValueError Traceback (most recent call last)
Cell In[2], line 1
----> 1 sarpy.io.open('/sentinel-1-data/s1_nrb/SM/input_data/S1B_S3_SLC__1SSV_20210607T070345_20210607T070410_027247_03412B_569D.SAFE')
File /usr/local/lib/python3.11/site-packages/sarpy/io/init.py:30, in open(file_name)
27 from .general.base import SarpyIOError
29 try:
---> 30 return open_complex(file_name)
31 except SarpyIOError:
32 pass
File /usr/local/lib/python3.11/site-packages/sarpy/io/complex/converter.py:106, in open_complex(file_name)
104 # see if we can find a reader though trial and error
105 for opener in _openers:
--> 106 reader = opener(file_name)
107 if reader is not None:
108 return reader
File /usr/local/lib/python3.11/site-packages/sarpy/io/complex/sentinel.py:1138, in is_a(file_name)
1136 sentinel_details = SentinelDetails(file_name)
1137 logger.info('Path {} is determined to be or contain a Sentinel-1 manifest.safe file.'.format(file_name))
-> 1138 return SentinelReader(sentinel_details)
1139 except (SarpyIOError, AttributeError, SyntaxError, ElementTree.ParseError):
1140 return None
File /usr/local/lib/python3.11/site-packages/sarpy/io/complex/sentinel.py:1059, in SentinelReader.init(self, sentinel_details)
1057 parent_segments = []
1058 segments = []
-> 1059 sicd_collection = self._sentinel_details.get_sicd_collection()
1060 sicd_collection_out = []
1061 for data_file, sicds in sicd_collection:
File /usr/local/lib/python3.11/site-packages/sarpy/io/complex/sentinel.py:1023, in SentinelDetails.get_sicd_collection(self)
1021 self._refine_using_calibration(entry['calibration'], sicds)
1022 # refine our sicd(s) using the noise data (if sensible)
-> 1023 self._refine_using_noise(entry['noise'], sicds)
1024 # populate our derived fields for the sicds
1025 self._derive(sicds)
File /usr/local/lib/python3.11/site-packages/sarpy/io/complex/sentinel.py:987, in SentinelDetails._refine_using_noise(self, noise_file_name, sicds)
985 range_line, range_pixel, range_noise = extract_vector('noiseRange')
986 azimuth_line, azimuth_pixel, azimuth_noise = extract_vector('noiseAzimuth')
--> 987 azimuth_line = numpy.concatenate(azimuth_line, axis=0)
989 # NB: range_line is actually a list of 1 element arrays - probably should have been parsed better
990 range_line = numpy.concatenate(range_line, axis=0)
ValueError: need at least one array to concatenate
The text was updated successfully, but these errors were encountered: