What Is X-ray Astronomy and How Do You Use NASA's HEASARC Archive?

Updated

X-ray astronomy is the study of celestial objects by the X-ray radiation they emit, and because Earth's atmosphere absorbs those X-rays, the observations must be made by instruments in space. NASA's HEASARC (High Energy Astrophysics Science Archive Research Center) is the agency's designated multi-mission archive for this kind of data, covering the extreme ultraviolet, X-ray, and gamma-ray bands as well as cosmic microwave background datasets. You can use it to find, download, and analyze real observations from missions such as Chandra, XMM-Newton, NuSTAR, Swift, NICER, IXPE, and XRISM — the site states its data, software, and tools are available freely for your use.

Why X-ray astronomy needs space-based observatories

X-rays from distant stars, black holes, and galaxy clusters do not reach the ground. The atmosphere blocks them, which is why every X-ray telescope is a satellite. That single fact shapes how the field works: data arrives from orbit, gets calibrated and archived, and is then re-used by researchers around the world long after the original observation.

HEASARC exists to make that re-use practical. It is described as NASA's multi-mission archive for cosmic astronomy datasets in the EUV, X-ray, and gamma-ray wave bands, and it also hosts CMB data through its LAMBDA center.

What you can find in the HEASARC archive

The archive is organized around missions and their instruments. Active guest observer facilities and science centers listed on the site include:

  • Chandra — high-resolution X-ray imaging and spectroscopy
  • XMM-Newton — large-area X-ray spectroscopy
  • NuSTAR — focusing hard X-ray telescope
  • Swift — rapid-response gamma-ray burst and transient observatory
  • NICER — X-ray timing on the International Space Station
  • IXPE — X-ray polarization
  • XRISM — X-ray imaging and spectroscopy
  • eROSITA / ART-XC (SRG), Einstein Probe, MAXI, HXMT-Insight, XPoSat, and others

Alongside raw and processed observations, the archive provides multi-mission software, analysis tools, and information about both current and past observatory missions.

How to search and access the data

There are several entry points, and the right one depends on how much control you want.

Interactive web portal

The primary route is the interactive Web Portal for data discovery and exploration. A classic Browse portal also remains available. This suits browsing by mission, target, or table without writing code.

Xamin and the query interface

Xamin is the archive's search system, and the site provides example queries that show the syntax. For instance:

  • Find ROSAT tables with information on 3C 273: '3c 273' rosat or 3c273 rosat
  • Find long Chandra exposures: chanmaster exposure>10000 status='archived'
  • Find cataclysmic variables that include AM Her: 'AM Her' cataclysmic
  • Find long ROSAT observations of Messier objects in Scorpius: messier rosmaster a.constell='SCO' b.exposure>20000

The pattern is a target or table name plus constraints on columns such as exposure or status. After you submit a query, the system runs it and redirects you to the search portal.

Programmatic access

If you prefer scripts or notebooks, the archive offers API access through the Xamin API, the astroquery Heasarc module, and Virtual Observatory protocols using pyvo. These let you pull catalog and observation metadata into your own analysis environment.

Analyzing X-ray data: software and platforms

Finding data is only half the task; you also need tools to reduce and interpret it.

  • HEASoft — the core high-energy analysis package. Version 6.37.0 is available, and HEASoft and XSPEC can be installed as conda packages.
  • XSPEC — the standard spectral-fitting tool for X-ray data.
  • Other high-energy software — CAIO, XMM-SAS, Fermitools, and Spex are also part of the ecosystem.

For running these without a local install, HEASARC@SciServer is an analysis-ready platform where both data and software are reachable through a browser, and HEASoft and other high-energy software are pre-installed there. HEASARC is also part of the NASA Fornax Initiative, which is building a next-generation cloud-based science platform; the site notes that Fornax is welcoming interested beta users to analyze HEASARC, IRSA, and MAST data in the cloud.

A practical starting path

  1. Pick a mission and target relevant to your question.
  2. Use the Web Portal or Xamin to locate observations, or query programmatically with astroquery or pyvo.
  3. Download the data products you need.
  4. Reduce and fit them with HEASoft and XSPEC — locally, via conda, or on SciServer.
  5. Check the latest news for version requirements before analyzing recent observations.

That last point matters. The site warns that analyzing any NuSTAR observations taken on or after September 24, 2026 requires NuSTARDAS v2.1.6, found in the latest HEASoft v6.37.1 release, even though the general analysis process is unchanged. Version mismatches like this are a common source of confusing results, so confirm the required software release for your specific dataset before you begin.