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.

fitsdisp

Display FITS metadata

Syntax

fitsdisp(filename)
fitsdisp(filename,Name,Value)

Description

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

filename

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.

'Index'

Positive scalar value or vector specifying the HDUs.

'Mode'

Specified as one of the following:

  • 'standard' – Display standard keywords

  • 'min' – Display only HDU types and sizes

  • 'full' – Display all HDU keywords

Default: 'standard'

Examples

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

fitsdisp('tst0012.fits','Index',2);

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

fitsdisp('tst0012.fits','Index',5,'Mode','full');

References

For copyright information, see the cfitsiocopyright.txt file.

Introduced in R2012a