This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Display FITS metadata




fitsdisp(filename) displays metadata for all the Header/Data Units (HDUs) found in the FITS file specified by filename.

fitsdisp(filename,Name,Value) displays metadata for all the Header/Data Units (HDUs) found in the FITS file with additional options specified by one or more Name,Value pair arguments.

Input Arguments


Name of an existing FITS file specified as a character vector or string scalar.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.


Positive scalar value or vector specifying the HDUs.


Specified as one of the following:

  • 'standard' – Display standard keywords

  • 'min' – Display only HDU types and sizes

  • 'full' – Display all HDU keywords

Default: 'standard'


Display metadata in the 2nd HDU in the FITS file.


Display the metadata in the 1st, 3rd, and 5th HDUs in a file.

fitsdisp('tst0012.fits','Index',[1 3 5]);

Display all metadata in the 5th HDU in a file



For copyright information, see the cfitsiocopyright.txt file.

Introduced in R2012a