下载方式
git clone https://gitlab.com/houben.ljm/frb-faker.git
git clone git@gitlab.com:houben.ljm/frb-faker.git
源网址链接 : FRBfaker
optional arguments:
-h, --help
show this help message and exit
-b NBITS, --nbits NBITS
设置输出的filterbank 数据, 默认为 8-bit, 或者与输入的filterbank 相同
Number of bits in the output Filterbank file. Defaults to same as input Filterbank, else 8-bit. (default: None)
-o OUTNAME, --outname OUTNAME
输出的文件名字
Name of output file. (default: Injected-SP_59652_3708135942.fil)
–block-size BLOCK_SIZE
每次读取的光谱数。这是一次操作/写入的数据量。(默认:10000) manipulated/written at a time. (default: 10000)
–save_prof
将创建的(未消色散且未处理)SP配置文件保存到数字ndarray文件(.npy)(默认值:FALSE)
Save the created (undispersed and unpropagated) SP profile to a numpy ndarray file (.npy) (default: False)
–plot_prof
以交互方式绘制创建的(未分散的)SP配置文件。(默认:FALSE)
Interactivally plot the created (undispersed) SP profile. (default: False)
-v, --verbose
打印更多操作详细信息
Print more operation details (default: False)
SP(Single Pulse) profile arguments:
–prof (file name).npy
导入用户的numpy格式形状文件 .npy, (默认为:False)
Load custom numpy profile from .npy (default: False)
–Tprof FWHM or ctr0,amp0,fwhm0, … , ctrN,ampN,fwhmN
指定时域中SP配置文件的形状。带有半高宽的单高斯(以秒为单位)或以逗号分隔的列表中具有参数的多高斯。(默认:0.002)
Specify shape of SP profile in the time domain. Either a single Gaussian with FWHM (in seconds) or multi-Gaus with params in a comma seperated list. (default: 0.002)
–Fprof FWHM or ctr0,fwhm0, … , ctrN,fwhmN
指定频域中SP配置文件的形状。带有半高宽的单高斯(以秒为单位)或以逗号分隔的列表中具有参数的多高斯。(默认:FALSE)
Specify shape of SP profile in the frequency domain. Either a single Gaussian with FWHM (in seconds) or multi-Gaus with params in a comma seperated list. (default: False)
–amp2snr
表示–Tprof的给定幅度以SNR为单位。即不应用稍后的SNR缩放。(默认:FALSE)
Indicates that the given amplitudes for --Tprof are in units of SNR. I.e. do not apply later SNR scaling. (default: False)
–abssnr
假设Tprof的信噪比为绝对信噪比,即考虑脉冲重叠。否则,子组件只是堆叠在一起。(默认值:False)
Given Tprof SNRs are absolute SNRs, i.e. take pulse overlaps into account. Otherwise subcomponents are just stacked on top of each other. (default: False)
-d DM, --dm DM
(假)注入信号的色散测量。(默认值:0.0)
Dispersion measure of the (fake) injected signal. (default: 0.0)
-t PT, --time PT
从数据集开始,在最高频带内注入脉冲的时间(以秒为单位)。(默认值:0.0)
Time at which the pulse should be injected in the highest frequency band from the start of the data set (in seconds). (default: 0.0)
–sp_idx alpha nu_ref
如果给定,通量(S)应按
S
=
S
∗
(
n
u
/
n
u
r
e
f
)
)
α
S = S*(nu/nu_{ref}))^{\alpha}
S=S∗(nu/nuref))α缩放(in MHz)。(默认值:[0.0,None])
If given, flux (S) should be scaled according to
S
=
S
∗
(
n
u
/
n
u
r
e
f
)
)
α
S = S*(nu/nu_{ref}))^{\alpha}
S=S∗(nu/nuref))α(in MHz). (default: [0.0, None])
–sp_run zeta
使用光谱运行的尺度通量(S):
S
=
S
∗
(
n
u
/
n
u
r
e
f
)
(
α
+
ζ
∗
(
n
u
/
n
u
r
e
f
)
)
S =S*(nu/nu_{ref} )^{(\alpha + \zeta*(nu/nu_{ref}))}
S=S∗(nu/nuref)(α+ζ∗(nu/nuref))(in MHz)。(默认值:0)
Scale flux (S) using a spectral running:
S
=
S
∗
(
n
u
/
n
u
r
e
f
)
(
α
+
ζ
∗
(
n
u
/
n
u
r
e
f
)
)
S =S*(nu/nu_{ref} )^{(\alpha + \zeta*(nu/nu_{ref}))}
S=S∗(nu/nuref)(α+ζ∗(nu/nuref))(in MHz).(default: 0)
–patchy
创建一个随机的“斑点”的发射。即脉冲只在有限的频率范围内可见。(默认值:False)
Create a random ‘blob’ of emmision. I.e. the pulse is only visible in a limited frequency range. (default: False)
–drift drift_rate cav_widths
用频率以“drift_rate”(MHz)为速率向下漂移的子分量进行突发。每个子组件峰值之间以秒为单位的距离在一个带有cav_width的逗号分隔列表中给出。(默认值:False)
Make a burst with subcomponents that drift down in frequency with a rate ‘drift_rate’ in MHz. The distance in seconds between each subcomponents peak is given in a comma-seperated list with cav_widths. (default: False)
–tilt angle
角度或逗号分隔的角度列表(以度计),使单个子分量围绕其峰值强度倾斜。(默认值:False)
Angle or comma seperated list of angles (in degrees) over which to tilt the individual subcomponents around heir peak intensity. (default: False)
–cleave FWHM or ctr0,fwhm0, … , ctrN,fwhmN
在脉冲剖面中心创建一个宽半宽宽的空腔,或者在给定的ctrs相对于脉冲剖面中心的地方创建几个空腔。 所有的值都应该以秒为单位,并且允许为负数(但是不要以负数开始列表!)(默认值:False)
Create a cavity of width FWHM at the centre of the pulse profile, or create several where the given ctrs are relative to the centre of the pulse profile. All values should be given in seconds and negative values are allowed (but do not start the list with a negative value!). (default: False)
–scint [sc_bw]
引入一个sc_bw MHz的sc_bw MHz的频率变化幅度。(默认值:False)
Introduce a varying amplitude in frequency with a scintal bandwidth of sc_bw MHz. (default: False)
–smear
SP的DM配置文件。(默认值:False)
DM smear the SP profile. (default: False)
–scatter [tau_scatt]
通过Cordes和Lazio 2003(默认值)或
(
n
u
/
n
u
r
e
f
)
−
4.4
(nu/nu_ref)^{-4.4}
(nu/nuref)−4.4关系分散SP配置文件的加宽函数(给tau_scatt秒,你会提示给nu_ref)。(默认值:False)
Scatter the SP profile with broadening function by Cordes and Lazio 2003 (Default) or a
(
n
u
/
n
u
r
e
f
)
−
4.4
(nu/nu_ref)^{-4.4}
(nu/nuref)−4.4 relation (give tau_scatt in seconds, you will be prompted to give nu_ref). (default: False)
–scat_dm SCAT_DM
用于散射的弥散度量。默认值与SP的DM相同。(默认值:None)
Dispersion measure to use for scattering. Defaults to same as DM of SP. (default: None)
–snr SNR
形状大小以获得给定S/R的脉冲。(默认值:1.0)
Scale profile to atain a pulse with given S/R. (default: 1.0)
–flux flux SEFD
形状大小以获得给定通量的脉冲。(默认值:None)
Scale profile to atain a pulse with given flux. default: None)
–prop_ind
与传播效应无关的尺度轮廓。色散和散射会影响轮廓的定通量或信噪比。(默认值:False)
Scale profile independent of propagation effects. Smearing and scattering will affect the set flux or snr of profile. (default: False)