wtbarnes / mocksipipeline

Pipeline for producing synthetic images from the Multi-Order Spectral Imager (MOXSI)
MIT License
3 stars 1 forks source link

Add calculation for detector efficiency #9

Closed wtbarnes closed 1 year ago

wtbarnes commented 1 year ago

This is one of the few pieces that we are still pulling from the genx file. It would be good to figure out how to compute it from "first principles."

wtbarnes commented 1 year ago

Regarding the detector efficiency, it seems that the curve that is in the genx file can be reproduced by the absorption of Si with a width of 33 microns,

image

The code to reproduce this image is,

si_thinfilm = ThinFilmFilter('Si', thickness=33*u.micron)
si_trans = si_thinfilm.transmissivity(const.h * const.c / chan.wavelength)
si_absor = 1-si_trans
plt.plot(chan.wavelength,si_absor, label=Channel('filtergram_1',si_thinfilm).filter_label)
plt.plot(struc['WAVE'], struc['DET'], label='from genx')
plt.legend()