How to plot data from an EventSeries?

Hello,

I want to plot various times (e.g. rising, setting, transit) from solar systems bodies using commands e.g.

Sunrise[location, DataRange[{start date}, {end date}]

This results in an EventSeries. I understand the content to be correct as viewed with FullForm in a nested list.

For plotting e.g. rising times over days I tried to modify example code found in the help file of the Sunrise command using DateListPlot operating on a difference between sunrises and sunsets.

But somehow I am lost in the DataListPlot structure, involving TimesSeriesThread and UnitConvert
as I cannot produce a meaningful plot. My main problem seems to be that I am not able to extract the times from the complex EventSeries.

Hints would be helpful.

Thanks in advance

Felix

If you have EventSeries object you can extract date with Dates property. I assume you have mentioned this example: Sunrise: Time of sunrise—Wolfram Documentation

You may try the following code to plot sun rise time within a given date range.

Dear Shenghui Yang,

thanks a lot! The use of theTimesSeriesThread command was the missing link in my case. I will read up on it and will be on my way to plot an astronomical calendar.

Felix