www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/GetInformationAboutFITSFileExample.m
%% Get Information About FITS File % Use |fitsinfo| to obtain information about the FITS file |tst0012.fits|. % The returned structure contains |Filename|, |FileModDate|, |FileSize|, % |Contents|, and |PrimaryData|. In addition to its primary data, the file % also contains an example of the extensions |BinaryTable|, |Unknown|, % |Image|, and |AsciiTable|. %% S = fitsinfo('tst0012.fits'); %% % View the |PrimaryData| field. S.PrimaryData %% % The |PrimaryData| field describes the data in the file. For example, the % |Size| field indicates the data is a 109-by-102 matrix. %% % View the |AsciiTable| field. S.AsciiTable %% % The |AsciiTable| field describes the |AsciiTable| extension. For example, % using the |FieldWidth| and |FieldPos| fields you can determine the length % and location of each field within a row.