{"action":"opened","issue":{"url":"https://api.github.com/repos/obspy/obspy/issues/1195","labels_url":"https://api.github.com/repos/obspy/obspy/issues/1195/labels{/name}","comments_url":"https://api.github.com/repos/obspy/obspy/issues/1195/comments","events_url":"https://api.github.com/repos/obspy/obspy/issues/1195/events","html_url":"https://github.com/obspy/obspy/issues/1195","id":119914572,"number":1195,"title":"Problem reading some TauP model files","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},"labels":[{"url":"https://api.github.com/repos/obspy/obspy/labels/.taup","name":".taup","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":0,"created_at":"2015-12-02T10:41:29Z","updated_at":"2015-12-02T10:41:29Z","closed_at":null,"body":"I did not look into the details but `obspy.taup` has problems parsing certain files. Others work fine.\r\n\r\nProblematic files:\r\n\r\n* https://dl.dropboxusercontent.com/u/3866312/taup_models/jb.nd\r\n* https://dl.dropboxusercontent.com/u/3866312/taup_models/pwdk.nd\r\n* https://dl.dropboxusercontent.com/u/3866312/taup_models/jb.nd\r\n\r\nUsage:\r\n\r\n```python\r\nfrom obspy.taup.taup_create import TauP_Create\r\n\r\nx = TauP_Create(input_filename='qdt.tvel', output_filename='blub')\r\nx.loadVMod()\r\nx.run()\r\n```\r\n\r\nOutput:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/Users/lion/workspace/code/obspy/obspy/taup/taup_create.py\", line 119, in run\r\n    self.tMod = self.createTauModel(self.vMod)\r\n  File \"/Users/lion/workspace/code/obspy/obspy/taup/taup_create.py\", line 85, in createTauModel\r\n    SlownessModel.DEFAULT_SLOWNESS_TOLERANCE)\r\n  File \"/Users/lion/workspace/code/obspy/obspy/taup/slowness_model.py\", line 76, in __init__\r\n    self.createSample()\r\n  File \"/Users/lion/workspace/code/obspy/obspy/taup/slowness_model.py\", line 153, in createSample\r\n    self.depthIncCheck()\r\n  File \"/Users/lion/workspace/code/obspy/obspy/taup/slowness_model.py\", line 1012, in depthIncCheck\r\n    'P')\r\n  File \"/Users/lion/workspace/code/obspy/obspy/taup/velocity_model.py\", line 185, in evaluateAbove\r\n    layer = self.layers[self.layerNumberAbove(depth)]\r\n  File \"/Users/lion/workspace/code/obspy/obspy/taup/velocity_model.py\", line 132, in layerNumberAbove\r\n    raise LookupError(\"No such layer.\")\r\nLookupError: No such layer.\r\n```"}}