Reading RY files in .bz2 format

Hello Everyone! I am trying to read RY product files using the following code, but I have been encountering with the error. My question is ‘Is wradlib library supports for RY product files with .bz2 format?’ or do I need to do any preprocessing to make it as normal .bin file ?


import wradlib as wrl

# load radolan files
rw_filename = wrl.util.get_wradlib_data_file(
rrwdata, rwattrs =
# print the available attributes
print("RW Attributes:", rwattrs)


UnicodeDecodeError                        Traceback (most recent call last)
<ipython-input-30-fa4ed02dc0cd> in <cell line: 5>()
      3     "/content/raa01-ry_10000-2301010000-dwd---bin.bz2"
      4 )
----> 5 rrwdata, rwattrs =
      6 # print the available attributes
      7 print("RW Attributes:", rwattrs)

4 frames
/usr/local/lib/python3.9/dist-packages/wradlib/io/ in read_radolan_header(fid)
    715         if mychar == b"\x03":
    716             break
--> 717         header += str(mychar.decode())
    718     return header

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 0: unexpected end of data

Can someone please help me to resolve this issue?

Sorry, @karnatishiva786,

Your question fell through the cracks.

.bz2 is a compressed format (bzip2). It can be decompressed using standard compression/decompression tools. Then it can be read just fine.