Integrate detector windowing in DetectorList

Aperta
#1,028 1 commento 0 reazioni 2 assegnatari Vedi su GitHub

@teutoburg ci sta già lavorando.

Dal 13/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

effects

So far DetectorWindow is as stand-alone effect that lives side-by-side with DetectorList, e.g. in the irdb MICADO setup (MICADO_H4RG.yaml). The main purpose of that has always been to reduce the simulation load in terms of memory and computing time, and it works fine for that. It produces, however, the inconvencience that, in order to switch from window (default in MICADO) to full array, one has to set two parameters:

opttrain['detector_window'].include = False
opttrain['full_detector_array'].include = True

A somewhat simpler approach that is closer to how detector windowing in a real instrument works would be to integrate a windowing option into DetectorList. The effect would then set up the full detector array and pick the window within that grid based on parameters

window: True
win_detid:  5       # for multi-detector arrays
win_xcen: 1024    # centre of window (or lower left corner?)
win_ycen: 1024
win_xwidth: 512  # size of the window
win_ywidth: 512

Pixel size and orientation of the array are taken from the full array, the window is specified in pixels (rather than mm, which is currently the case in DetectorWindow). The effect would need to validate that the window lies within one detector.
A remaining question is whether windowing should just be active during readout() (allowing multiple windowed readouts from the same ImagePlane) or whether it should already reduce the FieldOfView during setup. It could be argued that the latter goal can be achieved by changing the parameters of the full array (in the end, the current DetectorWindow is a thinly disguised DetectorList).

Lingua principale
Python
Stelle
42
Fork
30
Merge medio
2g 22h
PR unite (30g)
7

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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

Tutte le issue di AstarVienna/ScopeSim

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.