def read_scamp_head(fname, header=None):
with open(fname) as fobj:<EOL><INDENT>lines = fobj.readlines()<EOL><DEDENT>lines = [l.strip() for l in lines if l[<NUM_LIT:0>:<NUM_LIT:3>] != '<STR_LIT>']<EOL>hdr = FITSHDR(header)<EOL>for l in lines:<EOL><INDENT>hdr.add_record(l)<EOL><DEDENT>return hdr<EOL>
read a SCAMP .head file as a fits header FITSHDR object

parameters
----------
fname: string
    The path to the SCAMP .head file

header: FITSHDR, optional
    Optionally combine the header with the input one. The input can
    be any object convertable to a FITSHDR object

returns
-------
header: FITSHDR
    A fits header object of type FITSHDR