NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links


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 & ROUTINES

This 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 ROUTINES

This 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
Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650