def __new__(cls, data, unit=None, t0=None, dt=None, f0=None, df=None,<EOL>times=None, frequencies=None,<EOL>name=None, channel=None, **kwargs):
<EOL>epoch = kwargs.pop('<STR_LIT>', None)<EOL>if epoch is not None and t0 is not None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if epoch is None and t0 is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = _format_time(t0)<EOL><DEDENT>elif epoch is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = _format_time(epoch)<EOL><DEDENT>if dt is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = dt<EOL><DEDENT>if times is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = times<EOL><DEDENT>if f0 is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = f0<EOL><DEDENT>if df is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = df<EOL><DEDENT>if frequencies is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = frequencies<EOL><DEDENT>return super(Spectrogram, cls).__new__(cls, data, unit=unit, name=name,<EOL>channel=channel, **kwargs)<EOL>
Generate a new Spectrogram.