OnOff观测

方法一 和 方法二 主要区别在 是否考虑驻波相位的漂移。

方法一

  1. hifast.pos_swi 分离噪音管on、off 和 源(src)和参考点(ref)观测,然后噪音管定标,src减去ref后合并成一条谱线(保留两个偏振)。

M1-S1.sh

 1#!/bin/bash
 2
 3# enable **/
 4shopt -s globstar
 5
 6# only need input chunk *0001.fits
 7files="$(ls RAW_data/*/*/*M01*W_0001.fits)"
 8# check files
 9printf "${files}"
10echo
11# commands
12# python -m hifast sep -p 3 同时执行5个 python -m hifast.sep
13python -m hifast pos_swi -p 5 \
14    $files \
15   -d 4 -m 4 -n 36 \
16   --frange 1378  1410  \
17   --smooth gaussian --s_sigma 5 \
18   --noise_mode high \
19   --t_src 120 --t_ref 120 --t_change 30 --n_repeat 1 \
20   --only-off True \
21   --outdir 'output/%(project)s/%(date)s'
  1. 手动去基线,sin拟合驻波。

下载: M1-S2.ipynb
  1. hifast.flux 流量定标 和 hifast.multi --fc True 坐标系修正。

方法二

  1. 先不区分 源(src)和参考点(ref)观测。用跟mapping一样的方法来定标。

    M2-S1.sh

     1#!/bin/bash
     2
     3# enable **/
     4shopt -s globstar
     5# 1. Temperature calibration
     6echo "Temperature calibration:"
     7# only need input chunk *0001.fits
     8files="$(ls RAW_data/*/*/*M01*W_0001.fits)"
     9# check files
    10printf "${files}"
    11echo
    12# commands
    13# python -m hifast sep -p 3 同时执行5个 python -m hifast.sep
    14python -m hifast sep -p 5 \
    15    $files \
    16   -d 4 -m 4 -n 36 \
    17   --frange 1369  1419  \
    18   --smooth gaussian --s_sigma 2 \
    19   --check_cal A --pcal_vary_lim_bin 0.02 \
    20   --merge_pcals True --method_merge median --method_interp nearest \
    21   --save_pcals True \
    22   --outdir 'output2/%(project)s/%(date)s'
    23
    24# RA-DEC
    25# # only need beam 01 specs_T.hdf5 file
    26python -m hifast radec **/*-M01*-specs_T.hdf5
    
  2. 用fft方法对每条谱线去驻波

    M2-S2.sh S2-sw.ini

     1#!/bin/bash
     2
     3# enable **/
     4shopt -s globstar
     5
     6files="$(ls output2/*/202*/*M01*-specs_T.hdf5)"
     7# check fpatten
     8printf "${files}"
     9echo
    10
    11# using hifast.sh to run multi files
    12# commands
    13commands=$(cat <<EOF
    14# limit frange again
    15python -m hifast.bld  | --nproc 5 \
    16                        --frange 1369 1419 \
    17                        --method PLS-asym2 --lam 1e9 \
    18                        --njoin 40 \
    19                        --s_method_freq gaussian --s_sigma_freq 3 \
    20                        --exclude_type auto2 \
    21                        --post_method poly-asym2 --post_deg 3 \
    22                        --post_s_method_freq gaussian --post_s_sigma_freq 3 \
    23                        --post_exclude_type auto2
    24python -m hifast.sw   | -c conf/S2-sw.ini --nobld True
    25python -m hifast.flux  |  
    26EOF
    27)
    28# check commands
    29echo "commands: ""$commands"
    30# run multiple files
    31hifast.sh "$files" -c "$commands" -n 4
    
  3. hifast.pos_swi_2 分离源(src)和参考点(ref)观测,然后src减去ref后合并成一条谱线(保留两个偏振)。

    M2-S3.sh

     1#!/bin/bash
     2
     3# enable **/
     4shopt -s globstar
     5
     6# only need input chunk *0001.fits
     7files="$(ls -v output2/*/202*/*M01*-sw_nobld-flux.hdf5)"
     8# check files
     9printf "${files}"
    10echo
    11# commands
    12python -m hifast pos_swi_2 -p 5 \
    13    $files \
    14   --frange 1378  1400  \
    15   --t_src 120 --t_ref 120 --t_change 30 --n_repeat 1 \
    16   --only-off True
    17   
    
  4. 手动去基线

    下载: M2-S4.ipynb
  5. hifast.multi --fc True 坐标系修正。