add_card


This routine writes a keyword of any kind into a FITS header. It is a wrapper to other routines that write keywords of different kinds.


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


FORMAT

call add_card( header, kwd, value, comment )


ARGUMENTS

name&dimensionality kind in/out description
       
header(LEN=80) DIMENSION(:) CHR INOUT The header to write the keyword to.
kwd(LEN=*) CHR IN the FITS keyword to write. Should be shorter or equal to 8 characters.
value any IN the value to give to the keyword.
comment(LEN=*) CHR IN comment to the keyword.


EXAMPLE:

call add_card(header,'NSIDE',256,'the nside of the map')

Gives the keyword `NSIDE' the value 256 in the given header-string.


MODULES & ROUTINES

This section lists the modules and routines used by add_card.

write_hl
more general routine for adding a keyword to a header.
cfitsio
library for FITS file handling.


RELATED ROUTINES

This section lists the routines related to add_card


get_card
general purpose routine to read any keywords from a header in a FITS file.
del_card
routine to discard a keyword from a FITS header
read_par, number_of_alms
routines to read specific keywords from a header in a FITS file.
getsize_fits
function returning the size of the data set in a fits file and reading some other useful FITS keywords
merge_headers
routine to merge two FITS headers

Eric Hivon 2005-08-31