write_asctab*

This routine stores a power spectrum in an ascii FITS-file. The routine can store temperature coeffecients $C_\ell^T$ or both temperature and polarisation coeffecients $C_\ell^T$, $C_\ell^E$, $C_\ell^B$, $C_\ell^{T\times E}$.

Location in HEALPix directory tree: src/f90/mod/fitstools.F90 


FORMAT

call write_asctab*( clout, lmax, ncl, header, nlheader, filename[, extno] )

Arguments appearing in italic are optional.


ARGUMENTS

name & dimensionality kind in/out description
       
filename(LEN=filenamelen) CHR IN the FITS file to which the power spectrum is written.
lmax I4B IN Maximum $\ell$ value to be written.
ncl I4B IN 1 for temperature coeffecients only, 4 for polarisation.
clout(0:lmax,1:ncl) SP/ DP IN the powerspectrum to be saved in the file.
nlheader I4B IN number of header lines to write to the file.
header(LEN=80) (1:nlheader) CHR IN the header to the FITS-file.
extno I4B IN extension number in which to write the data (0 based). default:0


EXAMPLE:

use healpix_modules
real(SP), allocatable, dimension(:,:) :: cl
character(len=80), dimension(1:100) :: header
allocate(cl(0:64,1:1))
call write_minimal_header(header,'cl',nlmax=64)
call write_asctab (cl,64,1,header,100,'cl.fits')
Writes a power spectrum in the array cl(0:64,1:1) to a FITS-file called `cl.fits'. The cl array contains the temperature power spectrum $C_\ell^T$ up to an $\ell$ value of 64. 100 header lines are written to the file from the array header(1:100) which was previously filled the minimal required information for a power spectrum file.


MODULES & ROUTINES

This section lists the modules and routines used by write_asctab*.

fitstools
module, containing:
printerror
routine for printing FITS error messages.
cfitsio
library for FITS file handling.


RELATED ROUTINES

This section lists the routines related to write_asctab*

alm2cl
Routine computing the power spectrum from spherical harmonics coefficients $a_{\ell m}$
fits2cl
Routine to read a FITS file created by write_asctab.
write_minimal_header
routine to write minimal FITS header

Version 3.83, 2024-11-13