Contents Menu Expand Light mode Dark mode Auto light/dark mode
Astronomical Computing
Astronomical Computing

Contents:

  • Introduction
  • Basics
    • Operation Systems
    • Why Python
  • Scientific computing with Python
    • Scientific Python - numpy
    • Scientific Python - scipy
    • Scientific Python - matplotlib
    • Error Analysis
    • Root Finding
    • Linear algebra
    • Interpolation
    • Curve fitting
    • Numerical Differentiation
    • Numerical Integration
    • Numerical Optimization
    • Solution of ODEs
    • Error Analysis
    • Eigenvalues and Eigenvectors
  • Astronomical Data Analysis
    • Data formats
    • astropy.ndarray
  • High performance computing
  • chapter
  • References
Back to top
Edit this page

Data formats#

.fits is the most important data format in astronomy.

https://fits.gsfc.nasa.gov/fits_standard.html

https://fits.gsfc.nasa.gov/

how to read#

To read data from a .fits file:

>>> from astropy.io import fits
>>> hl = fits.open("/path/to/fits", mode="readonly")

To get HDU list info

>>> hdul.info()
123

To access HDU header data

>>> hl[0].header
Next
astropy.ndarray
Previous
Astronomical Data Analysis
Copyright © 2023, Bo Zhang
Made with Sphinx and @pradyunsg's Furo
On this page
  • Data formats
    • how to read