{"action":"created","issue":{"url":"https://api.github.com/repos/gammapy/gammapy/issues/418","labels_url":"https://api.github.com/repos/gammapy/gammapy/issues/418/labels{/name}","comments_url":"https://api.github.com/repos/gammapy/gammapy/issues/418/comments","events_url":"https://api.github.com/repos/gammapy/gammapy/issues/418/events","html_url":"https://github.com/gammapy/gammapy/pull/418","id":127032121,"number":418,"title":"Time map for event list","user":{"login":"JonathanDHarris","id":11157627,"avatar_url":"https://avatars.githubusercontent.com/u/11157627?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanDHarris","html_url":"https://github.com/JonathanDHarris","followers_url":"https://api.github.com/users/JonathanDHarris/followers","following_url":"https://api.github.com/users/JonathanDHarris/following{/other_user}","gists_url":"https://api.github.com/users/JonathanDHarris/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanDHarris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanDHarris/subscriptions","organizations_url":"https://api.github.com/users/JonathanDHarris/orgs","repos_url":"https://api.github.com/users/JonathanDHarris/repos","events_url":"https://api.github.com/users/JonathanDHarris/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanDHarris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gammapy/gammapy/labels/feature","name":"feature","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/gammapy/gammapy/milestones/5","html_url":"https://github.com/gammapy/gammapy/milestones/0.4","labels_url":"https://api.github.com/repos/gammapy/gammapy/milestones/5/labels","id":1058090,"number":5,"title":"0.4","description":"","creator":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":48,"state":"open","created_at":"2015-04-08T11:51:53Z","updated_at":"2016-01-18T19:34:38Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-01-16T15:34:04Z","updated_at":"2016-01-18T20:07:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gammapy/gammapy/pulls/418","html_url":"https://github.com/gammapy/gammapy/pull/418","diff_url":"https://github.com/gammapy/gammapy/pull/418.diff","patch_url":"https://github.com/gammapy/gammapy/pull/418.patch"},"body":"@cdeil First implementation of time map for event lists (see #409), let me know what you think."},"comment":{"url":"https://api.github.com/repos/gammapy/gammapy/issues/comments/172640094","html_url":"https://github.com/gammapy/gammapy/pull/418#issuecomment-172640094","issue_url":"https://api.github.com/repos/gammapy/gammapy/issues/418","id":172640094,"user":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T20:07:29Z","updated_at":"2016-01-18T20:07:29Z","body":"Seems to work: https://gist.github.com/cdeil/628df125ec597b37eaba\r\n\r\nYou find events with time differences out to ~ 100 sec.\r\nI think there must be some issue with your axes, because at an average rate of 1 event per second there shouldn't be such long gaps:\r\n```\r\n>>> events.observation_time_duration / len(events)\r\n1.1106745 s\r\n```\r\n\r\nI was thinking of a scatter plot and log axes as here: http://nbviewer.jupyter.org/gist/cdeil/f0b5c585bb78d7096a53\r\n\r\nI'm not sure if such a histogram with linear time axes is useful.\r\n\r\nProbably the main issue visible in time map plots is events that have a very short time difference due to some trigger issue, and those don't stand out as outliers in a linear timescale plot.\r\n\r\nWe also have runs with changing event rate ... probably those small rate changes aren't visible in a time map though:\r\nhttps://github.com/gammasky/hess-host-analyses/issues/24\r\nhttps://github.com/gammasky/hess-host-analyses/blob/master/hap-fr-example-files/hap-fr-first-look.ipynb\r\n\r\nTo be able to see such issues we need to have a plot such as the one there:\r\n```\r\nax.scatter(events['TIME'] - events['TIME'][0], events['RA'])\r\n```\r\n\r\n@JonathanDHarris - Really the proposal here is to add a bunch of quick look plots that allow one to quickly take a peek for any given event list to check data content / quality.\r\n\r\nSo the user should be able to call:\r\n```\r\nevents.plot_a()\r\nevents.plot_b()\r\n...\r\n```\r\nor to get a collage of panels with the most common plots as\r\n```\r\nevents.peek()\r\n```\r\n\r\nTo document those, either add the example to the Sphinx docs, or make an IPython notebook in the gammapy-extra repo.\r\nExample: https://github.com/gammapy/gammapy-extra/blob/master/notebooks/gammapy-image-crab.ipynb\r\n\r\n@JonathanDHarris - Sorry that I'm not giving clear instructions here ... I think we need to play a bit with different plots, browse our data with them, to find out which ones are useful. So one option here could even be to keep the linear time axis plot, and add the time map with log axes as a second plot function.\r\n"}}