s2let_hpx_read_real_map Read an MW real map from a FITS file Default usage : [healpixmap, L]= s2let_hpx_read_real_map(file) file the name of the input FITS file, healpixmap the output signal read from the file, nside 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 [healpixmap, nside]= s2let_hpx_read_real_map(file) 0002 0003 % s2let_hpx_read_real_map 0004 % Read an MW real map from a FITS file 0005 % Default usage : 0006 % 0007 % [healpixmap, L]= s2let_hpx_read_real_map(file) 0008 % 0009 % file the name of the input FITS file, 0010 % healpixmap the output signal read from the file, 0011 % nside 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 healpixmap = []; 0022 for col = 1:sz(1) 0023 healpixmap = [healpixmap data(col,:)]; 0024 end 0025 0026 nside = sqrt((sz(1) * sz(2)) / 12); 0027 0028 end