read_asctab


This routine reads a powerspectrum from an ascii FITS-file. The routine can read temperature coeffecients ClT or both temperature and polarisation coeffecients ClT, ClE, ClB, ClT×E.


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


FORMAT

call read_asctab( filename, clin, lmax, ncl, header, nlheader )


ARGUMENTS

name&dimensionality kind in/out description
       
filename(LEN=filenamelen) CHR IN the FITS file containing the powerspectrum.
lmax I4B IN Maximum l value to be read.
ncl I4B IN 1 for temperature coeffecients only, 4 for polarisation.
clin(0:lmax,1:ncl) SP OUT the powerspectrum read from the file.
nlheader I4B IN number of header lines to read from the file.
header(LEN=80) (1:nlheader) CHR OUT the header read from the FITS-file.


EXAMPLE:

call read_asctab ('cl.fits',cl,64,4,header,80)

Reads a powerspectrum from the ascii FITS file `cl.fits' and stores the result in cl(0:64,1:4) which are the Cl coeffecients up to l = 64 for (T, E, B, T×E). 80 lines are read from the FITS header and returned in header(1:80).

MODULES & ROUTINES

This section lists the modules and routines used by read_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 read_asctab


create_alm
Routine to create alm values from an input powerspectrum.
write_asctab
Routine to create an ascii FITS file containing a powerspectrum.

Eric Hivon 2003-02-07