readFrameFromFITS(FITSio)
readFrameFromFITS()所属R语言包:FITSio
Read a single data set from a FITS file into a data frame
FITS文件从一个数据框到一个单一的数据集
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Read a binary table from a FITS file directly into an R data frame.
读取二进制表从FITS文件,直接导入R的数据框。
用法----------Usage----------
readFrameFromFITS(file, hdu = 1)
参数----------Arguments----------
参数:file
existing FITS file name.
现有的FITS文件名。
参数:hdu
position of Header and Data Unit (HDU) in FITS file: 1 for the first HDU, 2 for the second HDU, etc.
HDU,第二HDU等FITS文件头和数据单元(HDU):1位置
Details
详细信息----------Details----------
readFrameFromFITS reads a single binary table Header and Data Unit (HDU) pair from a file and returns the values as a data table.
readFrameFromFITS从文件中读取一个二进制文件中的表头和数据单元(HDU)对,并返回数据表中的值。
Binary table bit, complex, and array descriptor data types are not implemented in this release due to a lack of examples for testing.
由于缺乏进行测试的例子,在此版本中没有实现位二进制表,复杂的,和数组描述符数据类型。
值----------Value----------
An R data frame with the contents of the requested binary table.
一个R的数据框中的内容的请求的二进制表。
注意----------Note----------
Graphical FITS viewers such as fv (http://heasarc.gsfc.nasa.gov/ftools/fv/) and SAOImage DS9 (http://hea-www.harvard.edu/RD/ds9/) have excellent facilities for displaying FITS data, headers, and file structure. Having one or more graphical viewers available will prove extremely useful for working with FITS files, even when the data are read into R for further processing. fv and SAOImage DS9 are in active devlopement with support for unix, Windows, and Mac OS-X operating systems, and are available at no cost.
图形FITS收看,如FV(http://heasarc.gsfc.nasa.gov/ftools/fv/)和SAOImage DS9(http://hea-www.harvard.edu/RD/ds9/)的观众有一流的设施,用于显示FITS数据,头文件和文件结构。提供具有一个或多个图形的观众将FITS文件工作证明是极为有用的,即使当数据被读入R然后进一步处理。 FV和SAOImage的DS9都在积极devlopement UNIX,Windows和Mac OS X操作系统的支持,并且可在没有成本。
(作者)----------Author(s)----------
Eric H.\ Neilsen, Jr.
参考文献----------References----------
Hanisch et al., Astron.\ Astrophys. 376, 359-380 (2001)
http://fits.gsfc.nasa.gov/
参见----------See Also----------
readFITS
readFITS
实例----------Examples----------
require("FITSio")
## Either download example file from[#在下载示例文件]
## <http://fits.gsfc.nasa.gov/fits_samples.html>[#<http://fits.gsfc.nasa.gov/fits_samples.html>]
## and use[#使用]
## Not run: filename <- "IUElwp25637mxlo.fits"[#不运行:文件名 - “IUElwp25637mxlo.fits”]
## or, for local example use[#或本地实例使用]
filename <- system.file("fitsExamples", "IUElwp25637mxlo.fits",
package = "FITSio")
## Get data and display[#获取数据并显示]
F <- readFrameFromFITS(filename)
names(F)
plot(F$NET, ylab = "Value", main = names(F)[5], type = "l")
### Simple flat file example[##简单的平面文件示例]
filename <- system.file("fitsExamples", "2008_03_11_203150.fits",
package = "FITSio")
F <- readFrameFromFITS(filename)
names(F)
attach(F)
plot(DMJD, TiltX, xlab = "Time [DMJD]", ylab = "X Tilt [degr]", type = "l")
detach(F)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|