Skip to content

How can I convert spectral distributions to dictionary structure? #1100

Answered by KelSolaar
barisduzenli asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @barisduzenli,

It should be as simple as that:

import colour

sd = colour.SDS_ILLUMINANTS["D65"]

print(dict(zip(sd.wavelengths, sd.values)))

Cheers,

Thomas

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@barisduzenli
Comment options

Answer selected by barisduzenli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants