. Adds additional
headers if required. The facility is primarily intended to allow the
user to write an arbitrary window function into a FITS file in
the correct format to be ingested by the HEALPix simulation facilities
synfast,
isynfast,
and others
(see ”Beam window function files”
in the HEALPix Fortran Facilities document).
, given in the sequence T E B.
bl2fits writes the inputcoefficients into a FITS file containing an ascii table extension. Optional headers conforming to the FITS convention can also be written to the output file. All required FITS header keywords (like SIMPLE, BITPIX, ...) are automatically generated by the routine and should NOT be duplicated in the optional header inputs (they would be ignored anyway). The one/two/three column(s) are automatically named TEMPERATURE, GRAD, CURL respectively. If the window function is provided in a double precision array, the output format will automatically feature more decimal places.
| beam1 = gaussbeam(10., 2000, 1) |
| beam2 = gaussbeam(15., 2000, 1) |
| beam = (beam1 + beam2) / 2. |
| bl2fits, beam, 'beam.fits' |
bl2fits writes the beam window function stored in the variable beam (=Legendre transform of a circular beam) into the output FITS file beam.fits.
Version 3.83, 2024-11-13