HIDE 数据模拟器文档 : Hydrogen (HI) Data Emulator

 源文档链接:HIDE: Hydrogen (HI) Data Emulator 0.1.0 documentationicon-default.png?t=L892https://hide.readthedocs.io/en/latest/index.html#HIDE软件包是由苏黎世联邦理工学院天文学研究所宇宙学研究小组的软件实验室开发的。

宇宙学研究小组的软件实验室 Software Lab of the Cosmology Research Grouphttp://www.cosmology.ethz.ch/research/software-lab.html  苏黎世联邦理工学院天文学研究所 ETH Institute of Astronomyhttp://www.astro.ethz.ch/.

The development is coordinated on GitHub and contributions are welcome. The documentation of HIDE is available at readthedocs.org .

目录

HIDE: Hydrogen (HI) Data Emulator

Installation

Usage

hide Package

Subpackages

Tips


HIDE: Hydrogen (HI) Data Emulator

HIDE is a package for simulating of a single dish radio telescope survey. As such, it takes healpix maps as inputs and processes them into TOD. The design is flexible and can be customized to different instruments and survey designs.

HIDE 是一个用于模拟单碟射电望远镜调查的软件包。因此,它将 healpix 映射作为输入并将它们处理到 TOD 中。设计灵活,可根据不同的仪器和测量设计进行定制。

Installation

The project is hosted on GitHub. Get a copy by running:

该项目位于 GitHub 上。通过运行获得一个副本:

$ git clone https://github.com/cosmo-ethz/hide.git

Install the package like this:

像这样安装包:

$ cd hide
$ pip install -r requirements.txt
$ python setup.py install --user

Alternatively, if you want to develop new features:

或者,如果你想开发新功能:

$ cd hide
$ python setup.py develop --user

Usage

To use Hydrogen (HI) Data Emulator in a project execute the following on the command line:

要在项目中使用 Hydrogen (HI) 数据模拟器,请在命令行中执行以下命令:

$ hide --strategy-start=2016-03-21-00:00:00 --strategy-end=2016-03-21-23:59:00 --verbose=True hide.config.bleien7m

This will simulate one day of time-ordered-data from the Bleien 7m radio telescope.

这将模拟 Bleien 7m 射电望远镜一天的时间顺序数据。

To visualize 15 minutes of the generated data run this:

要可视化生成的15分钟数据,请运行以下命令:

import matplotlib.pyplot as plt
import matplotlib
import h5py

with h5py.File("./2016/03/21/TEST_MP_PXX_20160321_000000.h5", "r") as fp:
    tod = fp["P/Phase1"].value
    time = fp["TIME"].value

plt.imshow(tod, aspect="auto",
           extent=(time[0], time[-1],990, 1260),
           cmap="gist_earth", norm=matplotlib.colors.LogNorm())
plt.colorbar()

simulated Bleien 7m dish data

hide Package

Subpackages

Tips

To run a subset of tests:

运行测试的子集:

$ py.test test/test_hide.py

猜你喜欢

转载自blog.csdn.net/u014546828/article/details/120705789