Aegis predicts exoplanet radio emission from the cyclotron maser instability, in which energetic electrons amplify radio waves in a planet's magnetosphere. It propagates uncertainty in stellar winds, planetary spin, and magnetic fields to predict emission frequencies and fluxes, then compares those distributions with telescope sensitivities.
The required packages are listed in environment.yml and requirements.txt.
AEGIS_PATH points to the Aegis checkout used by the analysis scripts. When it is unset, Aegis uses the directory containing repository_paths.py. The checkout's data/ and visuals/ directories are ignored by Git for local inputs and generated figures.
Start with a NASA Exoplanet Archive table containing the required system parameters. Save it as NASA[sample].csv, where [sample] is usually the download date in DDMM format. The scripts use that sample label to connect their inputs and outputs.
Our paper figures notebook walks through the run and displays its figures. The notebook calls the same command-line script, which produces the tables and numbered figures for Kaya & Daylan (2025), Radio prospects of extrasolar aurorae polaris as a probe of planetary magnetism (arXiv:2506.04604v1). From this checkout, run
python -m pip install -r requirements.txt
python examples/reproduce_kaya_daylan_2025.pyThe default run uses the archived Monte Carlo predictions and the April 30, 2025
NASA Exoplanet Archive sample in NASA3004.csv. It checks the paper's 1,579 input
planets, 1,111 escaping-emission predictions, 16 ground-based candidates, and
the tau Boo b prediction of
Outputs go into a new visuals/kaya_daylan_2025/ directory, leaving the tracked
inputs and archived results unchanged. Use --output PATH for subsequent runs.
Existing output directories are never overwritten. Figures are PNG files at
300 dpi by default, or PDF files with --typefileplot pdf. Figure 6 remains a
PDF because its archived individual Monte Carlo draws are not stored.
| Paper figure | Output stem | Calculation |
|---|---|---|
| 1 | figure_01_magnetosphere |
Magnetosphere and emission-cone sketch |
| 2 | figure_02_stellar_winds |
Isothermal Parker wind profiles |
| 3 | figure_03_imf_geometry |
Redrawn schematic of wind, orbital velocity, and perpendicular magnetic field |
| 4 | figure_04_parker_spiral |
Perpendicular interplanetary field around tau Boo b |
| 5 | figure_05_sample |
Six parameter distributions of the archived sample |
| 6 | figure_06_tau_boo_distribution |
Archived tau Boo b Monte Carlo distribution PDF |
| 7 | figure_07_population |
Frequency and flux density for all escaping planets |
| 8 | figure_08_candidates |
Candidate predictions and telescope sensitivities |
| 9 | figure_09_sky_coverage |
Maximum elevation and time above 20 degrees |
| 10 | figure_10_radius_valley |
Shorter-period planets cluster at stronger fields, while radius distributions vary across irradiation groups |
Figure 3 uses illustrative vector lengths, not measured system parameters.
These are regenerated scientific plots and a redrawn schematic, rather than
pixel-identical copies of the typeset figures. Figure 6 alone is copied unchanged
in the default run. final-table.csv contains Table 1, and
table_2_space_candidates.csv contains the five brightest 0.1-10 MHz targets of
Table 2 with their uncertainties. The full machine-readable predictions remain
in Output Tables/all.csv. reproduction.json records input and local workflow
source SHA-256 hashes, package versions, result comparisons, and whether each
figure was regenerated or reused. The script compares the local source hashes
at the beginning and end of the run and does not write a manifest if they differ.
This check does not capture external dependencies or transient source changes.
To rerun the radio predictions with 10,000 Monte Carlo draws per planet and regenerate the tau Boo b distribution, use
python examples/reproduce_kaya_daylan_2025.py --full --seed 2025 --output visuals/kaya_daylan_2025_freshThe seed fixes both the measurement draws and the Solar System spin sampling.
Fresh results need not equal the archived realization because its random seed
was not recorded. For a quick execution check, add --samples 32. Such a short
run is unsuitable for matching the paper's numerical results. Fresh mode needs
only NASA3004.csv, rotation.csv, sensitivities.csv, and nenufar.npz as
inputs. Its manifest records archived_results as null. The stellar wind solver
can emit SciPy convergence warnings, which are left visible.
The local searchable radio catalog contains predictions for five selected targets. The page sorts by target, coordinates, maximum frequency, or predicted flux and filters by name and frequency. An empty frequency bound leaves that end of the range open.
The shared catalog table stores flux density in mJy. The standard prediction
column in Jy is converted to mJy, while the published catalog reports Jy.
For other input column names, pass flux_unit when the values are not in mJy.
Semimajor axes in the table returned by append_predictions() remain in AU,
formatted to three decimal places.
Radio-table joins require nonblank prediction names, exactly one matching
catalog row per target, and unique prediction rows. Unmatched names raise an
error rather than disappearing from the table. An empty prediction selection
returns an empty table with the normal columns.
Rebuild the site data from append_table.csv with this command.
python publish_radio_catalog.py --check-physicalityThe intended public URL is https://astromusers.github.io/aegis/. It returned 404 on 2026-11-27; enabling GitHub Pages alone has not completed deployment.
A repository maintainer can enable GitHub Pages with GitHub Actions as the publishing source in Settings > Pages, then rerun the Publish Aegis radio catalog workflow. Generating the CSV and JSON alone does not enable hosting.
rotation_script.py samples exoplanet spin angular momenta from the Solar System distribution in rotation.csv. The resulting spin distribution enters the planetary magnetic-field and radio-emission calculations.
wind.py calculates the stellar-wind temperature and speed at each planet's orbit with an isothermal Parker wind model (Parker 1958). It reads the NASA Exoplanet Archive sample and writes stellar_wind_predictions_[sample].tsv for the radio-emission calculation.
Earlier versions could select the speed-solver branch at a planet's orbit using
the final target's critical radius instead of that planet's. The two special
initial guesses were also tied to row numbers rather than target names. The
speed solver now checks convergence, the equation residual, and the intended
subsonic or supersonic branch, using a bracketed root when needed. In the
retained sample, the former orbital-speed solve for AF Lep b failed to converge
and the one for PDS 70 b reported convergence with a large residual. The
archived wind table and derived radio predictions have not been regenerated or
revalidated since these fixes.
exoplanet_predictions.py propagates uncertainties in NASA Exoplanet Archive measurements through the magnetic-field and radio-emission models with Monte Carlo sampling. It calculates predictive distributions of emission frequency and radio flux density for each target.
Measurements and their err1 and err2 uncertainties are selected by column
name, independently of column order.
The wind table must list the same targets in the same order as the input catalog.
The script checks this before generating predictions or plots.
Measurements, distances, wind temperatures, and wind speeds must be finite and
positive. Upper errors must be nonnegative and lower errors nonpositive. If an
error is missing, the script retains its existing 20% uncertainty assumption.
Zero-width uncertainties are allowed, and sampled physical quantities must be
positive.
Negative stellar-mass draws are resampled from the stellar-mass distribution.
Earlier runs instead used the planet-mass mean for those retries, so their
predicted distributions may be affected. A target enters the output when at
least one draw meets the radio escape condition; reported percentiles use those
retained draws. Five named high-variability targets bypass the escape condition.
Earlier runs could omit a target when the last eligible draw failed even if an
earlier draw passed. Earlier all.npz files also stored magnetic uncertainties
in the kinetic uncertainty fields. The archived results have not been regenerated.
exoplanet_predictions.py reads the NASA Exoplanet Archive CSV,
defaults to 10,000 Monte Carlo draws, and accepts a different count through
AEGIS_MC_SAMPLES. Set AEGIS_SEED to seed both the measurement draws and the
spin samples. Reproducibility also depends on the input order and software
versions; earlier seeded runs did not use this generator for spin samples.
It writes df1.csv and all.npz for the population figures
after propagating the catalog uncertainties and empirical Solar System spin
distribution through the forward model.
For a detected cyclotron-maser cutoff, magnetic_field_inference.py estimates the surface field from Aegis's cutoff-frequency relation and a Gaussian measurement likelihood. Install the dependencies in requirements.txt, then run the explicitly synthetic example with python examples/infer_magnetic_field.py. The fit uses a uniform magnetic-field prior and complements the forward Monte Carlo predictions with an observation-driven estimate.
The cutoff-inference notebook passes two
seeded synthetic measurements through infer_surface_field() and displays the
resulting posterior intervals and distributions. It uses
PCAT, a Markov-chain Monte Carlo package,
to sample magnetic-field values consistent with each synthetic cutoff. The
notebook illustrates likelihood and sampling. Its short chains are too brief to
assess convergence.
plotter.py plots the Monte Carlo predictive emission-frequency and radio-flux distributions from df1.csv and all.npz. The nenufar.npz and sensitivities.csv inputs add the sensitivity limits of NenuFAR and other radio telescopes.
Install Bokeh to create an interactive target view with hover values, uncertainty bars, and telescope sensitivity curves. Save the returned figure as HTML using this code.
from bokeh.io import output_file, save
from plotter import df, scatter_plot_bokeh, x_err, y_err
output_file("visuals/aegis_radio_predictions_bokeh.html")
save(scatter_plot_bokeh(df, "both", y_err, x_err))The saved interactive prediction plot contains the same 1,111 pipeline-predicted target rows used by the static view. It is self-contained and can be opened offline. Plot uncertainties must have complete, real lower and upper vectors. Masked, complex, or malformed bounds raise an error before they can become misleading error bars.
outcome_dist_hists() and scatter_plot() use white backgrounds with black
axes by default. Pass typeplotback='dark' for black backgrounds with white
axes, including saved figures. They also inherit an enclosing TDpy
plot_style() theme without changing later plots. The magnetic-field histogram
uses half-decade bins that include the smallest and largest supplied values.
The static scatter plot uses the supplied uncertainty arrays without modifying
them, including when the input table has a non-default index.
parker_spiral.py plots the interplanetary magnetic-field component at the orbit of tau Boo b from taub_wind.npz. visibility.py maps maximum elevation and time above 20 degrees for the considered telescopes using obs_table.csv. radius_valley.py compares the planetary radii and predicted magnetic-field strengths in Output Tables/all.csv. sketch.py draws the magnetized-exoplanet geometry.
does_it_make_a_difference.py quantifies how Monte Carlo uncertainty propagation changes the predicted radio-emission distributions relative to calculations based only on nominal input values.
Its default_calculate() function matches each planet by name to the wind table
for the supplied NASA catalog. A missing or duplicate planet or wind prediction
raises an error instead of selecting an ambiguous row.
exoplanet_predictions.py estimates radio power from the magnetic and kinetic
power supplied by the stellar wind, using empirical conversion efficiencies.
Its magnetic-only, kinetic-only, and combined predictions are the three
radiometric Bode-law cases. Output Tables/all.csv contains the combined radio
flux-density and maximum-frequency predictions with uncertainties for every
exoplanet. Five additional tables divide the targets by predicted frequency.
The text tables under Old Result Tables sort potentially visible candidates
by name, frequency, and flux density.
extract.py writes obs_table.csv, append.py writes append_table.csv for the radio catalog, and visibility.py writes the manuscript table final-table.csv.
Known limitations are summarized in known_problems.md.
The development of aegis has been supported by the McDonnell Center for Space Sciences at Washington University.
