Fermi-LLM

Documentation

← Back to app

Analysis capabilities

What you can ask Fermi-LLM to do, one card per capability. Each card has an example request; open Details for more.

33 capabilities

Targets and data

What is analysed: the source, the time range, the events.

Any catalog source, by name

Name a source as you would in a paper; the app finds its 4FGL-DR4 entry, or its entry in another catalog of Browse.

TrySED of Markarian 421 over the last year.
Details

Common names, associations, spelling variants (Mrk, Mkn, Markarian) and 4FGL designations all resolve to the same catalog source. The app writes that source as the target and never swaps in a different one.

Names from the other catalogs in Browse work too (FL16Y, 4FGL-DR3, 4LAC-DR3, 4FHL, 3FHL, 2FHL): a designation such as 4FHL J0009.4+5031, or a name only that catalog gives. When the source is also in 4FGL-DR4, the analysis uses the 4FGL-DR4 source and the reply says how the two were matched. Otherwise it is added as a new point source at that catalog’s position, under the catalog’s name, and the rest of the model still comes from 4FGL-DR4.

A name in none of these catalogs (an older or survey name, a supernova) is looked up in SIMBAD and NED. When one of the object’s names or its position is a 4FGL-DR4 source, that source is analysed; otherwise a new point source at the position they give, named from its coordinates. The reply says what was found.

A name typed into the YAML panel, or one that could not be looked up when the analysis was drafted, is looked up again at Validate. A match is shown as a proposed change to the YAML, never made silently: Apply it, or Discard it and give the position yourself. When SIMBAD or NED corrected the name (NCG 383 read as NGC 383), the proposal says so. If the script still works on another source that lies outside the analysed region (for example after the target was changed in the YAML only), Validate stops and says so before anything runs.

Custom positions

Analyse a position that is not in 4FGL by giving its RA and Dec, as a point source or as a disk or Gaussian.

TryFit a point source at RA 156.6, Dec 25.7 over 2024.
Details

The position becomes one point source, named in the catalog style (PS J1026.4+2542).

For an extended source, give its shape with its size: “a disk of radius 0.5°”, “a Gaussian with sigma 0.3°” (FWHM, diameter and 68% containment radius work too). It is named EXT J1026.4+2542. A shape without a size stays a point source, and the reply says so.

Coordinates that fall within a 4FGL source’s 95% error radius are analysed as that catalog source, and the reply says so. An extended source there is added beside the catalog source, as for a halo around a pulsar.

To check whether a point source is extended, ask for an extension test on it (below, under Products).

Gamma-ray bursts and short transients

The standard burst setup for a GRB, or for any window shorter than 200 s.

TryAnalyze GRB 130427A from the trigger to 100 s later.
Details

No catalog sources, TRANSIENT020 events (SOURCE for windows over 200 s), a zenith cut of at least 100°, and only the isotropic background and the burst left free. Your request can change any part.

Guided offers well-known LAT bursts with their trigger time and T90, and moves a window out of the LAT bad time interval of GRB 221009A.

For those bursts (080916C, 090510, 090902B, 090926A, 130427A, 190114C, 221009A) the name is enough: the position comes from the afterglow, and a window can be given in seconds after the trigger (“the first 100 s”, “from T0−5 s to T0+300 s”); without one, the GBM T90 window is used. For another burst, give its position, or give the window and the app takes the position SIMBAD has, naming its source.

Time ranges and data

Any time range of the mission, from the weekly all-sky files updated every night.

TryLight curve of 3C 454.3 from 2010-11-01 to 2010-12-15.
Details

Without a range, the last 365 days of data are used.

Dates, UTC times, MJD, mission elapsed time (MET), relative times such as “100 s later” and phrases such as “the last 6 months” or “the latest data” are converted by the app, leap seconds included.

Event selection

Event class and type, with the matching IRFs, isotropic template and zenith cut.

TryUse CLEAN events, PSF3 only.
Details

The app follows the FSSC data-selection recommendations: the IRFs and the isotropic template follow the event class, the zenith-angle cut follows the minimum energy unless you set one, and the standard good-time filter is applied.

The transient classes are read from the weekly extended files.

Energy range and binning

The energy range you ask for, binned at FermiPy’s 8 bins per decade unless you ask otherwise.

TrySED of Vela from 100 MeV to 300 GeV with 10 energy bins.
Details

A number of SED bins becomes bin edges for the SED on the analysis grid; a finer analysis grid is used only when the edges cannot sit on it.

The analysis cannot start below 50 MeV, where the Galactic diffuse model begins: a lower minimum energy is raised to 50 MeV, with a note.

