function [x_pol, y_pol] = read_hd5_samples(filename)
% READ_HD5_SAMPLES  returns all antenna samples from both polarisations
% from EDA2-data file
%   filename:   name of the .hdf5 data file
    data = h5read(filename,'/chan_/data');
    samples = double(data.real) + 1i*double(data.imag);
    x_pol = samples(1:2:end,:);
    y_pol = samples(2:2:end,:);
end

