The RADOLAN binary data file format is described in the RADOLAN
Kompositformat. The radolan composite files consists of an ascii header
containing all needed information to decode the following binary data
block. \(\omega radlib\) provides
wradlib.io.read_radolan_composite()
to read the data.

The function wradlib.io.parse_dwd_composite_header() takes care of
correctly decoding the ascii header. All available header information is
transferred into the metadata dictionary.

In the following example, the header information of four different
composites is extracted.

In [4]:

# load radolan filefilename='radolan/showcase/raa01-rx_10000-1408102050-dwd---bin.gz'rx_filename=wrl.util.get_wradlib_data_file(filename)filename='radolan/showcase/raa01-ex_10000-1408102050-dwd---bin.gz'ex_filename=wrl.util.get_wradlib_data_file(filename)filename='radolan/showcase/raa01-rw_10000-1408102050-dwd---bin.gz'rw_filename=wrl.util.get_wradlib_data_file(filename)filename='radolan/showcase/raa01-sf_10000-1408102050-dwd---bin.gz'sf_filename=wrl.util.get_wradlib_data_file(filename)rxdata,rxattrs=wrl.io.read_radolan_composite(rx_filename)exdata,exattrs=wrl.io.read_radolan_composite(ex_filename)rwdata,rwattrs=wrl.io.read_radolan_composite(rw_filename)sfdata,sfattrs=wrl.io.read_radolan_composite(sf_filename)# print the available attributesprint("RX Attributes:")forkey,valueinrxattrs.items():print(key+':',value)print("----------------------------------------------------------------")# print the available attributesprint("EX Attributes:")forkey,valueinexattrs.items():print(key+':',value)print("----------------------------------------------------------------")# print the available attributesprint("RW Attributes:")forkey,valueinrwattrs.items():print(key+':',value)print("----------------------------------------------------------------")# print the available attributesprint("SF Attributes:")forkey,valueinsfattrs.items():print(key+':',value)print("----------------------------------------------------------------")