Home > src > main > matlab > s2let_mw_write_real_map.m

s2let_mw_write_real_map

PURPOSE ^

s2let_mw_write_real_map

SYNOPSIS ^

function s2let_mw_write_real_map(f, file)

DESCRIPTION ^

 s2let_mw_write_real_map 
 Write an MW real map to a FITS file
 Default usage :

   s2let_mw_write_real_map(f, file)

 f the MW map to be written,
 file the name of the output FITS file.

 S2LET package to perform Wavelets transform on the Sphere.
 Copyright (C) 2012-2015  Boris Leistedt & Jason McEwen
 See LICENSE.txt for license details

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function s2let_mw_write_real_map(f, file)
0002 
0003 % s2let_mw_write_real_map
0004 % Write an MW real map to a FITS file
0005 % Default usage :
0006 %
0007 %   s2let_mw_write_real_map(f, file)
0008 %
0009 % f the MW map to be written,
0010 % file the name of the output FITS file.
0011 %
0012 % S2LET package to perform Wavelets transform on the Sphere.
0013 % Copyright (C) 2012-2015  Boris Leistedt & Jason McEwen
0014 % See LICENSE.txt for license details
0015 
0016 sz = size(f);
0017 L = min([sz(1), sz(2)]);
0018 
0019 mwmap = [];
0020 for l = 1:L
0021     mwmap = [mwmap f(l,:)];
0022 end
0023 
0024 fitswrite(mwmap, file, 'L', L);
0025 
0026 end

Generated on Fri 11-Nov-2016 11:50:36 by m2html © 2005