{"action":"created","issue":{"url":"https://api.github.com/repos/obspy/obspy/issues/1015","labels_url":"https://api.github.com/repos/obspy/obspy/issues/1015/labels{/name}","comments_url":"https://api.github.com/repos/obspy/obspy/issues/1015/comments","events_url":"https://api.github.com/repos/obspy/obspy/issues/1015/events","html_url":"https://github.com/obspy/obspy/issues/1015","id":68096049,"number":1015,"title":"SEG-2 Import / Header Issue","user":{"login":"grexen","id":6066238,"avatar_url":"https://avatars.githubusercontent.com/u/6066238?v=3","gravatar_id":"","url":"https://api.github.com/users/grexen","html_url":"https://github.com/grexen","followers_url":"https://api.github.com/users/grexen/followers","following_url":"https://api.github.com/users/grexen/following{/other_user}","gists_url":"https://api.github.com/users/grexen/gists{/gist_id}","starred_url":"https://api.github.com/users/grexen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grexen/subscriptions","organizations_url":"https://api.github.com/users/grexen/orgs","repos_url":"https://api.github.com/users/grexen/repos","events_url":"https://api.github.com/users/grexen/events{/privacy}","received_events_url":"https://api.github.com/users/grexen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/obspy/obspy/labels/.seg2","name":".seg2","color":"0b02e1"},{"url":"https://api.github.com/repos/obspy/obspy/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-13T13:26:53Z","updated_at":"2015-04-13T22:36:05Z","closed_at":null,"body":"Hi there,\r\n\r\nI'm currently working on the import of Full-Wave-Sonic-Logs into Obspy. After exporting them to SEG-2 fileformat, I get the following error using `readSEG2` function:    \r\n\r\n    >>> readSEG2('M:\\\\FWS Test\\\\SEG2\\\\FWS_IT_UP_test1_agc_on_600 MM.sg2')\r\n\r\n    Traceback (most recent call last):\r\n      File \"<pyshell#60>\", line 1, in <module>\r\n        readSEG2('M:\\\\FWS Test\\\\SEG2\\\\FWS_IT_UP_test1_agc_on_600 MM.sg2')\r\n      File \"C:\\Python27\\lib\\site-packages\\obspy-0.10.1-py2.7-win32.egg\\obspy\\seg2\\seg2.py\", line 333,     in readSEG2\r\n        st = seg2.readFile(filename)\r\n      File \"C:\\Python27\\lib\\site-packages\\obspy-0.10.1-py2.7-win32.egg\\obspy\\seg2\\seg2.py\", line 85, in readFile\r\n        self.readFileDescriptorBlock()\r\n      File \"C:\\Python27\\lib\\site-packages\\obspy-0.10.1-py2.7-win32.egg\\obspy\\seg2\\seg2.py\", line 175, in readFileDescriptorBlock\r\n        time = self.stream.stats.seg2.ACQUISITION_TIME\r\n      File \"C:\\Python27\\lib\\site-packages\\obspy-0.10.1-py2.7-win32.egg\\obspy\\core\\util\\attribdict.py\", line 110, in __getattr__\r\n        raise AttributeError(e.args[0])\r\n    AttributeError: ACQUISITION_TIME    \r\n\r\n\r\nIt seems as if the script can't get the time information out of the header. Any kind of advice how to solve this problem would be a great help."},"comment":{"url":"https://api.github.com/repos/obspy/obspy/issues/comments/92519411","html_url":"https://github.com/obspy/obspy/issues/1015#issuecomment-92519411","issue_url":"https://api.github.com/repos/obspy/obspy/issues/1015","id":92519411,"user":{"login":"krischer","id":800487,"avatar_url":"https://avatars.githubusercontent.com/u/800487?v=3","gravatar_id":"","url":"https://api.github.com/users/krischer","html_url":"https://github.com/krischer","followers_url":"https://api.github.com/users/krischer/followers","following_url":"https://api.github.com/users/krischer/following{/other_user}","gists_url":"https://api.github.com/users/krischer/gists{/gist_id}","starred_url":"https://api.github.com/users/krischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krischer/subscriptions","organizations_url":"https://api.github.com/users/krischer/orgs","repos_url":"https://api.github.com/users/krischer/repos","events_url":"https://api.github.com/users/krischer/events{/privacy}","received_events_url":"https://api.github.com/users/krischer/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T22:36:05Z","updated_at":"2015-04-13T22:36:05Z","body":"I actually ran across exactly the same issue last week and have an example file. There are a number of things where seg2 is a bit loosely defined and we need to make ObsPy a bit more tolerant.\r\n\r\nI'll fix this next week."}}