Closed joedurbak closed 2 years ago
Never mind... looks like something is wrong with my macro on further inspection
Since you provided me with the ZEMAX files, I can try to run the model creation with my ZEMAX. I can't promise when I have the time to do it. Maybe on the weekend !
Since you provided me with the ZEMAX files, I can try to run the model creation with my ZEMAX. I can't promise when I have the time to do it. Maybe on the weekend !
Thank you! I solved the affine transformation issue I was having, but I still end up with zero photons per order. I'll let you know if I fix the problem before hand.
Quick question though, I chose the wavelength bounds for each order based on where the central envelope begins and ends rather than the bounds of the detector. Could this be causing my problem?
No, that should not be a problem.
I've been looking at the ZEMAX file. Is my assumption correct, that the bounding rectangle of the entrence slit is: +/-0,0009720000 and +/- -0,0000833000 in angular units ? Is it correct that the detector is 38x38mm and way bigger than the spectrum / the FSR ?
That is all correct
Sorry, I think my previous statement is a bit inaccurate. The spectrum could technically reach the edges of the detector without worrying about the FSR, but the intensity is quite small at that point. Which you can see in the echelle efficiencies here.
I was able to create the HDF file using the model_creation script with a few modifications to the ZEMAX file. Does this look right ? I did not have a value for the blaze. I put it to 30degres that gave me upper image. If that's not correct you can change that value in the .hdf file. Please find the .hdf file here and let me know if that works for you or not! https://stuermer.science/nextcloud/index.php/s/869M494kE4qNcyZ
That looks great! Thank you so much! Sorry I didn't respond sooner. The notification email from github was marked as "Promotions" for some reason.
Would you mind telling me what you changed in the Zemax file to get it to work? I'd like to give it a go with the HK arm.
I just tried it out, and it looks great! Here is how it looks in comparison to the lab data we collected.
Note: the lab data was taken with heavily degraded detectors where the only sensitive region is in the middle, and cuts the spectrum off at the edges of the orders
Just checking in again. Would you mind letting me see what you did to create the hdf file? Even just having the script, and zemax file would be incredibly helpful.
sorry for the late reply. Sure. Here's the zemax file and the script https://stuermer.science/nextcloud/index.php/s/Fmr4d7HRdyCFg6s Important steps (at least the ones I remember) for the ZEMAX file are:
let me know if you need anything else
just FYI, I've been getting much closer finishing the python version of the simulator... this should be much easier then to use / maintain / contribute
echellesimulator_output.txt I'm a graduate student working on a grism based cross dispersed spectrometer (RIMAS). Currently, I'm trying to simulate some RIMAS data via your stuermer/echellesimulator docker image. I've created an HDF file for RIMAS's Y and J bands optical arm, and managed to get the simulation to run (output attached), but it doesn't find photons within any of the orders. Would you mind taking a look at what I've done, or answering some questions about the hdf file requirements for the simulation? I've been working on this for a while now, and I'm stuck at this point.
Some notes on what I've tried so far:
All of my code, the hdf file and the Zemax files can be found here: https://github.com/joedurbak/echelle_simulator_model_creation
pyzdde doesn't seem to work very well with my version of Zemax so I did the following for the psfs and affine transformations: