Skip to content

scargle and fasper returning insensible results #10

Description

@JorisDeRidder

time = np.arange(0.,30.,1.)
signal = np.sin(2.*np.pi*2.15*time)
freq, spec = scargle(time, signal, f0=0., fn=20., df=0.0001, norm='amplitude')
print(freq)

gives

[3.44827586e-04 4.44827586e-04 5.44827586e-04 ... 4.99744828e-01 4.99844828e-01 4.99944828e-01]

Why is the frequency array only going to 0.5 and not to 20. as specified? I have the same problem with fasper().

I'm using Python 3.6. Compilation of the Fortran routines after installing the repository went fine without any error messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions