Stuermer / EchelleSimulator

GNU General Public License v3.0
11 stars 2 forks source link

Creating new spectrograph hdf unsuccessful #20

Closed joedurbak closed 2 years ago

joedurbak commented 4 years ago

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:

joedurbak commented 4 years ago

Never mind... looks like something is wrong with my macro on further inspection

Stuermer commented 4 years ago

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 !

joedurbak commented 4 years ago

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?

Stuermer commented 4 years ago

No, that should not be a problem.

Stuermer commented 4 years ago

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 ?

joedurbak commented 4 years ago

That is all correct

joedurbak commented 4 years ago

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.

Screen Shot 2020-09-09 at 9 21 46 PM
Stuermer commented 4 years ago

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 ? image 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

joedurbak commented 4 years ago

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.

joedurbak commented 4 years ago

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

image

joedurbak commented 3 years ago

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.

Stuermer commented 3 years ago

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

Stuermer commented 2 years ago

closing this. seems solved. If not please reopen at PyEchelle.