Bug in UVCal read of FHD calibration data?

Abierto
#1,748 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

Start in pyuvdata/uvcal/fhd_cal.py where gain_array is built, and compare it with the read-in conjugation applied in pyuvdata/uvdata/fhd.py. Then trace utils.uvcalibrate to see how flip_gain_conj is applied when forming g_1 g_2^* versus g_1^* g_2. Check existing FHD calibration tests and add a case that compares calibrated visibilities with model visibilities; done means the gain convention matches FHD and the test pins it down.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

In uvdata.fhd the visibilities are conjugated on read-in to create the data_array because the FHD convention is supposed to be flipped. However a similar conjugation doesn’t happen in uvcal.fhd_cal on creating the gain_array. So $v_{ij}$ seems to be conjugated for FHD but not $g_{ij}$.

I guess because of that, when applying utils.uvcalibrate with a UVCal object created from a calh5 file converted with UVCal from the original FHD files, I get a better result if I set flip_gain_conj=True than if I don’t, i.e. if the calibration is applied with $g_1^* g_2$ instead of $g_1 g_2^*$. (By “better result” I mean I see a smaller magnitude difference between the calibrated visibilities and the model visibilities.)

It may be worth mentioning that FHD (in FHD/fhd_core/calibration/vis_calibration_apply.pro) currently follows the conjugation convention $g_1 g_2^*$ for the gains on antennas 1 and 2 — the opposite of the convention set by flip_gain_conj=True.

Lenguaje dominante
Python
Estrellas
103
Forks
40
Merge medio
4 d 11 h
PR fusionados (30 d)
13

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RadioAstronomySoftwareGroup/pyuvdata

Todos los issues de RadioAstronomySoftwareGroup/pyuvdata

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.