期刊名称:International Journal of Computer Science and Network
印刷版ISSN:2277-5420
出版年度:2014
卷号:3
期号:4
页码:234-241
出版社:IJCSN publisher
摘要:Research scientists and students especially those in astronomy normally use image data in Flexible Image Transport System (FITS) format for their simulations. Simulation tools like Meqtrees, Oskar, Map simulator and Swarp all run using FITS file. Sometimes, the image data is stored in different formats such as Hierarchical Data Format (HDF) and other formats. We need to convert the data into FITS form before using for simulations. The paper therefore presents a python program on how to extract data from HDF into FITS file. The h5py helps us to extract the image data from HDF, numpy then converts the data into an array and pyfits helps us to write the extracted data in FITS format. The h5py, numpy and pyfits are imported into python for the conversion to take place. The developed code and output are presented in Appendices A and B respectively
关键词:Hierarchical Data Format (HDF);Flexible Image Transport System (FITS);Python;h5py;numpy;pyfits