Move flux binning to `ImagePlane`?

Abierto
#723 2 comentarios 0 reacciones 4 asignados Ver en GitHub

@hugobuddel ya está trabajando en esto.

Desde el 3/7/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

effects optics refactor

The ImagePlane should only store binned flux values (i.e. photons per second). In between (i.e. in and around the FOV), we (sometimes in imaging, always in spectroscopy) need to work with differential units. The location where the binning is done varies:

  • In imaging, this is done inside the FieldOfView.make_xy() methods for each field.
  • In normal spectroscopy, this is done somewhere in the depths of the spectral trace classes.
  • In simple IFU mode, this is done in the separate FluxBinning3D effect (because we never go to the spectral traces).

Think about the last case again, I'm unsure if it was a good idea to create that effect or not. There appears to be an alternative, which is to do this inside ImagePlane.add(). Especially once the flattening is moved there (see #721), the current (rudimentary) BUNIT checks there might be expanded to catch incoming non-binned data and bin it right there and then, before adding to the ImagePlane.

But that also goes into the whole discussion of #692. We (all) should at some point make a Grundsatzentscheidung, whether we want to move all "physical type changes" (see also the new flowchart) into Effects (meaning a yes to #692, but a no to this here), or rather keep these things mostly in optics classes (the other way around).

I suggest discussing this between all of @AstarVienna/scopesim-devs after Leiden.

Lenguaje dominante
Python
Estrellas
42
Forks
30
Merge medio
2 d 22 h
PR fusionados (30 d)
7

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

  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 AstarVienna/ScopeSim

Todos los issues de AstarVienna/ScopeSim

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.