def axesim_prep(self):
    'Removes modifies some keywords'
    new_name = self._get_simul_name()
    if ((self['SCIENCE_EXT'] != 'SCI') and (self['SCIENCE_EXT'] != '2')):
        index = self._find_gkey('SCIENCE_EXT')
        if (index > (- 1)):
            self.gkeys[index].keyvalue = 'SCI'
    if (self['TELAREA'] is None):
        self.add_gkey('TELAREA', 45238.93)
    index = 1
    while (self[('OPTKEY' + str(index))] is not None):
        del self[('OPTKEY' + str(index))]
        del self[('OPTVAL' + str(index))]
        index += 1
    self.add_gkey('ERRORS_EXT', 'ERR')
    self.add_gkey('DQ_EXT', 'DQ')
    self.writeto(new_name)
    return os.path.basename(new_name)
Removes modifies some keywords
def axesim_prep(self):
    
    new_name = self._get_simul_name()
    if ((self['SCIENCE_EXT'] != 'SCI') and (self['SCIENCE_EXT'] != '2')):
        index = self._find_gkey('SCIENCE_EXT')
        if (index > (- 1)):
            self.gkeys[index].keyvalue = 'SCI'
    if (self['TELAREA'] is None):
        self.add_gkey('TELAREA', 45238.93)
    index = 1
    while (self[('OPTKEY' + str(index))] is not None):
        del self[('OPTKEY' + str(index))]
        del self[('OPTVAL' + str(index))]
        index += 1
    self.add_gkey('ERRORS_EXT', 'ERR')
    self.add_gkey('DQ_EXT', 'DQ')
    self.writeto(new_name)
    return os.path.basename(new_name)