Home > src > main > matlab > s2let_hpx_write_real_map.m

s2let_hpx_write_real_map

PURPOSE ^

s2let_hpx_rite_real_map

SYNOPSIS ^

function s2let_hpx_write_real_map(f, file)

DESCRIPTION ^

 s2let_hpx_rite_real_map 
 Write a real Healpix map to a FITS file
 Default usage :

   s2let_hpx_write_real_map(f, file)

 f the Healpix 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_hpx_write_real_map(f, file)
0002 
0003 % s2let_hpx_rite_real_map
0004 % Write a real Healpix map to a FITS file
0005 % Default usage :
0006 %
0007 %   s2let_hpx_write_real_map(f, file)
0008 %
0009 % f the Healpix 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 szb = max([sz(1), sz(2)]);
0018 nside = floor(sqrt(szb/12.0));
0019 
0020 fitswrite(f, file, 'NSIDE', nside);
0021 
0022 end

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