Merge pull request #26 from finler/patch-1

This commit is contained in:
Kan.Dai 2023-01-11 21:16:44 +08:00 committed by GitHub
commit 95e3cb5948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1645,7 +1645,8 @@ def get_swan_radar(directory, filename=None, suffix="*.000", scale=[0.1, 0],
if byteArray == '':
print('There is no data ' + filename + ' in ' + directory)
return None
if filename.endswith(('.BZ2','.bz2')):
byteArray = bz2.decompress(byteArray)
# define head structure
head_dtype = [
('ZonName', 'S12'),