Pulsar, FRB search and analysis in Julia

Open
#7 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
julia
Domain
documentation

Research direction

Read the overview in the issue and check the linked package descriptions and cited issue to verify what is already covered and which consolidation plans are agreed. Suggest corrections or additions directly to this planning document; done means the package map and open questions accurately reflect the JuliaAstro ecosystem. No repository file or contribution path is identified in the payload.

Written by the indexing model from the issue text.

Description

domain: organisation purpose: proposal

Hi folks, just following up from our slack convo about starting to combine efforts in the pulsar/FRB community. I've started roughing in a general overview of how the different parts we have floating around might start to fit together. This was created from my very incomplete understanding of what all we have, so please feel free to suggest any modifications or corrections.

cc: @astrogewgaw @scottransom @matteobachetti @barrettp @activexray @fjebaker

Note: I wasn't sure where this planning doc should live, so I just stashed it on top of our fireplace for now.

Pulsar, FRB search and analysis in Julia

Goal: A set of small, composable packages covering the path from raw telescope data to confirmed periodic signals and, eventually, single pulses and FRBs. Each one does a single job and passes plain arrays or files on to the next.

How the packages fit together

flowchart TD
 fil["Filterbank data<br/>(SIGPROC .fil)"]
 dd["Dedispersion.jl<br/>Direct · Rolling · FDMT"]
 ts["Dedispersed time series"]
 sp["Single-pulse / FRB search<br/>(not yet covered)"]
 fft["FFT + red-noise whitening<br/>(PRESTO realfft / rednoise today)"]
 cs["CoherentSearch.jl"]
 ef["EpochFolding.jl"]
 ev["Photon arrival times<br/>(X-ray / gamma-ray)"]
 pln["PowerLawNoise.jl"]

 fil -->|"SIGPROCFiles.jl + PackedIntegers.jl"| dd
 dd -->|"DM-time array"| sp
 dd --> ts
 ts --> fft
 fft -->|".fft via PRESTOFiles.jl"| cs
 cs -->|"candidate frequencies"| ef
 ts -->|".tim / .dat"| ef
 ev --> ef
 pln -.->|"simulated noise"| ts

 classDef gap stroke-dasharray: 5 5
 psrfits["PSRFITS data<br/>(not yet covered)"]
 psrfits --> dd
 class sp,psrfits gap

Note: Dashed boxes mark stages that no package here covers yet.

Packages

Data formats and I/O
  • PackedIntegers.jl: Unpacks (and re-packs) the 1/2/4-bit samples that many radio backends store inside 8-bit integers.
  • SIGPROCFiles.jl: Reads SIGPROC filterbank (.fil) and time-series (.tim) files, including 1/2/4-bit data via PackedIntegers.jl. Writing and memory-mapping are planned.
  • PRESTOFiles.jl: Reads PRESTO .inf metadata and memory-mapped .fft files. To be split out of CoherentSearch.jl. It should also gain .dat time series so that EpochFolding.jl can fold PRESTO output.
Dedispersion
  • Dedispersion.jl: Meta-package that installs and re-exports the three algorithms below.
    • DirectDedispersion.jl: Brute-force dedispersion. Sums frequency channels along each trial DM's delay curve to produce a DM-time array (Barsdell et al. 2012).
    • RollingDedispersion.jl: Dedisperses at a single DM by circularly shifting each channel by its delay. Keeps the frequency axis, which makes it useful for inspecting a known burst.
    • FastDedispersion.jl: The fast DM transform (FDMT; Zackay & Ofek 2017), following Morello's recursive pyfdmt.
  • FastDMTransform.jl: A second FDMT implementation, also based on pyfdmt, tuned for speed with LoopVectorization.jl. It seems to have overlap with FastDedispersion.jl. Worth comparing the two and seeing if we can settle on a shared implementation.
Periodicity search and folding
  • CoherentSearch.jl: Blind periodicity search of a PRESTO .fft file. At each trial frequency it interpolates up to 60 harmonics while keeping their phases, inverse-transforms them into a pulse profile, and matched-filters that profile with boxcars. Multi-threaded, with an optional CUDA GPU backend. It produces candidate lists to fold with EpochFolding.jl (Ransom 2026).
  • EpochFolding.jl: Folds a time series at a given f, ḟ and f̈ the way PRESTO's prepfold does (drizzled or nearest-bin) and returns the profile with its χ². This is how candidates get confirmed. Refining them over an (f, ḟ) grid, as prepfold does, is not implemented yet.
    • PulsarSearch.jl: Z²ₙ statistics, Z²ₙ searches over photon arrival times, and significance helpers (trials correction, equivalent Gaussian σ). Moving into EpochFolding.jl (#23).
Simulation and testing
  • PowerLawNoise.jl: Generates noise with a power-law spectrum (white, pink, red, or any exponent) in any number of dimensions (Timmer & Koenig 1995). Useful for injection tests and checking how robust a search is to red noise.

Not yet covered

  • Single-pulse / FRB detection on dedispersed data: boxcar search over DM-time, plus clustering of the candidates it finds.
  • Turning a time series into a whitened .fft in Julia. CoherentSearch.jl currently relies on PRESTO's realfft and rednoise for this.
  • PSRFITS input, the format of most modern search-mode data. Could be a separate package built on top of FITSFiles.jl.
  • RFI mitigation, acceleration (ḟ) search, and sifting candidates across DMs. CoherentSearch.jl ships a Python sifter, bin/sift_candidates.py.
  • (f, ḟ) refinement of folded candidates.

Proposed consolidations

  • PulsarSearch.jl → EpochFolding.jl. During the merge, add the degrees-of-freedom correction for drizzled folds, as prepfold does. (agreed in https://github.com/JuliaAstro/JuliaAstro.github.io/issues/59#issuecomment-2991602105)
  • PRESTO reader → PRESTOFiles.jl, alongside SIGPROCFiles.jl.
  • FastDMTransform.jl and FastDedispersion.jl: possibly settle on one shared FDMT implementation (see Questions).
  • CoherentSearch.jl and EpochFolding.jl stay separate. Their docs describe the handoff (CoherentSearch candidate → EpochFolding fold).

Questions

  • Where should these packages live: JuliaAstro, a new org, or with their current authors?
  • @astrogewgaw @activexray: which FDMT implementation should be the shared one?
  • Is anyone already working on, or interested in, a PSRFITS reader or a single-pulse search?
  • What's missing or wrong above?
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaAstro/fireplace

All issues in JuliaAstro/fireplace

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.