def write(self, outfile='<STR_LIT>',<EOL>overwrite=False):
outpath = os.sep.join(outfile.split(os.sep)[<NUM_LIT:0>:-<NUM_LIT:1>])<EOL>if len(outpath) > <NUM_LIT:0> and not os.path.isdir(outpath):<EOL><INDENT>msg = '<STR_LIT:U+0020>'.join([os.path.join(outfile.split(os.sep)[<NUM_LIT:0>:-<NUM_LIT:1>]),<EOL>'<STR_LIT>'])<EOL>raise IOError(msg)<EOL><DEDENT>if os.path.isfile(outfile) and not overwrite:<EOL><INDENT>responding = True<EOL>while responding:<EOL><INDENT>print('<STR_LIT:U+0020>'.join([outfile, '<STR_LIT>']))<EOL>option = raw_input()<EOL>if option.upper() == '<STR_LIT:N>':<EOL><INDENT>raise IOError('<STR_LIT>')<EOL><DEDENT>elif option.upper() == '<STR_LIT:Y>':<EOL><INDENT>responding = False<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT><DEDENT><DEDENT>f = open(outfile, '<STR_LIT:w>')<EOL>header = '<STR_LIT:U+0020>'.join(['<STR_LIT>', getpass.getuser(),<EOL>'<STR_LIT>', str(UTCDateTime()),<EOL>'<STR_LIT>',<EOL>str(eqcorrscan.__version__),<EOL>'<STR_LIT>'])<EOL>f.write(header)<EOL>parameters = self.__str__().split('<STR_LIT:\n>')[<NUM_LIT:1>:]<EOL>f.write('<STR_LIT>')<EOL>for parameter in parameters:<EOL><INDENT>f.write(parameter.lstrip() + '<STR_LIT:\n>')<EOL><DEDENT>f.close()<EOL>print('<STR_LIT>' + outfile)<EOL>
Function to write the parameters to a file - user readable.

:type outfile: str
:param outfile: Full path to filename to store parameters in.
:type overwrite: bool
:param overwrite: Whether to overwrite the old file or not.