S4 icon indicating copy to clipboard operation
S4 copied to clipboard

Creating a model with different refractive index along the wavelength

Open 99rbbt opened this issue 1 year ago • 1 comments

Hi.

I want to add a layer with different refractive index along the wavelength to the model. There are refractive index data files (csv, excel), and I'd like to load those files to the S4 project. Is there a way to load that file and plot abs, trs, ref along the wavelength?

Thank you for any response!!

99rbbt avatar Jan 19 '24 06:01 99rbbt

You can loop through the wavelengths (using a for loop, for example). If you are using the Python API, numpy is a convenient way to load csv/txt files. You can also check out RayFlare, a package I have developed which handles materials with wavelength-dependent refractive indices for you.

phoebe-p avatar Jan 19 '24 06:01 phoebe-p