天文吧 关注:498,644贴子:2,939,983
  • 6回复贴,共1

求教如何用idl程序打开fits格式的文件

只看楼主收藏回复

跪求大神指点,想用idl读取一下普朗克卫星的数据


1楼2014-05-19 10:59回复
    IDL只是个编译器啊,你得写程序才行


    IP属地:北京来自手机贴吧2楼2014-05-19 11:09
    收起回复
      2025-06-04 17:41:28
      广告
      pro image_pick
      print,’Please input the lines of the header:’
      read,n
      print,’Please input the pixels of the image:’
      read,x,y
      head=IntArr(80*n) ;define the header of a file
      data=IntArr(x,y) ;x for x-axis and y for y-axis
      abc=dialog_pickfile(file=’E:\HFI_SkyMap_100_2048_R1_nominal.fits’) ;choose a file(这一行报错了)
      openr,lun,abc,/get_lun ;open the file
      readu,lun,head ;read the header
      print,head ;print the header
      readu,lun,data ;read data
      close,lun ;close the file
      free_lun,lun
      window,1 ;show the image
      tvscl,data
      window,2 ;plot the data
      plot,data
      end
      我再吧里找到了一份这样的程序,可是第八行有错误,求大神指点


      3楼2014-05-19 14:19
      回复
        拜膜计算机大神………


        来自Android客户端4楼2014-05-19 18:58
        收起回复
          求大神啊


          5楼2014-05-20 12:29
          回复