I am trying to plot SunPosition
for an entire year. The examples I have seen plot a single day or one exact time across the entire year, not the full data set. (NOTE: the example code has a three day date range so as speed the trial calculations)
The data is generated with the code below:
loc = GeoPosition[{45, 0}]
tz = 0
sunriseToSunset[loc_, date_] :=
SunPosition[loc,
DateRange[Sunrise[loc, date], Sunset[loc, date], {10, "Minute"}]]
dr = DateRange[DateObject[{2015, 1, 1}, TimeZone -> tz],
DateObject[{2015, 1, 3}, TimeZone -> tz]];
{dt, foo} =
AbsoluteTiming@
TemporalData@
ParallelMap[sunriseToSunset[loc, #] &, dr, Method -> Automatic];
The output foo
is TemporalData
with three paths. Each point in the list is {date, {azimuth, altitude}}
I would like to plot altitude vs azimuth for all three days (Paths) on the same chart at the same time.
Subsequently I would want to append the list with data calculated from the foo
. For instance, attach Cos[altitude]
to each point so the temporal data becomes {date, {azimuth, altitude, Cos[altitude]}}