ROI, source region and catalog

The counts-map width, the region whose sources are modelled, and the catalog.

TryUse a 12 degree ROI and model the sources in a 20 degree square.
Details

The model region is a square by default, or a circle if you ask. The catalog can be changed or left out.

The ROI builder of Browse catalogs sets the region and which sources are free, then starts the analysis.

Sun and Moon near the target

A warning when the Sun or the Moon passes near the target, and a cut on request.

TryExclude the times when the Sun and the Moon are within 10 degrees of 3C 279.
Details

Validate warns, with the dates, when the Sun, or the Moon where it matters, comes near the target during the time range (within the counts map, and at least 5°).

On request the app removes those times with the data filter, for any time range. The Moon’s position, as seen from Fermi, is added to a copy of the spacecraft file for the run. The report and the run summary carry a Sun and Moon line.

Model and fit

How the model is built and fitted.

Likelihood fit with science checks

gta.optimize(), gta.fit()

A binned likelihood fit, checked against the 4FGL catalog.

TryFit 4C +21.35 over the last 6 months.
Details

The normalizations of the sources near the target are free by default.

Spectral shape

gta.set_source_spectrum()

Fit the target with another spectral shape.

TryFit 3C 279 with a log-parabola.
Details

The model writes the change into the script after setup, and Validate checks that the call and its options exist in FermiPy. The Methods text gives the fitted shape’s formula.

What the fit frees

Choose which sources and parameters are free, fixed or set to a value.

TryFit Mrk 501, free only its normalization and index, keep everything else fixed.
Details

“Free only X”, “keep the Galactic diffuse fixed”, “everything else except X”, or a parameter fixed at a value: the script keeps those sources out of the optimization and never frees them.

Priors

Gaussian priors on parameters, or normalizations constrained to their errors.

TryPut a Gaussian prior of 2.1 ± 0.1 on the index of PKS 2155-304.
Details

A prior is stated in the parameter’s true units and converted to FermiPy’s scale by the app. Normalizations can be constrained to a percentage or to their fitted errors.

The Outputs panel shows each prior’s mean, width, fitted value and pull.

Likelihood weights

Use an existing weights map in the likelihood.

TryUse the weights map wmap.fits.
Details

The Outputs panel and the report show the smallest weight and the share of the map that is down-weighted.

Correlation matrix

gta.fit_correlation()

The correlations between the fitted normalizations.

TryShow the correlation matrix of the fit.
Details

Shown as a heat table in the Outputs panel and the task report.

Follow-up tasks

Continue from a fitted model without fitting again.

TryNow make a TS map of the region.
Details

A follow-up continues from the model the previous task saved and runs only the new steps. Any earlier task can be the starting point.

A change of data selection, binning or model setup starts a new chain, in this session or in a new one.

Products

What a run can produce.

SED

gta.sed(), gta.bowtie()

Band fluxes with upper limits, the likelihood profile and the spectral band.

TrySED of Mrk 421 with 8 bins.
Details

Upper limits at 95% where the source is not detected (TS < 4). The likelihood profile is drawn behind the points; the spectral uncertainty band (bowtie) on request.

Ask for catalog points (“and overlay the 4FGL-DR4 band points”) and the card adds the target's band points or limits and spectral model from that catalog, labelled with the time its data span, with a switch over the catalogs that list the target (4FGL-DR4, FL16Y, 4FHL and the others installed). Energies in GeV or TeV, E² dN/dE in erg cm⁻² s⁻¹ and a title can be asked for too; the task report shows the same. Without the request, Compare overlays catalog entries.

Light curve

gta.lightcurve()

Fluxes in time bins, by number of bins or by duration.

TryMonthly light curve of 3C 279 over 2024.
Details

FermiPy’s variability test is kept with the curve. Discuss can compute more from the bins (see Computations on the results).

TS map and TS cube

gta.tsmap(), gta.tscube()

Where a new point source would improve the fit.

TryTS map of the Crab region above 1 GeV.
Details

√TS and Npred maps, and the TS histogram against the χ² expectation. The peak, its position and the value at the target are read out under the map.

Residual map

gta.residmap()

Data against model across the ROI.

TryMake a residual map after the fit.
Details

Significance, excess, data and model maps, with the significance histogram and its Gaussian fit.

PS map

gta.psmap()

Data–model deviations in each pixel, over all energy bins at once.

TryMake a PS map of the ROI.
Details

PS significance and PS maps, the histogram, and the count spectrum at the peak.

Localization

gta.localize()

The best position of a source, with its error ellipse.

TryLocalize Mrk 421 and update its position.
Details

