Main Content

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 Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

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');

Version History

Introduced in R2012a