MIRIAD numbering convention inconsistency
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
- 45/100
Línea de trabajo
Comience con miriad_wrap.pyx, especialmente con GETI, GETJ, MKBL y el punto de llamada de desempaquetado del preámbulo. Trace cómo llegan estos valores a las clases UVData y UVCal y compare su numeración con las entradas UVFITS generadas por MIRIAD y las entradas de MirParser. Se considerará terminado cuando la convención esté definida de forma coherente en todas las clases afectadas sin romper el comportamiento establecido de MIRIAD.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
While working on #1695, I stumbled upon an interesting feature of the MIRIAD reader, which is that the antenna numbers start with zero. Ant 0 is sort of a kludgy thing within MIRIAD because of the mixture of C and Fortran in the code (which are 0- and 1-indexed, respectively), and I was surprised that when reading in an SMA dataset, the antenna numbers were coming out to be 0->7 (when within MIRIAD they are numbered 1->8, matching where they appear elsewhere). Looking around, I stumbled upon this block of code in miriad_wrap.pyx:
cdef inline int GETI(int bl):
return (bl - 65536) // 2048 - 1 if bl > 65536 else (bl >> 8) - 1
cdef inline int GETJ(int bl):
return (bl - 65536) % 2048 - 1 if bl > 65536 else (bl & 255) - 1
cdef inline float MKBL(int i, int j):
return (i + 1) << 8 | (j + 1) if (i + 1 < 256 and j + 1 < 256) else (i + 1) * 2048 + (j + 1 + 65536)
That's being called later when the preamble is being unpacked, which maps antennas to a given baseline:
i = GETI(<int>preamble[4])
j = GETJ(<int>preamble[4])
return (uvw, preamble[3], (i, j)), data, flags, nread
Strictly speaking, this isn't "wrong", but rather a convention choice. But, it does mean that the numbering in MIRIAD is different than how it appears in other datasets, including those that MIRIAD is capable of generating itself (e.g., via the fits function to output UVFITS format). For my specific use case (reading in old MIRIAD gains to match to directly-read MIR files read via MirParser), I can kludge a fix, but it strikes me that it may be worth considering a fix/change that would affect both the UVData and UVCal based classes. Within #1695 I've left the numbering as-is so as to maintain consistency, and I think this is worth fixing, but I know that part of pyuvdata's heritage w/ MIRIAD runs through PAPER, and I don't know if this has the potential to break something that we'd prefer be left alone.
- Lenguaje dominante
- Python
- Estrellas
- 103
- Forks
- 40
- Merge medio
- 4 d 11 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RadioAstronomySoftwareGroup/pyuvdata
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
RadioAstronomySoftwareGroup/pyuvdata#1751 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
RadioAstronomySoftwareGroup/pyuvdata#1750 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 3/5 Medio día Aptitud para principiantes 48/100
RadioAstronomySoftwareGroup/pyuvdata#1749 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
RadioAstronomySoftwareGroup/pyuvdata#1748 ·
Los mantenedores suelen responder en 3 días
-
Documentation updatesAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
RadioAstronomySoftwareGroup/pyuvdata#1743 ·
Los mantenedores suelen responder en 3 días
Todos los issues de RadioAstronomySoftwareGroup/pyuvdata
Issues similares
-
Internal ErrorAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
frappe/frappe_docker#2071 ·
Los mantenedores suelen responder en 1 día
-
bug python
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
traceloop/openllmetry#4717 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
The-Pocket/PocketFlow#161 ·
-
[Bug]: Webapp workspace fails to render in Safari — "Can't find variable: requestIdleCallback"Abiertocomp/desktop P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NousResearch/hermes-agent#157702 ·
Los mantenedores suelen responder en 1 día
-
scibench_physics / scibench_chemistry: a correct answer scores 0 when the unit has a power of tenPosiblemente ocupada @BahaaMattar la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
EvolvingLMMs-Lab/lmms-eval#1699 ·
Los mantenedores suelen responder en 1 día