fits format specification. There are any references about fits format specification in here. you can look below.