Feature Request: Fourier Frequency Interpolation Option for UVBeam

オープン
#1,323 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
numpy, python
領域
data

調査の方向性

ファイル、テスト、エントリーポイントは指定されていません。まず UVBeam の既存の周波数補間実装を見つけ、現在のオプションを提供されている fftinterp と gausstaper の例と比較してください。完了条件は、Fourier 補間オプションが定義され、taper のデフォルトまたは設定が決定され、補間動作がカバーされていることです。

索引モデルが issue の本文から書いたものです。

説明

beams enhancement

Steven and myself have been testing interpolation methods for the frequency to create smoother delay spectra in UVBeam. We have found that using a Fourier interpolation with a Gaussian taper gives us the best results at the center of the spectra, though we expect due to non-periodicity the method will perform poorly at the ends. That being said, because it performs so much better than spline interpolation in creating a smooth spectra, (about 4 orders of magnitude more than cubic interpolation), we would like Fourier interpolation as an option to interpolate the frequency. I have attached an image of the Fourier with Gaussian taper and with no taper compared to various spline interpolations below. To create this, we ran Fourier interpolation on the beam itself and then used "cubic" interpolation to run the simulation.

The method we used for the Fourier interpolation and Gaussian taper is shown here:

def fftinterp(y, m, taper=np.ones):
    n = y.shape[-1]
    tapered = y * taper(n)

    X = np.fft.fft(tapered)
    N = n * m 

    z = np.arange(N)/m
    pad = np.zeros(y.shape[:-1]+(N,), dtype=complex)
    pad[..., :n//2 + 1] = X[..., :n//2 + 1]
    pad[..., -n//2:] = X[...,-n//2:]
    X = np.fft.ifft(pad)
    
    return z, X * m / taper(N) 
def gausstaper(n):
    x = np.linspace(-1, 1, n+1)[:-1]
    return np.exp(-x**2 / (2 * 0.2**2))`

We used n = 10 for this simulation to pad the interpolation. The default taper is none, or np.ones, but we substituted gauss=gausstaper(n) for better results. When adding this to the software, we may want to make Gauss taper the default, since no taper leads to very poor results, but other tapers may be affective as well.

fourier_interp

主要言語
Python
スター
103
フォーク
40
平均マージ
4日 11時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RadioAstronomySoftwareGroup/pyuvdata のほかの issue

RadioAstronomySoftwareGroup/pyuvdata の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。