The 2ΔlnL scan with the 68%, 95% and 99% contours and the error ellipse. The source’s position in the model can be updated.

Extension test

gta.extension()

Whether a source is extended.

TryTest whether IC 443 is extended with a disk model.
Details

A disk or Gaussian model, optionally with the background free: TS_ext, R68 and the extension TS map.

Source search

gta.find_sources()

New point sources the catalog is missing.

TrySearch for new sources with TS above 25.
Details

With the TS threshold and minimum separation you give; the new sources join the model.

Curvature test

gta.curvature()

Whether the spectrum is curved.

TryTest the spectrum of PG 1553+113 for curvature.
Details

The power law compared with curved shapes, with TS_curv.

Photon source probabilities

gta.compute_srcprob()

For each event, the probability that it came from each source.

TryCompute the probability of each photon coming from Vela.
Details

Computed with gtdiffrsp and gtsrcprob, as an event file to download.

Simulations

Simulated data from the fitted model.

Simulated sky and injected sources

gta.simulate_roi(), gta.simulate_source()

Replace the counts with a draw of the model, or add a fake source.

TrySimulate the ROI from the fitted model and refit it.
Details

The task is marked simulated and skips the 4FGL comparison. If its counts are still simulated at the end, they are kept with the task: a follow-up continues on the same simulated data (an injected source and its fit included), and is marked simulated too. To work on the real data again, continue from a task before the simulation.

The light curve is made from the photon files for each time bin, so simulated counts never reach it; Validate says so.

Simulation study

gta.simulation_study()

Many draws of the fitted model, each refitted, for bias, coverage and detection probability.

TryRun a simulation study with 50 simulations to get the detection probability of the target.
Details

Draws of the fitted model, or of the model plus an injected source: the target’s TS, flux and parameter pulls, the detection fraction and the 1σ coverage, with histograms.

Working with the results

What you can do with a finished task.

Computations on the results

Ask Discuss for numbers the run did not give; it computes them from the saved results.

TryDoes a log-parabola fit the SED better than a power law?
Details

A short calculation runs in the sandbox on the tasks’ saved fits, SED likelihood scans and light-curve bins, and the target’s catalog band points: a flux or energy flux in another band with its error, the peak energy, a luminosity at a redshift, another spectral shape fitted to the SED and compared by TS and AIC, variability tests, Bayesian blocks, doubling times, the SED against a catalog’s band points, tables and plots.

Nothing is refitted to the photons: another spectral shape here is fitted to the SED points’ likelihood scans, a quick answer in seconds. For the full answer, refitted to the photons, ask for it as the next task in Draft (“refit with a log-parabola”, or the curvature test); a TS at a new position or other bins are also next tasks.

Each result says how it was computed. Keep adds it to the task’s outputs and to the notebook. When to use Discuss, Compare or a new task, and the helpers with their code.

Compare view

Overlay the SEDs and light curves of several tasks or catalog entries.

OpenOutputs panel → Compare…
Details

Up to 8 tasks, from this session or any session you can open, and catalog entries; a table of the fit numbers; CSV and SVG downloads. Add to the task's results saves the overlays and the table under a task of the session, in its outputs and its report.

Task report

One page per task, to keep or share.

OpenReport, in a finished task’s header
Details

The requests, the setup, the fit numbers and checks, the plots, and the exact YAML and script that ran. It can be downloaded, printed to PDF and shared.

Methods text

A paper-style description of the analysis.

OpenMethods, in a finished task’s header
Details

Written from what the tasks ran by a fixed template, without a language model, so every setting and number comes from the run’s own records and the same tasks always give the same text. With the works cited, as plain text, Markdown, or LaTeX with BibTeX.

Downloads

The files a session ran and made, to keep or to run elsewhere.

OpenThe Downloads card, under a run’s results
Details

YAML + Python: the configuration and script that ran, with a summary of the session’s tasks.

All outputs: the products, plots and saved models, in a folder per task with a README. The selected photons of each setup (FT1) are included, so the scripts can be run again without the all-sky files. Left out: the spacecraft file (FT2: large, and public at the FSSC; the README says where), any file over 100 MB, usually the source maps and livetime cube of a long analysis, which a setup re-makes, and the photon source probabilities, which have their own download link in their card.

Log files: the language-model log and the FermiPy log.

Notebook: a Jupyter notebook with a section per finished task (its code, output, results, and SED and light-curve points and plots) plus a cell for the data paths, so it runs on another machine with FermiPy.

Scheduled re-runs

Repeat a task with the newest data.

OpenMonitor, on a finished task
Details

Every N days, on a sliding or growing time window, with an email or a push notification when it finishes.