# New tool for generating colored sky

**URL:** <https://discourse.radiance-online.org/t/new-tool-for-generating-colored-sky/5891>\
**Category:** radiance-general\
**Created:** [April 11, 2022, 10:27pm UTC](https://discourse.radiance-online.org/t/new-tool-for-generating-colored-sky/5891 "2022-04-11T22:27:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taoning\_Wang1](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/t/9e8a1a/32.png) [@Taoning\_Wang1](https://discourse.radiance-online.org/u/Taoning_Wang1)\
**Post date:** [April 11, 2022, 10:27pm UTC](https://discourse.radiance-online.org/t/new-tool-for-generating-colored-sky/5891/1 "2022-04-11T22:27:47Z")

</div>

We provide a new tool in [frads](https://github.com/LBNL-ETA/frads), called gencolorsky, that enables you to generate a color sky description using libRadtran. **You’ll need to install libRadtran first in order to use this tool**. You’ll need to also install the supplemental Optical Properties for Aerosol and Clouds (OPAC) data if you want to use the standard aerosol profile demonstrated below. After installing libRadtran, you can simply run **pip install -U frads** to install frads, and gencolorsky will be available to you in command-line. Refer to documentation [here](https://frads.readthedocs.io/en/latest/commandline.html#gencolorsky) for more details.

**Here are some sample inputs/outputs from gencolorsky (human adaptation filter applied):**

Mid-latitude summer, 12:00, cloud cover = 0, aerosol = continental clean.  
`gencolorsky 2022 06 21 11 0 -a 37.7 -o 122.2 -m 120 -l continental_average`

 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/4/4dd2d467af92ce2a70a25e2126c6cce7bf2e20c3.jpeg)

Mid-latitude summer, 12:00, cloud cover = 0, aerosol = continental polluted.  
`gencolorsky 2022 6 21 12 0 -a 37.7 -o 122.2 -m 120 -l continental_polluted`

 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/e/e9d037c068bb5f580ac6ef745a9500cec69ba8ae.jpeg)

Mid-latitude winter, 11:00, cloud cover = 0, desert aerosol profile at 2km altitude  
`gencolorsky 2022 12 21 11 0 -a 36 -o 106 -m 105 -u 2 -l desert`

 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/f/f046f1600035f20a2c09b7e901aa2053825e2adb.jpeg)

Mid-latitude summer, 18:30, cloud cover = 0.2, aerosol = continental\_average  
`gencolorsky 2022 6 21 18 30 -a 37.7 -o 122.2 -m 120 -l continental_average -b .2`

 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/b/b3b0427387bf3d0e044740af87b643ac9209961b.jpeg)

Mid-latitude summer, 18:30, cloud cover = 0.2, aerosol = continental\_average, output in photopic (CIE-Y), melanopic(EDI), and solar for each of the three-channel.  
`gencolorsky 2022 6 21 18 30 -a 37.7 -o 122.2 -m 120 -l continental_average -b .2 -i`

 ![image](https://discourse.radiance-online.org/uploads/default/original/2X/b/bb8ded97384c6df7d0d1243e06cf95a8a4f71460.jpeg)

---

<div class="post-metadata">

**Author:** ![Rita\_Alwalidi](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/rita_alwalidi/32/1174_2.png) [@Rita\_Alwalidi](https://discourse.radiance-online.org/u/Rita_Alwalidi)\
**Post date:** [May 5, 2022, 3:51pm UTC](https://discourse.radiance-online.org/t/new-tool-for-generating-colored-sky/5891/2 "2022-05-05T15:51:44Z")

</div>

Hi Taoning,

this is very exciting news! Is libRadtran available for Windows users? Unfortunately, I did not find much about this on libRadtran website. There is a Readme.windows document among downloaded files which recommends tools to install the libRadtran C and Fortran libraries under Windows 95/98/NT/2000. Is this still valid or rather outdated?

Best,  
Rita

---

<div class="post-metadata">

**Author:** ![Taoning\_Wang1](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/t/9e8a1a/32.png) [@Taoning\_Wang1](https://discourse.radiance-online.org/u/Taoning_Wang1)\
**Post date:** [May 5, 2022, 4:34pm UTC](https://discourse.radiance-online.org/t/new-tool-for-generating-colored-sky/5891/3 "2022-05-05T16:34:54Z")

</div>

Hi Rita,

Thanks for the enthusiasm. I’ve not tried to compile it under Windows. It’s probably worth a try? I imagine it’ll be difficult though.  
LibRadtran website does seem to suggest compiling and using it under the Windows Linux subsystem. It’s viable but not ideal if you do the rest of your work under regular Windows.

---

<div class="post-metadata">

**Author:** ![MathiasSonderskov](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/mathiassonderskov/32/571_2.png) [@MathiasSonderskov](https://discourse.radiance-online.org/u/MathiasSonderskov)\
**Post date:** [September 5, 2022, 1:09pm UTC](https://discourse.radiance-online.org/t/new-tool-for-generating-colored-sky/5891/4 "2022-09-05T13:09:15Z")

</div>

For anyone else revisiting this post 10 years later …

Mark J Stock also made a colored sky in 2009 which includes starts (why not!?)

See more here

> **[radiance\_harvard\_09\_stock.pdf](https://markjstock.org/radiance/radiance_harvard_09_stock.pdf)**
>
> 10.75 MB

[![](https://discourse.radiance-online.org/uploads/default/original/2X/b/bf41fceb6afc89064a052ffa222fc10f89668539.jpeg "24 hours of sky over the Grand Canyon in Radiance") ](https://www.youtube.com/watch?v=BJWviVcu_Qo)

> **[GitHub - markstock/GenUtahSky: Radiance implementation of Preetham, Shirley,...](https://github.com/markstock/GenUtahSky)**
>
> Radiance implementation of Preetham, Shirley, Smits model for sky color, plus more - markstock/GenUtahSky
