s2let_mw_read_real_map Read an MW real map from a FITS file Default usage : [mwmaparr, L]= s2let_mw_read_real_map(file) file the name of the input FITS file, mwmaparr the output signal read from the file, L its resolution. S2LET package to perform Wavelets transform on the Sphere. Copyright (C) 2012-2015 Boris Leistedt & Jason McEwen See LICENSE.txt for license details
0001 function [mwmaparr, L]= s2let_mw_read_real_map(file) 0002 0003 % s2let_mw_read_real_map 0004 % Read an MW real map from a FITS file 0005 % Default usage : 0006 % 0007 % [mwmaparr, L]= s2let_mw_read_real_map(file) 0008 % 0009 % file the name of the input FITS file, 0010 % mwmaparr the output signal read from the file, 0011 % L its resolution. 0012 % 0013 % S2LET package to perform Wavelets transform on the Sphere. 0014 % Copyright (C) 2012-2015 Boris Leistedt & Jason McEwen 0015 % See LICENSE.txt for license details 0016 0017 datacell = fitsread(file,'binarytable'); 0018 data = datacell{1}; 0019 sz = size(data); 0020 0021 mwmap = []; 0022 for col = 1:sz(1) 0023 mwmap = [mwmap data(col,:)]; 0024 end 0025 0026 mwmaparr = s2let_mw_vec2arr(mwmap); 0027 sz = size(mwmaparr); 0028 L = sz(1); 0029 0030 end