% MGD_DE2DG Conversion of MGD PSDs from de- to dg-base % % Analytical conversion of MGD PSDs. The conversion factors are taken from % Table 2 in Petty and Huang, JAS, [2011]. See that article also for a % description of the de and dg size descriptors. % % All input arguments can be scalars or tensor1 (as in e.g. *mgd_moment*). % That is, a number of PSDs can be convrted in one function call. % % See also *particle_de2dg*. This function can perform the same conversion % for an arbitrary PSD. % % FORMAT [n0,mu,la,ga] = mgd_de2dg(n0,mu,la,ga,a,b[,rho]) % % OUT n0 As input but valid for dg-based PSD. % mu As input but valid for dg-based PSD. % la As input but valid for dg-based PSD. % ga As input but valid for dg-based PSD. % IN n0 See *mgd_psd*. % mu See *mgd_psd*. % la See *mgd_psd*. % ga See *mgd_psd*. % a See *particle_de2dg*. % b See *particle_de2dg*. % OPT rho Reference density. Default is the density of water ice, % obtained as constants('DENSITY_OF_ICE'). % 2015-06-12 Created by Patrick Eriksson. function [n0,mu,la,ga] = mgd_de2dg(n0,mu,la,ga,a,b,varargin) % [rho] = optargs( varargin, { constants('DENSITY_OF_ICE') } ); [n0,mu,la,ga,a,b,rho] = scalars_vectors2same_size( n0, mu, la, ga, a, b, rho ); a0 = rho * pi / 6; n0 = ( b .* n0 .* (a./a0).^((mu+1)/3) ) / 3; mu = b .* ( mu + 1 )/3 - 1; la = la .* (a./a0)^(ga/3); ga = b .* ga / 3;