format_txt_as_header¶
-
xpolbeamline.sitkconverter.
format_txt_as_header
(txt)[source]¶ Format a txt dict to make it easy to insert into a fits header
Any item with a key that is longer than 8 characters will be dropped. At this point, a few generic header keywords are also added.
Parameters: txt : dict
Dictionary with parsed values.
Returns: out : dict
Dictionary where values are tuples consisting of a string and a comment