IDL读取fits文件

使用mrdfits函数

  这是天文学标准库中的函数,下载地址:https://idlastro.gsfc.nasa.gov/homepage.html,下载后,将pro文件夹导入到IDL工程中。

  str = MRDFITS(file_or_unit, exten_no_or_name, [ header] )
     file_or_unit:读取的文件名
     exten_no_or_name:is either the extension number to be read (0 for the primary data array), or the extension name (stored in the EXTNAME keyword)
               既可以是数字,也可以是EXTNAME中对应的名字,数字按顺序排列=EXTNAME中对应的名字按顺序排列
     header :is an optional variable in which the header information will be stored,保存为header的名字
 

references:https://idlastro.gsfc.nasa.gov/mrdfits.html

原文地址:https://www.cnblogs.com/nipper/p/14380211.html