s2let_mw2hpx Converts MW map into Healpix map Default usage : f_hpx = s2let_hpx2mw(f_mw, <options>) f is the input map -- MW sampling, f is the output map -- Healpix sampling. Option : 'L' = { Harmonic band-limit; L > 1 (default=guessed) }
0001 function f_hpx = s2let_mw2hpx(f, nside, varargin) 0002 0003 % s2let_mw2hpx 0004 % Converts MW map into Healpix map 0005 % 0006 % Default usage : 0007 % 0008 % f_hpx = s2let_hpx2mw(f_mw, <options>) 0009 % 0010 % f is the input map -- MW sampling, 0011 % f is the output map -- Healpix sampling. 0012 % 0013 % Option : 0014 % 'L' = { Harmonic band-limit; L > 1 (default=guessed) } 0015 0016 % S2LET package to perform Wavelets transform on the Sphere. 0017 % Copyright (C) 2012-2015 Boris Leistedt & Jason McEwen 0018 % See LICENSE.txt for license details 0019 0020 sz = size(f); 0021 Lguessed = min([sz(1) sz(2)]); 0022 0023 p = inputParser; 0024 p.addRequired('f', @isnumeric); 0025 p.addParamValue('L', Lguessed, @isnumeric); 0026 p.parse(f, varargin{:}); 0027 args = p.Results; 0028 0029 [flm] = ssht_forward(f, args.L, 'Reality', true); 0030 f_hpx = s2let_hpx_alm2map(flm, nside, 'L', args.L); 0031 0032 end