Aufgrund einer Wartung wird GitLab am 29.10. zwischen 9:00 und 10:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 29.10. between 9:00 and 10:00 am.

ita_generateSampling_equiangular.m 954 Bytes
Newer Older
1
function samplingCoords = ita_generateSampling_equiangular(az,el)
2 3 4 5 6 7 8 9 10 11 12 13

% equiangular sampling in MF style
%
%   az: azimuth angle step or phi angles (both in degrees)
%   el: elevation angle step or theta angles (both in degrees)
%
%   Examples:
%       s = ita_generateSampling_equiangular(5,5)
%                % 5/5 sampling
%       s = ita_generateSampling_equiangular(0:5:355,0:5:180)
%                % as above, long syntax

14 15 16 17 18
% <ITA-Toolbox>
% This file is part of the ITA-Toolbox. Some rights reserved. 
% You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder. 
% </ITA-Toolbox>

19 20 21 22 23 24 25 26

if numel(az) == 1 && numel(el) == 1
    az = 0:az:(360-0.1);
    el = 0:el:180;
end 

[AZ,EL] = meshgrid(az,el);

27 28 29 30 31 32 33
samplingCoords = itaCoordinates(numel(AZ));
samplingCoords.r = 1;
samplingCoords.theta = EL(:) *pi/180;
samplingCoords.phi = AZ(:) *pi/180;


samplingCoords.weights = ita_spherical_weights_equiangular(samplingCoords);