Feature Request: Fourier Frequency Interpolation Option for UVBeam

Aperta
#1,323 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
numpy, python
Ambito
data

Direzione di ricerca

Non vengono indicati file, test o punti di ingresso. Inizia individuando l’implementazione esistente dell’interpolazione in frequenza di UVBeam e confronta le opzioni attuali con gli esempi forniti di fftinterp e gausstaper. Il lavoro sarà completo quando sarà definita un’opzione di interpolazione di Fourier, sarà stato deciso un valore predefinito o una configurazione per il taper e sarà presente una copertura del comportamento dell’interpolazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
103
Fork
40
Merge medio
4g 11h
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RadioAstronomySoftwareGroup/pyuvdata

Tutte le issue di RadioAstronomySoftwareGroup/pyuvdata

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.