This example computes how far a shadow of a 2 meter high object is in different directions. The figure below shows this length for January 1 in Chicago. Note that the length of the shadow is negative if the azimuth is selected to be south because the shadow is towards the north.