|
fits2cl*
This routine reads a power spectrum from a FITS ASCII or binary table. The routine can read temperature coeffecients ClT or both temperature and polarisation coeffecients ClT, ClE, ClB,
ClT x E. If the keyword PDMTYPE is found in the header, fits2cl assumes the table to be in the special format used by Planck
and will ignore the first data column. Location in HEALPix directory tree:
src/f90/mod/fitstools.f90
FORMAT call fits2cl*(
filename, clin, lmax, ncl, header, [units]
)
ARGUMENTS
name & dimensionality |
kind |
in/out |
description |
|
|
|
|
filename(LEN=filenamelen) |
CHR |
IN |
the FITS file containing the power spectrum. |
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/ DP |
OUT |
the power spectrum read from the file. |
header(LEN=80) (1:) |
CHR |
OUT |
the header read from the FITS-file. |
units(LEN=80) (1:) |
CHR |
OUT |
the column units read from the FITS-file. |
EXAMPLE:
call fits2cl ('cl.fits',cl,64,4,header,units)
Reads a power spectrum from the 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 x E). The FITS header is returned in header, the column units in units.
MODULES & ROUTINESThis section lists the modules and routines used by fits2cl*.
-
fitstools
- module, containing:
-
printerror
- routine for printing FITS error messages.
-
cfitsio
- library for FITS file handling.
RELATED ROUTINESThis section lists the routines related to fits2cl*
-
create_alm
- Routine to create alm values
from an input power spectrum.
-
write_asctab
- Routine to create an ascii
FITS file containing a power spectrum.
Eric Hivon
2010-06-18
|
|