{"action":"created","issue":{"url":"https://api.github.com/repos/SeisComP3/seiscomp3/issues/22","labels_url":"https://api.github.com/repos/SeisComP3/seiscomp3/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/SeisComP3/seiscomp3/issues/22/comments","events_url":"https://api.github.com/repos/SeisComP3/seiscomp3/issues/22/events","html_url":"https://github.com/SeisComP3/seiscomp3/issues/22","id":59897318,"number":22,"title":"Scart streaming issue when starting string time is related to non existing SDS  miniseed file ","user":{"login":"salichon","id":1953345,"avatar_url":"https://avatars.githubusercontent.com/u/1953345?v=3","gravatar_id":"","url":"https://api.github.com/users/salichon","html_url":"https://github.com/salichon","followers_url":"https://api.github.com/users/salichon/followers","following_url":"https://api.github.com/users/salichon/following{/other_user}","gists_url":"https://api.github.com/users/salichon/gists{/gist_id}","starred_url":"https://api.github.com/users/salichon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salichon/subscriptions","organizations_url":"https://api.github.com/users/salichon/orgs","repos_url":"https://api.github.com/users/salichon/repos","events_url":"https://api.github.com/users/salichon/events{/privacy}","received_events_url":"https://api.github.com/users/salichon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SeisComP3/seiscomp3/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-05T02:50:44Z","updated_at":"2015-03-05T13:19:47Z","closed_at":null,"body":"Using the scart utility to  broadcast miniseed files  into a replay  from a sds directory\r\nfor instance:\r\n> seiscomp exec scart --test  -dsvvvE  --list WI_Stat.txt /work/seiscomp/sds\r\n\r\nthe streaming isn't occuring if the miniseed file of the starting day doesn't exist for the stations labeled in the station file WIStat.txt. The broadcast of that station does not operate at all even if the later miniseed files are existing in the SDS archive. \r\n\r\n In another words if the miniseed file of 2011-06-12 is non existing, using this option\r\n> 2011-06-12  23:59:59 ; 2011-06-13 12:05:00;NZ.WI01.*.*\r\nprovides No streaming\r\n\r\nUsing instead this option with an existing  2011-06-13 miniseed file \r\n> 2011-06-13  00:00:00 ; 2011-06-13 12:05:00;NZ.WI01.*.*\r\nwill provide some streaming, even if that miniseed volume is incomplete (and starts later than midnight)\r\n\r\nMarc Grunberg suggested to revise the scart python code \r\n >In the scart.py  code line 76 :\r\n>\tfiles = glob.glob(dir + \"*.%03d\" % t[7])\r\n> Perhaps to overcome this behavior, at first sight, one can increment t[7] (jday) until files is not empty ...\r\n\r\nPull requests welcome :) \r\n\r\ncheers\r\nJerome \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n-- \r\n\r\n\r\nTo be more clear  my first mseed file start 2003.056 and the last one is 2003.115. \r\nWhen using scart with -t flag set to \"2003-01-01 00:00~2003-12-31 23:59\"   (I didn't want to bother me with time) \r\nit does not produce any file. \r\nI fact, to have data produced,  I have to set the start date (-t) exactly at 2003-02-25 00:00 (ie. 2003.056) \r\n\r\nI don't know if it is a feature or a bug  but it is a little bit tricky ! \r\n\r\nIn the scart.py  code line 76 : \r\nfiles = glob.glob(dir + \"*.%03d\" % t[7]) \r\n\r\nPerhaps to overcome this behavior, at first sight, one can increment t[7] (jday) until files is not empty ... \r\n\r\nRegards \r\nMarc "},"comment":{"url":"https://api.github.com/repos/SeisComP3/seiscomp3/issues/comments/77362057","html_url":"https://github.com/SeisComP3/seiscomp3/issues/22#issuecomment-77362057","issue_url":"https://api.github.com/repos/SeisComP3/seiscomp3/issues/22","id":77362057,"user":{"login":"gempa-jabe","id":7439134,"avatar_url":"https://avatars.githubusercontent.com/u/7439134?v=3","gravatar_id":"","url":"https://api.github.com/users/gempa-jabe","html_url":"https://github.com/gempa-jabe","followers_url":"https://api.github.com/users/gempa-jabe/followers","following_url":"https://api.github.com/users/gempa-jabe/following{/other_user}","gists_url":"https://api.github.com/users/gempa-jabe/gists{/gist_id}","starred_url":"https://api.github.com/users/gempa-jabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gempa-jabe/subscriptions","organizations_url":"https://api.github.com/users/gempa-jabe/orgs","repos_url":"https://api.github.com/users/gempa-jabe/repos","events_url":"https://api.github.com/users/gempa-jabe/events{/privacy}","received_events_url":"https://api.github.com/users/gempa-jabe/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T13:19:47Z","updated_at":"2015-03-05T13:19:47Z","body":"Check if the patch works. It was actually a bit more work than just increasing the day counter but finally it works across year borders as well."}}