Message Boards Message Boards

0
|
4344 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to plot data from an EventSeries?

Posted 3 years ago

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

POSTED BY: Felix Gross
2 Replies

If you have EventSeries object you can extract date with Dates property. I assume you have mentioned this example: https://wolfram.com/xid/0puplvehwe-kwu89t

extractDate

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

POSTED BY: Shenghui Yang
Posted 3 years ago

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

POSTED BY: Felix Gross
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract