I want to create a accurate sun using dynamo. im currently just placing a point at the origin and one on the surface on a spherical coordinate system and drawing a line between two points to get the sun direction adjusting the value,But i want it to be scientifically accurate how do i program azimuth and altitude in dynamo based on location???
Look into the ladybug package as it has this very well documented, easy to use, and very fast for the amount of calculations (and other awesome things).
You can use the SunSettings nodes for that
im working in a mass family there are no sun setting in mass family that why im creating it…as it is not possible to edit instance parameters of nested mass family in project