Skip to content

Fourier transforms and spectra #33

@fjebaker

Description

@fjebaker

Given an event list or light curve, we want to be able to compute the Fourier transform and obtain the spectra. Specifically, we want the AveragedPowerspectrum.

Much of this code already exists in the Stringray.jl implementation, but need to be cleaned up / rewritten for the new primitives we are working with.

We minimally need something like the from_events constructor to construct an averaged power spectrum from the EventList. This constructor does not need all of the Python functionality, e.g. GTI treatment, as that will be handled separately for now.

We want something like:

struct AveragedPowerspectrum{T}
    freqs::Vector{T}
    power::Vector{T}
    power_errors::Vector{T}
end

I don't think any of the other attributes are relevant for now!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions