Calibrate the 12mm lens on-sky: effective focal length, SQM zero point, f-number
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 32/100
Línea de trabajo
Start with python/PiFinder/optics.py and the 12mm entry in PiFinder.optics.LENSES, then review tests/test_optics.py and the fitting comparison in tests/test_optics_solving.py. An on-sky sweep through the 12 mm lens and comparison with the reference meter and 16 mm data are required to determine effective focal length, SQM offset, and f-number. Done means those three values are updated, effective_focal_length_measured=True, and the corresponding test expectation is updated.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The 12 mm entry in PiFinder.optics.LENSES carries three values that are assumptions rather than measurements. One on-sky sweep settles all three.
1. Effective focal length (currently the nominal 12.0)
Flagged in the data so it cannot be mistaken for calibrated:
"12mm": Lens(
nominal_focal_length_mm=12.0,
effective_focal_length_mm=12.0,
effective_focal_length_measured=False,
...
)
The shipped 16 mm measures 15.61 mm — 2.5% short of its label, confirmed independently on two sensors. Assuming the 12 mm is exactly 12.0 is optimistic. Everything angular derives from this value: the FOV gate, the SQM radiometric field width, and the chart's frustum shading.
Method: solve frames taken through the 12 mm and compare tetra3's fitted FOV against the derived one, the same comparison tests/test_optics_solving.py makes for the hq train. The ±15% gate is wide enough to solve through a 2.5% error, so this measures cleanly without a chicken-and-egg problem.
2. SQM zero-point offset (unmeasured)
radiometric_zero_point is calibrated per sensor against a reference meter, on the shipped lens. A different lens changes throughput, so the constant does not transfer. Currently nothing corrects for this — a 12 mm user gets the 16 mm's zero point.
3. f-number (currently the conservative 2.0)
Front elements measure 9.95 mm (16 mm lens) and 9.85 mm (12 mm), but the front element is not the entrance pupil — on M12 lenses it is deliberately oversized to accept off-axis rays. The advertised f/2 on the 16 mm implies an 8.0 mm pupil behind a 9.95 mm element, a 1.24× oversize.
Applying that same oversize to the 12 mm rules out the fast end: f/1.2 would need a pupil larger than the front element, and f/1.4 would need less oversize than the 16 mm, which is backwards for a wider lens. Plausible range is f/1.6–f/2.0; 2.0 is recorded because it never over-claims. Not load-bearing in any current code path.
Settle it photometrically rather than by measuring glass: the 16 mm runs +0.62 mag deeper than an f/2 12 mm but only +0.14 mag deeper than an f/1.6 one, against ~0.08–0.11 mag sweep repeatability — a 4–6σ separation. That is the same measurement as (2), so both close together.
Why one sweep does all three
A referenced sweep through the 12 mm gives the fitted FOV (→ effective focal length), the photometric zero point vs the reference meter (→ SQM offset), and the depth comparison against a 16 mm sweep (→ f-number).
Update python/PiFinder/optics.py with the results and flip effective_focal_length_measured=True. tests/test_optics.py asserts that flag, so the test will need updating alongside — deliberately, so the values cannot be changed without someone noticing they are now claiming a measurement.
Found while implementing #609 / ADR 0027.
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 253
- Forks
- 63
- Merge medio
- 10 h 48 min
- PR fusionados (30 d)
- 9
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 brickbots/PiFinder
-
Discord Link InvalidAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 67/100
brickbots/PiFinder#682 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
catalogs enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
Todos los issues de brickbots/PiFinder
Issues similares
-
bug severity:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cli/cli#14946 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
No Code Attached Yet
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
joomla/joomla-cms#48786 ·
Los mantenedores suelen responder en 1 día
-
Type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
eyalgolan/statecraft-israel#2732 ·
Los mantenedores suelen responder en 1 día