fitsdisp
显示 FITS 元数据
说明
fitsdisp(
使用一个或多个名称-值参量指定选项。例如,filename
,Name=Value
)fitsdisp(filename,Mode="full")
显示所有 HDU 关键字。
示例
fitsdisp("tst0012.fits")
HDU: 1 (Primary HDU) SIMPLE = T / Standard FITS file BITPIX = -32 / No. of bits per pixel NAXIS = 2 / No. of axes in matrix NAXIS1 = 102 / No. of pixels in X NAXIS2 = 109 / No. of pixels in Y EXTEND = T / There may be FITS extensions CDELT1 = 3.1 / Coordinate increment CRVAL1 = 1299.1 / Coordinate of reference pixel CRPIX1 = 12.3 / Reference pixel in X ...
fitsdisp("tst0012.fits",Index=[4 5])
HDU: 4 XTENSION= 'IMAGE ' / FITS IMAGE Extension BITPIX = 16 / No. of bits per pixel NAXIS = 3 / Three axes NAXIS1 = 73 / No. of pixels in X NAXIS2 = 31 / No. of pixels in Y NAXIS3 = 5 / No. of pixels in Z PCOUNT = 0 / No group parameters GCOUNT = 1 / One data group only EXTNAME = 'quality ' / Extension name EXTVER = 1 / Extension version is 1 OBJECT = 'Ramp 16-bit' / Name of image ORIGIN = 'ESO ' / File was prepared at ESO-Garching DATE = '20/08/92' / Creation date of this file COMMENT This test file was created by P.Grosbol, ESO (pgrosbol@eso.org) COMMENT Simple 16-bit ramp wave pattern for testing of FITS readers CDELT1 = -2.3 / Coordinate increment CRVAL1 = -73.0 / Coordinate of reference pixel CRPIX1 = 12.1 / Reference pixel in X CDELT2 = 7.1 / Coordinate increment CRVAL2 = 300.6 / Coordinate of reference pixel CRPIX2 = -11.3 / Reference pixel in Y CDELT3 = .003 / Coordinate increment CRVAL3 = 21.2 / Coordinate of reference pixel CRPIX3 = 199.0 / Reference pixel in Y HDU: 5 XTENSION= 'TABLE ' / FITS ASCII table extension BITPIX = 8 / Character data 8 bits per pixel NAXIS = 2 / ASCII tables has 2 axes NAXIS1 = 59 / Characters in row ...
fitsdisp("tst0012.fits",Index=5,Mode="full")
HDU: 5 XTENSION= 'TABLE ' / FITS ASCII table extension BITPIX = 8 / Character data 8 bits per pixel NAXIS = 2 / ASCII tables has 2 axes NAXIS1 = 59 / Characters in row NAXIS2 = 53 / No. or rows in table PCOUNT = 0 / No group parameters GCOUNT = 1 / only one group TFIELDS = 8 / No. of table fields EXTNAME = 'Asciitable' / Extension name EXTVER = 1 / Extension version is 1 EXTLEVEL= 1 / Extension level is 1 ...
输入参数
FITS 文件的名称,指定为字符串标量或字符向量。
如果文件位于当前文件夹中或 MATLAB® 路径上的文件夹中,则在
filename
中指定文件名。如果该文件既不在当前文件夹中,也不在 MATLAB 路径下的文件夹中,则在
filename
中指定完整或相对路径。
示例: "myFile.fits"
示例: "C:\myFolder\myFile.fits"
示例: "myFolder\myFile.fits"
名称-值参数
将可选的参量对组指定为 Name1=Value1,...,NameN=ValueN
,其中 Name
是参量名称,Value
是对应的值。名称-值参量必须出现在其他参量之后,但参量对组的顺序无关紧要。
示例: fitsdisp("myFile.fits",Mode="min")
在 R2021a 之前,使用逗号分隔每个名称和值,并用引号将 Name
引起来。
示例: fitsdisp("myFile.fits","Mode","min")
要显示的 HDU,指定为正整数标量或正整数行向量。
示例: Index=1
示例: Index=[2 3]
数据类型: double
显示类型,指定为 "standard"
、"min"
或 "full"
。
"standard"
- 显示标准关键字。"min"
- 仅显示类型和大小。"full"
- 显示所有关键字。
数据类型: string
| char
版本历史记录
在 R2012a 中推出
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)