Update retrieve_cassandraDB.py
有的省份swan数据使用bz2压缩,需要先解压
This commit is contained in:
parent
f4500f167f
commit
497dc75184
@ -1626,7 +1626,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') or filename.endswith('.bz2'):
|
||||
byteArray = bz2.decompress(byteArray)
|
||||
# define head structure
|
||||
head_dtype = [
|
||||
('ZonName', 'S12'),
|
||||
|
Loading…
Reference in New Issue
Block a user