It uses the LED generator for the spectral distributions
but overall it should be pretty much the same.
OK thank you - I'll work from it.
This has all been VERY VERY helpful
Goodbye for now!
If you have some code you want to contribute back btw, this is welcomed :)
I got the physics-generation aspect to finally work (if I could send you a photo, I would!). If/When I get the rest of the project to work today, I'll be happy to send you some code.
If you'd be interested in including a thin-film interference piece of code just a bit like your blackbody stuff, I'd be happy.
You'd be required to give an angle of incidence for your light, the thickness of your film, the refractive index of your liquid OR say that it's water and instead give a temperature and wavelength (because I can then calculate the respective index directly given a separate empirical algorithm I know of) and then we can generate a similar plot to your blackbody stuff, such as a spectrum and the XYZ overall look.
Equally I could give you the kind of code I'm actually using in my project, where it can generate a spectrum with different thicknesses.
Either way, depending on what you're interested in adding, I can try to work that extra bit harder and give you something workable that is compatible with the rest of your library.
Both seems equally great, no rush anyway but it sounds interesting enough that I thought I would ask!
Dear Thomas, I would like to obtain the values that are used for the D65 illuminants. By reading the docs I found how to plot it, but do I have the possibility to get the actual value, as a array or a dictionary ? Thank you
Sorry to bother I just found it !
Hi! Glad you found them, for other people reading they are available like that:
Chromaticity coordinates: colour.ILLUMINANTS['CIE 1931 2 Degree Standard Observer']['D65']
I have finished with what I was working on with my project
and I have written a "sanitised" file containing the functions I thought you might like to add to the library
and it contains an explanation of the things.
How can I send it to you?
Once you see it, you probably won't be that impressed.
If you want to be listed as contributor to the repository, the easiest is probably to fork Colour and drop the file maybe in the colour/phenomena directory or anywhere you think most of the code should be and push back to your fork
I can then work from your commit so that you would be shown in the history! :)
Just because I'm not the smartest guy and also because I don't really know how to use Git, I'll explain what I did:
I forked Colour
then I added my file to colour/phenomena
then I made a pull-request for this fork...
I assume that works?
And again, I've stripped down all the stuff to just 3 functions that a general user would want to use and I hope they're cool enough to be included..
Yeah... I expected the pull-request to wait for some kind of approval but I think it was outright blocked...