Astronomy files
FITS keyword card formatter
Format a standard FITS keyword/value/comment into exactly 80 ASCII characters.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Put = and a space in columns 9–10. Quote and escape strings; align numeric or logical values in the 20-column value field. Pad the card with spaces.
OBJECT with value M31 begins OBJECT = 'M31' and ends with enough spaces to reach 80 characters.
Limits
One ordinary value card only. No END/commentary cards, HIERARCH, CONTINUE or full 2880-byte header blocks. Strings and comments must be printable ASCII.