pyspec/spectrum.py
def calc_freq(self):
        """ calculate array of spectral variable (frequency or
                wavenumber) in cycles per unit of L """

        self.df = 1./(self.n*self.dt)

        if self.neven:
            self.f = self.df*np.arange(self.n/2+1)
        else:
            self.f = self.df*np.arange( (self.n-1)/2.  + 1 )
 calculate array of spectral variable (frequency or
                wavenumber) in cycles per unit of L 
calculate array of spectral variable (frequency or
wavenumber) in cycles per unit of L
calculate array of spectral variable ( frequency or wavenumber ) in cycles per unit of L
def calc_freq(self):
        self.df = 1./(self.n*self.dt)
        if self.neven:
            self.f = self.df*np.arange(self.n/2+1)
        else:
            self.f = self.df*np.arange( (self.n-1)/2.  + 1 )
def calc_freq ( self ) : self . df = 1. / ( self . n * self . dt ) if self . neven : self . f = self . df * np . arange ( self . n / 2 + 1 ) else : self . f = self . df * np . arange ( ( self . n - 1 ) / 2. + 1 )
calculate array of spectral variable (frequency or
wavenumber) in cycles per unit of L
calculate array of spectral variable ( frequency or wavenumber ) in cycles per unit of L
""" calculate array of spectral variable (frequency or
                wavenumber) in cycles per unit of L """
self