Inspired by Ted Ngai’s work, the NOAA sun calc component implements and National Oceanic and Atmospheric Administration’s free online Solar Calulation tool and equation found here. This component uses a Latitude and Longitude coordinate and GMT offset value with a date and time and returns the sun’s vector at the specified parameters as well as a series of other datapoints at the given sample.
INPUT Double Item LT The Latitude value in degrees
INPUT Double Item LG The Longitude value in degrees
INPUT DateTime Item DT A date and time value using grasshopper’s format
INPUT Integer Item TZ GMT offset in integer
OUTPUT DateTime Item SR Time of Sunrise at specified location and date
OUTPUT DateTime Item SS Time of Sunset at specified location and date
OUTPUT DateTime Item SN The time at which the sun transits the celestial meridian
OUTPUT Double Item SD Duration of sunlight in minutes
OUTPUT Double Item ZN The angle at the sun’s Zenith
OUTPUT Double Item EV The Elevation angle at the given time
OUTPUT Double Item ER The Elevation angle with refraction accounted for at a given time
OUTPUT Double Item AZ The Azimuth angle at a given time
OUTPUT Vector3d Item VT The resultant sun Vector
gha | Download User Objects
gh | Download Grasshopper Sample Files
Platform | Rhino 5, Grasshopper
Version | Grasshopper 0.9.0075
Type | Visual Basic Component