I have this file format ‘hd2107132355.scu’ from Radolan and I would like to convert it into a geotiff file.
So far, I could just read the file (see the output below) and extract the numpy array. Is it any possibility that I can convert this file into a raster file using wradlib?
h5_gen = wrl.io.read_generic_hdf5(h5_filename)
output:
{‘dataset_DXk/image’: {‘attrs’: {‘CLASS’: b’IMAGE’,
‘IMAGE_BACKGROUNDINDEX’: 0,
‘IMAGE_COLORMODEL’: b’RGB’,
‘IMAGE_MINMAXRANGE’: array([0, 0], dtype=uint8),
‘IMAGE_SUBCLASS’: b’BITMAP’,
‘IMAGE_VERSION’: b’1.2’,
‘PALETTE’: },
‘data’: array([[0., 0., 0., …, 0., 0., 0.],
[0., 0., 0., …, 0., 0., 0.],
[0., 0., 0., …, 0., 0., 0.],
…,
[0., 0., 0., …, 0., 0., 0.],
[0., 0., 0., …, 0., 0., 0.],
[0., 0., 0., …, 0., 0., 0.]], dtype=float32)},
‘dataset_DXk/what’: {‘attrs’: {‘corr_code’: b’INTT’,
‘corr_no’: 1,
‘corr_perc’: array([0], dtype=int32),
‘enddate [YYYYMMDD]’: b’20210713’,
‘endtime [HHmmss]’: b’235500’,
‘gain’: 0.1,
‘nodata’: -999.0,
‘ori_format’: b’RY’,
‘ori_name’: b’HD2107132355.scu’,
‘product’: b’COMP ‘,
‘quantity’: b’RATE ‘,
‘rad’: 427,
‘undetect’: -999.0}},
‘dataset_DXk/where’: {‘attrs’: {‘xsize’: 900, ‘ysize’: 900}},
‘how’: {‘attrs’: {‘WMO’: 10000,
‘adjustment’: 0.99099994,
‘maxlevel [dBZ]’: 9.69,
‘minlevel [dBZ]’: 0.01,
‘nodes’: b’asb,boo,ros,hnr,umd,pro,ess,fld,drs,neu,nhb,oft,eis,tur,isn,fbg,mem’,
‘nodesn’: 17,
‘place’: b’dwd’,
‘wavelength [cm]’: 5.0,
‘zr_a’: 256.0,
‘zr_b’: 1.42}},
‘what’: {‘attrs’: {‘date [YYYYMMDD]’: b’20210713’,
‘object’: b’COMP ‘,
‘sets’: 1,
‘time [HHmmss]’: b’235500’,
‘version [H5Vol 0.2]’: b’SCP 5.2.4.13 ATDZ '}},
‘where’: {‘attrs’: {‘LL_lat [deg]’: 46.9526,
‘LL_lon [deg]’: 3.5889,
‘UL_ipixel’: 3072,
‘UL_jpixel’: 6068,
‘UR_lat [deg]’: 54.7405,
‘UR_lon [deg]’: 15.7208,
‘lat [deg]’: 51.0,
‘lon [deg]’: 9.0,
‘start_lat [deg]’: 6068.895,
‘start_lon [deg]’: 3072.5002,
‘xscale [m]’: 950.0,
‘xsize’: 900,
‘yscale [m]’: 950.0,
‘ysize’: 900}}}