# Converting XYZ to Radiance RGB

Dear all,

I have used Konica Minolta (CL-500A) spectrometer to measure X Y Z values
of the real sky using the data management software CL-S10w. I want to
convert these X Y Z values to the Radiance R G B. Is there any way/script
for such conversion?

Thanks in advance,
Kind regards,

Parisa

Hi Parisa,

You can use the xyz_rgb.cal definitions in ray/src/cal/cal, like so:

rcalc -f xyz_rgb.cal -e "\$1=R(\$1,\$2,\$3);\$2=G(\$1,\$2,\$3);\$3=B(\$1,\$2,\$3)"

Then, type or redirect your XYZ values separated by spaces or tabs to the standard input to get RGB values on the standard output.

Cheers,
-Greg

···

From: parisa khademagha <p.khademagha@gmail.com>
Subject: [Radiance-general] Converting XYZ to Radiance RGB
Date: June 23, 2016 8:34:54 AM EDT
To: Radiance general discussion <radiance-general@radiance-online.org>
Reply-To: Radiance general discussion <radiance-general@radiance-online.org>

Dear all,

I have used Konica Minolta (CL-500A) spectrometer to measure X Y Z values of the real sky using the data management software CL-S10w. I want to convert these X Y Z values to the Radiance R G B. Is there any way/script for such conversion?

Thanks in advance,
Kind regards,

Parisa

Hi Greg,

Thank you so much! I will give it a try.

Cheers,
Parisa

···

On 23 June 2016 at 15:12, Greg Ward <gregoryjward@gmail.com> wrote:

Hi Parisa,

You can use the xyz_rgb.cal definitions in ray/src/cal/cal, like so:

rcalc -f xyz_rgb.cal -e "\$1=R(\$1,\$2,\$3);\$2=G(\$1,\$2,\$3);\$3=B(\$1,\$2,\$3)"

Then, type or redirect your XYZ values separated by spaces or tabs to the
standard input to get RGB values on the standard output.

Cheers,
-Greg

*From: *parisa khademagha <p.khademagha@gmail.com>

*Subject: *[Radiance-general] Converting XYZ to Radiance RGB

*Date: *June 23, 2016 8:34:54 AM EDT

*To: *Radiance general discussion <radiance-general@radiance-online.org>

*Reply-To: *Radiance general discussion <
radiance-general@radiance-online.org>

Dear all,

I have used Konica Minolta (CL-500A) spectrometer to measure X Y Z values
of the real sky using the data management software CL-S10w. I want to
convert these X Y Z values to the Radiance R G B. Is there any way/script
for such conversion?

Thanks in advance,
Kind regards,

Parisa

_______________________________________________
Radiance-general mailing list
Radiance-general@radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-general

Use single quotes if on bash...

···

On 6/23/16, 7:12 AM, "Greg Ward" <gregoryjward@gmail.com<mailto:gregoryjward@gmail.com>> wrote:

Hi Parisa,

You can use the xyz_rgb.cal definitions in ray/src/cal/cal, like so:

rcalc -f xyz_rgb.cal -e "\$1=R(\$1,\$2,\$3);\$2=G(\$1,\$2,\$3);\$3=B(\$1,\$2,\$3)"

Then, type or redirect your XYZ values separated by spaces or tabs to the standard input to get RGB values on the standard output.

Cheers,
-Greg

From: parisa khademagha <p.khademagha@gmail.com<mailto:p.khademagha@gmail.com>>

Subject: [Radiance-general] Converting XYZ to Radiance RGB

Date: June 23, 2016 8:34:54 AM EDT

To: Radiance general discussion <radiance-general@radiance-online.org<mailto:radiance-general@radiance-online.org>>

Reply-To: Radiance general discussion <radiance-general@radiance-online.org<mailto:radiance-general@radiance-online.org>>

Dear all,

I have used Konica Minolta (CL-500A) spectrometer to measure X Y Z values of the real sky using the data management software CL-S10w. I want to convert these X Y Z values to the Radiance R G B. Is there any way/script for such conversion?

Thanks in advance,
Kind regards,

Parisa

Thanks Robert!

···

On 23 June 2016 at 17:23, Guglielmetti, Robert <Robert.Guglielmetti@nrel.gov > wrote:

Use single quotes if on bash...

On 6/23/16, 7:12 AM, "Greg Ward" <gregoryjward@gmail.com<mailto: > gregoryjward@gmail.com>> wrote:

Hi Parisa,

You can use the xyz_rgb.cal definitions in ray/src/cal/cal, like so:

rcalc -f xyz_rgb.cal -e "\$1=R(\$1,\$2,\$3);\$2=G(\$1,\$2,\$3);\$3=B(\$1,\$2,\$3)"

Then, type or redirect your XYZ values separated by spaces or tabs to the
standard input to get RGB values on the standard output.

Cheers,
-Greg

From: parisa khademagha <p.khademagha@gmail.com<mailto:
p.khademagha@gmail.com>>

Subject: [Radiance-general] Converting XYZ to Radiance RGB

Date: June 23, 2016 8:34:54 AM EDT

To: Radiance general discussion <radiance-general@radiance-online.org
<mailto:radiance-general@radiance-online.org>>

Reply-To: Radiance general discussion <
radiance-general@radiance-online.org<mailto:
radiance-general@radiance-online.org>>

Dear all,

I have used Konica Minolta (CL-500A) spectrometer to measure X Y Z values
of the real sky using the data management software CL-S10w. I want to
convert these X Y Z values to the Radiance R G B. Is there any way/script
for such conversion?

Thanks in advance,
Kind regards,

Parisa

_______________________________________________
Radiance-general mailing list
Radiance-general@radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-general