
PRESTO is a large suite of pulsar search and analysis software developed primarily by Scott Ransom mostly from scratch, and released under the GPL (v2). It was primarily designed to efficiently search for binary millisecond pulsars from long observations of globular clusters (although it has since been used in several surveys with short integrations and to process a lot of X-ray data as well). It is written primarily in ANSI C, with many of the recent routines in Python. According to Steve Eikenberry, PRESTO stands for: PulsaR Exploration and Search TOolkit!
PRESTO has discovered well over 1500 pulsars, including ~500 recycled and/or binary pulsars!
Version 6.4.0:
- New
-flatten option for prepdata, prepsubband, mpiprepsubband, prepfold
and prepfold_multi: it divides each raw channel by its standard deviation (after
removing its mean) and zero-weights bad channels (dead, RFI-filled, or far from their
neighbours). This helps a lot with very uneven bandpasses, such as the GBT UWBR’s.
It uses the rfifind .stats file from -mask if there is one. See the man pages.
mpiprepsubband no longer drops the start of the data: its .dat files began
one or more raw blocks later than their .inf epoch, which offset any folds or TOAs
made from them. It now matches prepsubband.
- The rfifind mask was applied one raw block late in
prepsubband and prepfold.
- Fixes for MeerKAT polycos,
prepfold on short .dat files, SIGPROC files with no
position, RA/Dec strings with 60 seconds, and ppgplot exceptions.
Version 6.3.3:
accelsearch is faster again: with one thread ~1.25x faster than v6.3.2 and 1.6x
faster than v5.0.0 (and ~8x faster than v5.3.1-v6.1.1), and with 8 threads 7.7x faster
than v5.0.0. The plot shows every release since v5.0.0 built with default options, as
in the conda-forge packages (details in the CHANGELOG). If speed
matters most, a native build (-march=native) is another ~8% faster; see
INSTALL.md.
- Rerun
makewisdom after updating: accelsearch now uses a measured list of FFT
lengths, and makewisdom -check says whether your wisdom covers them.
- Rednoised
_red.fft files (and .dat input) that pass the normalization check are now
searched without per-block median normalization (-nonorm; -median restores the
old behavior). This gives slightly fewer false candidates and allows faster FFTs.
Badly normalized input now stops the search with an error.

Version 6.3.2:
accelsearch is 1.3-1.4x faster with one thread (the usual way to run it, one
search per DM trial), and multithreaded runs now scale: 8 threads are ~5.5x
faster than one, where before they were ~1.4x. Results are unchanged, and no longer
depend on -ncpus.
Version 6.3.1:
coherentsearch is 1.2-1.35x faster in the conda-forge packages (and any build
for a baseline x86-64 CPU): it now picks AVX2/FMA or AVX-512 versions of its hot
kernels to suit the CPU. Results are unchanged.
- New
-perfinfo flag for accelsearch and coherentsearch: it shows the CPU, the
SIMD kernels in use, OpenMP threads, and whether FFTW’s wisdom was found.
Version 6.3.0:
prepfold folds long raw-data searches with tempo2 polycos. The cubic topocentric
fit it used before drifts badly on long observations (~0.1 turn at 8 hr, ~3 turns at
20 hr for a 2-ms pulsar). Use -usepoly; it is automatic for folds over 2 hr when
tempo2 is on your PATH.
prepfold_multi can fold with polycos: give each pulsar a par file in the
candidate file’s new par column and use -timing to get TOAs for many pulsars
(e.g. a globular cluster) in one pass over the raw data.
get_TOAs.py -u times folds that prepfold searched, using the parameters they were
folded with.
- Bug fixes:
accelsearch on FFTs with 2^31 or more bins (thanks to Aaron Pearlman),
accelsearch/search_bin ignoring -rlo/-rhi, and known-pulsar matching when the
data have no beam size (e.g. MeerKAT PSRFITS).
Version 6.2.0:
- New program
coherentsearch: a coherent harmonic-summing search, ported to C from
CoherentSearch.jl (Ransom 2026). It is much more sensitive than
incoherent harmonic summing to slow pulsars with narrow pulses. Run it on rednoised
.fft files; it labels known pulsars, plots candidate profiles (-plot), and has a
-deep pass for very narrow pulses. Re-run makewisdom after upgrading, since it
now plans coherentsearch’s FFTs too.
- New script
coherent_sift.py sifts coherentsearch candidates across DMs (and
observations), flagging harmonics, known pulsars and RFI-like signals.
- Plots from
prepfold, rfifind and coherentsearch now work with long output names
(PGPLOT silently truncated file names past 90 characters).
- Python >=3.12 is now required.
- Running many PRESTO jobs at once? Set
OPENBLAS_NUM_THREADS=1 (see below).
Version 6.1.2:
accelsearch is ~2.4x faster on x86-64 conda-forge builds (and any build for a CPU
target without FMA instructions). Results are unchanged.
- Bug fix: masked raw data (
-mask in prepdata, prepsubband, prepfold and mpiprepsubband)
could have the wrong channels masked because of an out-of-bounds read. It mostly
happened on macOS, where repeated runs could differ.
- Bug fix:
single_pulse_search.py now skips blocks with no variance (dropouts, padding,
fully masked intervals) instead of turning them into spurious events or NaNs.
- Bug fix: the C tools can now read SIGPROC filterbank files whose header strings (e.g. a
long
rawdatafile path) are over 80 characters.
presto.filterbank reads and writes 1-, 2- and 4-bit and signed 8-bit SIGPROC files.
Version 6.1.1:
- Bug fix (#231):
prepfold -accelcand with a nonzero -start now propagates jerk
(-wmax) candidates correctly to the new fold start. Before, f and f-dot could be
badly off, often enough to wash out the pulse entirely. Candidates with w = 0 were not
affected.
- Bug fix: signed 8-bit SIGPROC filterbank data is now read correctly on aarch64 (64-bit
ARM Linux and Apple Silicon). x86 was never affected.
Version 6.1.0:
- Zapped Fourier bins are now filled with noise rather than a constant amplitude
(
zapbirds, simple_zapbirds.py, accelsearch -zaplist). This changes search results on
any zapped data; pass -constamp for the old behavior. Several other zapbirds fixes too.
accelsearch bug fix (present since 2001): the f-fdot candidate optimizer sized its
interpolation kernel from a scaled z, so it recovered too little power at large |z|.
Happily this did not cost anyone candidates — the sigmas and summed powers
accelsearch reports come from the search itself and are unchanged — but
presto.maximize_rz(), explorefft and quicklook did under-report power above
|z| ~ 150. See CHANGELOG.md
for the details.
single_pulse_search.py no longer leaves up to 7999 samples at the end of each time series
unsearched.
- SIGPROC filterbank bug fix: declinations between 0 and -1 degrees lost their minus sign.
- Red noise removal is now a shared
libpresto routine, with new rednoise -inplace and
realfft -rednoise options so you can whiten without a separate pass over the file.
- New
presto.observatories module: a single home for the telescope-name to observatory-code
table that used to be copied in three places.
ACCEL_sift.py and sifting.DM_re now find DMs anywhere in a filename, and
simple_zapbirds.py parses its command line with argparse.
- Removed the
presto.singlepulse subpackage — it turned out never to have been
installed — along with make_spd.py, plot_spd.py and rrattrap.py.
README.md and INSTALL.md now recommend installing from conda-forge.
Version 6.0.1:
get_TOAs.py now supports CHIME (telescope code y, observatory name chime).
- The conda-forge recipe moved to the v1 (rattler-build)
recipe.yaml format, and now uses
astropy-base and gsl >=2.8 (the latter so the package is co-installable with tempo2
while conda-forge’s gsl 2.8 migration is in progress).
Version 6.0.0:
- PRESTO is now on conda-forge! Install the whole suite (C tools + Python package) with
conda install -c conda-forge presto-pulsar (or pixi add presto-pulsar). (The conda
package is presto-pulsar because the plain presto name is taken on bioconda by an
unrelated tool; the Python import is still presto.)
- The
PRESTO environment variable is no longer required — runtime data (the pulsar
catalog, etc.) and man pages now install into the prefix and are found automatically.
- TEMPO is no longer needed at all: barycentering is done in-process with ERFA, and
polyco generation now uses tempo2.
- The compiled code is now Fortran-free: FFTFIT was rewritten in pure Python (NumPy/SciPy,
with a new
classic/aarchiba selector in get_TOAs.py), and the last Fortran least-squares
solver was replaced by GSL.
- Vendored Numerical-Recipes/SLALIB/RANDLIB code replaced by GSL and ERFA; many Python modules
modernized (NumPy docstrings, type hints, NumPy 2.5 fixes); man pages fleshed out.
- The build uses meson (from v5);
pixi run build drives a fully self-contained build.
For information on older versions, please see the CHANGELOG.md.
About PRESTO:
PRESTO is written with portability, ease-of-use, and memory efficiency in mind, it can currently handle raw data from the following pulsar machines or formats:
- PSRFITS search-format data (as from GUPPI at the GBT, PUPPI and the Mock Spectrometers at Arecibo, and much new and archived data from Parkes)
- 1-, 2-, 4-, 8-, and 32-bit (float) filterbank format from SIGPROC
- A time series composed of single precision (i.e. 4-byte) floating point data (with a text “.inf” file describing it)
- Photon arrival times (or events) in ASCII or double-precision binary formats
Notice that the following formats which used to be supported are not:
- Wideband Arecibo Pulsar Processor (WAPP) at Arecibo
- The Parkes and Jodrell Bank 1-bit filterbank formats
- SPIGOT at the GBT
- Berkeley-Caltech Pulsar Machine (BCPM) at the GBT
If you need to process them, you can either checkout the “classic” branch of PRESTO (see below), which is not being actively developed. Or you can use DSPSR to convert those formats into SIGPROC filterbank or (even better) PSRFITS search format. You can grab DSPSR here. If you really need to get one of these machines working in modern PRESTO, let me know and we can probably make it happen.
The software is composed of numerous routines designed to handle three main areas of pulsar analysis:
- Data Preparation: Interference detection (
rfifind) and removal (zapbirds and pfdzap.py), de-dispersion (prepdata, prepsubband, and mpiprepsubband), barycentering (via TEMPO).
- Searching: Fourier-domain acceleration and jerk (
accelsearch), coherent harmonic summing for slow and narrow-pulsed pulsars (coherentsearch, with coherent_sift.py to sift its candidates), single-pulse (single_pulse_search.py), and phase-modulation or sideband searches (search_bin).
- Folding: Candidate optimization (
prepfold and fourier_fold.py) and Time-of-Arrival (TOA) generation (get_TOAs.py).
- Misc: Data exploration (
readfile, exploredat, explorefft), de-dispersion planning (DDplan.py), date conversion (mjd2cal, cal2mjd), tons of python pulsar/astro libraries, average pulse creation and flux density estimation (sum_profiles.py), and more…
- Post Single Pulse Searching Tools: Single pulse plotting (
waterfaller.py).
Many additional utilities are provided for various tasks that are often required when working with pulsar data such as time conversions, Fourier transforms, time series and FFT exploration, byte-swapping, etc.
References: The Fourier-Domain acceleration search technique that PRESTO uses in the routine accelsearch is described in Ransom, Eikenberry, and Middleditch (2002), the “jerk” search capability is described in Andersen & Ransom (2018), the coherent harmonic summing search in coherentsearch is described in Ransom (2026), and the phase-modulation search technique used by search_bin is described in Ransom, Cordes, and Eikenberry (2003). Some other basic information about PRESTO can be found in my thesis.
Support/Docs: I may eventually get around to finishing the documentation for PRESTO (but probably not), but until then you should know that each routine returns its basic usage when you call it with no arguments. I am also willing to provide limited support via email (see below). And make sure to check out the FAQ.md!
Tutorial: There is a tutorial in the “docs” directory which walks you through all the main steps of finding pulsars using PRESTO.
Installing it:
The recommended way to install PRESTO is from conda-forge, which
gives you the whole suite — libpresto, all of the command-line tools, the man pages, and
the presto Python package — with nothing to compile and no environment variables to set:
conda install -c conda-forge presto-pulsar
or, if you use pixi:
pixi add presto-pulsar
The conda package is named presto-pulsar (the plain presto name is taken on bioconda by an
unrelated tool), but the Python import is still import presto and all of the tool names are
unchanged. Packages are built for linux-64, linux-aarch64, osx-64 and osx-arm64 (native
Apple Silicon). tempo2 (for prepfold -timing polycos) comes along automatically, and TEMPO
is not needed at all.
Build PRESTO from source instead if you want to hack on the code, need mpiprepsubband (MPI),
or want a build tuned to your own CPU. See
INSTALL.md for the full
instructions; the short version, if you use pixi, is pixi run build in a git checkout.
Running many PRESTO jobs at once? Set export OPENBLAS_NUM_THREADS=1 first. PRESTO uses
GSL, which on conda-forge loads OpenBLAS, and OpenBLAS starts one thread per core whenever a
program loads, even though PRESTO never uses it. Each of those threads busy-waits briefly, so
every PRESTO process wastes some CPU at startup (about 0.1 s per core). On a big multi-core
machine running one job per core (e.g. one accelsearch or coherentsearch per DM), that adds
up, and the many idle threads compete with the real work. Setting it to 1 does not slow PRESTO,
but it does make NumPy/SciPy linear algebra in the same shell single-threaded. The pixi
environment in this repository sets it for you.
Getting the source:
The PRESTO source code is released under the GPL and can be browsed or gotten from here in many different ways (including zipped or tar’d or via git). If you are too lazy to read how to get it but have git on your system do:
git clone https://github.com/scottransom/presto.git
To update it on a regular basis do
cd presto
git pull
and then re-build.
If you want the “classic” branch, do the following:
git clone https://github.com/scottransom/presto.git
cd presto
git checkout -b classic origin/classic
then build as per the (old) INSTALL file.
Development:
If you plan to tweak the code, I highly suggest that you use git and clone the directory (or fork it using an account on github). And if you want to contribute your changes back, please give me a “pull request”!
Code contributions and/or patches to fix bugs are most welcome!
Citing PRESTO in your work:
If you use PRESTO at all, please cite it via the ASCL, which you can do using the BibTeX entry from ADS. I also request that you add a link to the PRESTO github repo. Some people are still citing my thesis, which is nice, but probably not required anymore!
In addition, if you use the specific capabilities for searching that have been published, please cite the relevant papers:
Final Thoughts:
Please let me know if you find pulsars or RRATs or FRBs with PRESTO!
Thanks!
Acknowledgements:
Big thanks go to Steve Eikenberry for his help developing the algorithms, Dunc Lorimer and David Kaplan for help with (retired) code to process BCPM, SCAMP, and Spigot data, among other things, Jason Hessels and Patrick Lazarus for many contributions to the early Python routines, Bridget Andersen for crucial contributions to jerk search, and (alphabetical): Anne Archibald, Cees Bassa, Matteo Bachetti, Slavko Bogdanov, Fernando Camilo, Shami Chatterjee, Kathryn Crowter, Paul Demorest, Paulo Freire, Nate Garver-Daniels, Chen Karako, Mike Keith, Maggie Livingstone, Ryan Lynch, Erik Madsen, Bradley Meyers, Gijs Molenaar, Timothy Olszanski, Chitrang Patel, Paul Ray, Alessandro Ridolfi, Paul Scholz, Maciej Serylak, Ingrid Stairs, Kevin Stovall, Nick Swainston, Joeri van Leeuwen, Erum Vohra, and Wenke Xia for many comments, suggestions and patches!
Scott Ransom [email protected]
评论