list_to_header
- raccoon.fitsutils.list_to_header(datain)
- datainlist or tuple of tuples
Input data for the header. Each tuple must have at least a keyword (1 entry minimum). The value (second entry) and the comment (third entry) are optional (3 entries maximum). If no value is provided, it defaults to and empty string ‘’. E.g.
datain = ((‘key1’, 3, ‘comment1’), (‘key2’, ‘val2’), (‘key3’))
- or
datain = [(‘key1’, 3, ‘comment1’), (‘key2’, ‘val2’), (‘key3’)]