def clean(self, is_table=False):
rmnames = [<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>']<EOL>if is_table:<EOL><INDENT>rmnames += [<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>]<EOL><DEDENT>self.delete(rmnames)<EOL>r = self._record_map.get('<STR_LIT>', None)<EOL>if r is not None:<EOL><INDENT>naxis = int(r['<STR_LIT:value>'])<EOL>self.delete('<STR_LIT>')<EOL>rmnames = ['<STR_LIT>' % i for i in xrange(<NUM_LIT:1>, naxis+<NUM_LIT:1>)]<EOL>self.delete(rmnames)<EOL><DEDENT>r = self._record_map.get('<STR_LIT>', None)<EOL>self.delete('<STR_LIT>')<EOL>if r is not None:<EOL><INDENT>znaxis = int(r['<STR_LIT:value>'])<EOL>rmnames = ['<STR_LIT>' % i for i in xrange(<NUM_LIT:1>, znaxis+<NUM_LIT:1>)]<EOL>self.delete(rmnames)<EOL>rmnames = ['<STR_LIT>' % i for i in xrange(<NUM_LIT:1>, znaxis+<NUM_LIT:1>)]<EOL>self.delete(rmnames)<EOL>rmnames = ['<STR_LIT>' % i for i in xrange(<NUM_LIT:1>, znaxis+<NUM_LIT:1>)]<EOL>self.delete(rmnames)<EOL>rmnames = ['<STR_LIT>' % i for i in xrange(<NUM_LIT:1>, znaxis+<NUM_LIT:1>)]<EOL>self.delete(rmnames)<EOL><DEDENT>r = self._record_map.get('<STR_LIT>', None)<EOL>if r is not None:<EOL><INDENT>tfields = int(r['<STR_LIT:value>'])<EOL>self.delete('<STR_LIT>')<EOL>if tfields > <NUM_LIT:0>:<EOL><INDENT>nbase = [<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>]<EOL>for i in xrange(<NUM_LIT:1>, tfields+<NUM_LIT:1>):<EOL><INDENT>names = ['<STR_LIT>' % (n, i) for n in nbase]<EOL>self.delete(names)<EOL><DEDENT><DEDENT><DEDENT>
Remove reserved keywords from the header.

These are keywords that the fits writer must write in order
to maintain consistency between header and data.

keywords
--------
is_table: bool, optional
    Set True if this is a table, so extra keywords will be cleaned