{"action":"created","comment":{"url":"https://api.github.com/repos/obspy/obspy/pulls/comments/41365239","id":41365239,"diff_hunk":"@@ -0,0 +1,312 @@\n+# -*- coding: utf-8 -*-\n+\"\"\"\n+Reading of the K-NET and KiK-net ASCII format as defined on\n+http://www.kyoshin.bosai.go.jp.\n+\"\"\"\n+from __future__ import (absolute_import, division, print_function,\n+                        unicode_literals)\n+from future.builtins import *  # NOQA @UnusedWildImport\n+\n+from obspy import UTCDateTime, Stream, Trace\n+from obspy.core.trace import Stats\n+from datetime import datetime\n+import re\n+import numpy as np\n+\n+\n+class KnetFormatError(Exception):\n+    pass\n+\n+\n+class KnetDataError(Exception):\n+    pass\n+\n+\n+def _buffer_proxy(filename_or_buf, function, reset_fp=True,\n+                  file_mode=\"rb\", *args, **kwargs):\n+    \"\"\"\n+    Calls a function with an open file or file-like object as the first\n+    argument. If the file originally was a filename, the file will be\n+    opened, otherwise it will just be passed to the underlying function.\n+\n+    :param filename_or_buf: File to pass.\n+    :type filename_or_buf: str, open file, or file-like object.\n+    :param function: The function to call.\n+    :param reset_fp: If True, the file pointer will be set to the initial\n+        position after the function has been called.\n+    :type reset_fp: bool\n+    :param file_mode: Mode to open file in if necessary.\n+    \"\"\"\n+    try:\n+        position = filename_or_buf.tell()\n+        is_buffer = True\n+    except AttributeError:\n+        is_buffer = False\n+\n+    if is_buffer is True:\n+        ret_val = function(filename_or_buf, *args, **kwargs)\n+        if reset_fp:\n+            filename_or_buf.seek(position, 0)\n+        return ret_val\n+    else:\n+        with open(filename_or_buf, file_mode) as fh:\n+            return function(fh, *args, **kwargs)\n+\n+\n+def _is_knet_ascii(filename_or_buf):\n+    \"\"\"\n+    Checks if the file is a valid K-NET/KiK-net ASCII file.\n+\n+    :param filename_or_buf: File to test.\n+    :type filename_or_buf: str or file-like object.\n+    \"\"\"\n+    try:\n+        return _buffer_proxy(filename_or_buf, __is_knet_ascii, reset_fp=True)\n+    # Happens for example when passing the data as a string which would be\n+    # interpreted as a filename.\n+    except (OSError, UnicodeDecodeError):\n+        return False\n+\n+\n+def __is_knet_ascii(buf):\n+    \"\"\"\n+    Checks if the file is a valid K-NET/KiK-net ASCII file.\n+\n+    :param buf: File to read.\n+    :type buf: Open file or open file like object.\n+    \"\"\"\n+    first_string = buf.read(11).decode()\n+    # File has less than 11 characters\n+    if len(first_string) != 11:\n+        return False\n+    if first_string == 'Origin Time':\n+        return True\n+    return False\n+\n+\n+def _prep_hdr_line(name, line):\n+    \"\"\"\n+    Helper function to check the contents of a header line and split it.\n+\n+    :param name: String that the line should start with.\n+    :type name: str\n+    :param line: Line to check and split.\n+    :type line: str\n+    \"\"\"\n+    if not line.startswith(name):\n+        raise KnetFormatError(\"Expected line to start with %s but got %s \"\n+                              % (name, line))\n+    else:\n+        return line.split()\n+\n+\n+def _read_knet_hdr(hdrlines, convert_stnm=False, **kwargs):\n+    \"\"\"\n+    Read the header values into a dictionary.\n+\n+    :param hdrlines: List of the header lines of a a K-NET/KiK-net ASCII file\n+    :type hdrlines: list\n+    :param convert_stnm: For station names with 6 letters write the last two\n+    letters of the station code to the 'location' field\n+    :type convert_stnm: bool\n+    \"\"\"\n+    hdrdict = {'knet': {}}\n+    hdrnames = ['Origin Time', 'Lat.', 'Long.', 'Depth. (km)', 'Mag.',\n+                'Station Code', 'Station Lat.', 'Station Long.',\n+                'Station Height(m)', 'Record Time', 'Sampling Freq(Hz)',\n+                'Duration Time(s)', 'Dir.', 'Scale Factor', 'Max. Acc. (gal)',\n+                'Last Correction', 'Memo.']\n+    _i = 0\n+    # Event information\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    dt = flds[2] + ' ' + flds[3]\n+    dt = UTCDateTime(datetime.strptime(dt, '%Y/%m/%d %H:%M:%S'))\n+    # All times are in Japanese standard time which is 9 hours ahead of GMT\n+    dt -= 9 * 3600.\n+    hdrdict['knet']['evot'] = dt\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    lat = float(flds[1])\n+    hdrdict['knet']['evla'] = lat\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    lon = float(flds[1])\n+    hdrdict['knet']['evlo'] = lon\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    dp = float(flds[2])\n+    hdrdict['knet']['evdp'] = dp\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    mag = float(flds[1])\n+    hdrdict['knet']['mag'] = mag\n+\n+    # Station information\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    # K-NET and KiK-Net station names can be more than 5 characters long\n+    # which will cause the station name to be truncated when writing the\n+    # the trace as miniSEED; if convert_stnm is enabled, the last two\n+    # letters of the station code are written to the 'location' field\n+    stnm = flds[2]\n+    location = ''\n+    if convert_stnm and len(stnm) > 5:\n+        location = stnm[-2:]\n+        stnm = stnm[:-2]\n+    if len(stnm) > 7:\n+        raise KnetFormatError(\"Station name can't be more than 7 characters\\\n+        long!\")\n+    hdrdict['station'] = stnm\n+    hdrdict['location'] = location\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    hdrdict['knet']['stla'] = float(flds[2])\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    hdrdict['knet']['stlo'] = float(flds[2])\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    hdrdict['knet']['stel'] = float(flds[2])\n+\n+    # Data information\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    dt = flds[2] + ' ' + flds[3]\n+    # A 15 s delay is added to the record time by the\n+    # the K-NET and KiK-Net data logger\n+    dt = UTCDateTime(datetime.strptime(dt, '%Y/%m/%d %H:%M:%S')) - 15.0\n+    # All times are in Japanese standard time which is 9 hours ahead of GMT\n+    dt -= 9 * 3600.\n+    hdrdict['starttime'] = dt\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    freqstr = flds[2]\n+    m = re.search('[0-9]*', freqstr)\n+    freq = int(m.group())\n+    delta = 1.0 / freq\n+    hdrdict['delta'] = delta\n+    hdrdict['sampling_rate'] = freq\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    hdrdict['knet']['duration'] = float(flds[2])\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    channel = flds[1].replace('-', '')\n+    kiknetcomps = {'1': 'NS1', '2': 'EW1', '3': 'UD1',\n+                   '4': 'NS2', '5': 'EW2', '6': 'UD2'}\n+    if channel.strip() in kiknetcomps.keys():  # kiknet directions are 1-6\n+        channel = kiknetcomps[channel.strip()]\n+    hdrdict['channel'] = channel\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    eqn = flds[2]\n+    num, denom = eqn.split('/')\n+    num = float(re.search('[0-9]*', num).group())\n+    denom = float(denom)\n+    # convert the calibration from gal to m/s^2\n+    hdrdict['calib'] = 0.01 * num / denom\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    acc = float(flds[3])\n+    hdrdict['knet']['accmax'] = acc\n+\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    dt = flds[2] + ' ' + flds[3]\n+    dt = UTCDateTime(datetime.strptime(dt, '%Y/%m/%d %H:%M:%S'))\n+    # All times are in Japanese standard time which is 9 hours ahead of GMT\n+    dt -= 9 * 3600.\n+    hdrdict['knet']['last correction'] = dt\n+\n+    # The comment ('Memo') field is optional\n+    _i += 1\n+    flds = _prep_hdr_line(hdrnames[_i], hdrlines[_i])\n+    if len(flds) > 1:\n+        hdrdict['knet']['comment'] = ' '.join(flds[1:])\n+\n+    if len(hdrlines) != _i + 1:\n+        raise KnetFormatError(\"Expected %d header lines but got %d\"\n+                              % (_i + 1, len(hdrlines)))\n+    return hdrdict\n+\n+\n+def _read_knet_ascii(filename_or_buf, **kwargs):\n+    \"\"\"\n+    Reads a K-NET/KiK-net ASCII file and returns an ObsPy Stream object.\n+\n+    .. warning::\n+        This function should NOT be called directly, it registers via the\n+        ObsPy :func:`~obspy.core.stream.read` function, call this instead.\n+\n+    :param filename: K-NET/KiK-net ASCII file to be read.\n+    :type filename: str or file-like object.\n+    \"\"\"\n+    return _buffer_proxy(filename_or_buf, __read_knet_ascii, **kwargs)\n+\n+\n+def __read_knet_ascii(buf, **kwargs):\n+    \"\"\"\n+    Reads a K-NET/KiK-net ASCII file and returns an ObsPy Stream object.\n+\n+    .. warning::\n+        This function should NOT be called directly, it registers via the\n+        ObsPy :func:`~obspy.core.stream.read` function, call this instead.\n+\n+    :param buf: File to read.\n+    :type buf: Open file or open file like object.\n+    \"\"\"\n+    data = []\n+    hdrdict = {}\n+\n+    cur_pos = buf.tell()\n+    buf.seek(0, 2)\n+    size = buf.tell()\n+    buf.seek(cur_pos, 0)\n+\n+    # First read the headerlines\n+    headerlines = []\n+    while True:\n+        if buf.tell() >= size:\n+            break\n+        line = buf.readline().decode()\n+        if line.startswith('Memo'):\n+            headerlines.append(line)\n+            hdrdict = _read_knet_hdr(headerlines, **kwargs)\n+            break\n+        headerlines.append(line)\n+\n+    while True:\n+        if buf.tell() >= size:\n+            break\n+        line = buf.readline()\n+        parts = line.strip().split()\n+        data += [float(p) for p in parts]\n+\n+    hdrdict['npts'] = len(data)\n+    elapsed = float(hdrdict['npts']) / float(hdrdict['sampling_rate'])\n+    hdrdict['endtime'] = hdrdict['starttime'] + elapsed","path":"obspy/io/nied/knet/core.py","position":299,"original_position":299,"commit_id":"c1fa4c89e45c3ed6048bac38a876ed21962e90fd","original_commit_id":"c1fa4c89e45c3ed6048bac38a876ed21962e90fd","user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"body":"This is set automatically.","created_at":"2015-10-07T08:46:03Z","updated_at":"2015-10-07T08:46:03Z","html_url":"https://github.com/obspy/obspy/pull/1125#discussion_r41365239","pull_request_url":"https://api.github.com/repos/obspy/obspy/pulls/1125","_links":{"self":{"href":"https://api.github.com/repos/obspy/obspy/pulls/comments/41365239"},"html":{"href":"https://github.com/obspy/obspy/pull/1125#discussion_r41365239"},"pull_request":{"href":"https://api.github.com/repos/obspy/obspy/pulls/1125"}}},"pull_request":{"url":"https://api.github.com/repos/obspy/obspy/pulls/1125","id":45292716,"html_url":"https://github.com/obspy/obspy/pull/1125","diff_url":"https://github.com/obspy/obspy/pull/1125.diff","patch_url":"https://github.com/obspy/obspy/pull/1125.patch","issue_url":"https://api.github.com/repos/obspy/obspy/issues/1125","number":1125,"state":"open","locked":false,"title":"read support for some Japanese ASCII data formats","user":{"login":"yannikbehr","id":2305224,"avatar_url":"https://avatars.githubusercontent.com/u/2305224?v=3","gravatar_id":"","url":"https://api.github.com/users/yannikbehr","html_url":"https://github.com/yannikbehr","followers_url":"https://api.github.com/users/yannikbehr/followers","following_url":"https://api.github.com/users/yannikbehr/following{/other_user}","gists_url":"https://api.github.com/users/yannikbehr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannikbehr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannikbehr/subscriptions","organizations_url":"https://api.github.com/users/yannikbehr/orgs","repos_url":"https://api.github.com/users/yannikbehr/repos","events_url":"https://api.github.com/users/yannikbehr/events{/privacy}","received_events_url":"https://api.github.com/users/yannikbehr/received_events","type":"User","site_admin":false},"body":"read support for the Japanese K-NET/KiK-net strong-motion seismograph waveforms\r\nread support for the NIED(Fnet) moment tensor catalog","created_at":"2015-09-17T13:55:02Z","updated_at":"2015-10-07T08:46:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5dd796392f488753f2b651a39b684e077ddf7e9f","assignee":null,"milestone":{"url":"https://api.github.com/repos/obspy/obspy/milestones/8","html_url":"https://github.com/obspy/obspy/milestones/0.11.0","labels_url":"https://api.github.com/repos/obspy/obspy/milestones/8/labels","id":725009,"number":8,"title":"0.11.0","description":"","creator":{"login":"barsch","id":602450,"avatar_url":"https://avatars.githubusercontent.com/u/602450?v=3","gravatar_id":"","url":"https://api.github.com/users/barsch","html_url":"https://github.com/barsch","followers_url":"https://api.github.com/users/barsch/followers","following_url":"https://api.github.com/users/barsch/following{/other_user}","gists_url":"https://api.github.com/users/barsch/gists{/gist_id}","starred_url":"https://api.github.com/users/barsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barsch/subscriptions","organizations_url":"https://api.github.com/users/barsch/orgs","repos_url":"https://api.github.com/users/barsch/repos","events_url":"https://api.github.com/users/barsch/events{/privacy}","received_events_url":"https://api.github.com/users/barsch/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":32,"state":"open","created_at":"2014-07-18T08:42:03Z","updated_at":"2015-09-28T13:14:26Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/obspy/obspy/pulls/1125/commits","review_comments_url":"https://api.github.com/repos/obspy/obspy/pulls/1125/comments","review_comment_url":"https://api.github.com/repos/obspy/obspy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/obspy/obspy/issues/1125/comments","statuses_url":"https://api.github.com/repos/obspy/obspy/statuses/c1fa4c89e45c3ed6048bac38a876ed21962e90fd","head":{"label":"yannikbehr:japan","ref":"japan","sha":"c1fa4c89e45c3ed6048bac38a876ed21962e90fd","user":{"login":"yannikbehr","id":2305224,"avatar_url":"https://avatars.githubusercontent.com/u/2305224?v=3","gravatar_id":"","url":"https://api.github.com/users/yannikbehr","html_url":"https://github.com/yannikbehr","followers_url":"https://api.github.com/users/yannikbehr/followers","following_url":"https://api.github.com/users/yannikbehr/following{/other_user}","gists_url":"https://api.github.com/users/yannikbehr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannikbehr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannikbehr/subscriptions","organizations_url":"https://api.github.com/users/yannikbehr/orgs","repos_url":"https://api.github.com/users/yannikbehr/repos","events_url":"https://api.github.com/users/yannikbehr/events{/privacy}","received_events_url":"https://api.github.com/users/yannikbehr/received_events","type":"User","site_admin":false},"repo":{"id":7686638,"name":"obspy","full_name":"yannikbehr/obspy","owner":{"login":"yannikbehr","id":2305224,"avatar_url":"https://avatars.githubusercontent.com/u/2305224?v=3","gravatar_id":"","url":"https://api.github.com/users/yannikbehr","html_url":"https://github.com/yannikbehr","followers_url":"https://api.github.com/users/yannikbehr/followers","following_url":"https://api.github.com/users/yannikbehr/following{/other_user}","gists_url":"https://api.github.com/users/yannikbehr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannikbehr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannikbehr/subscriptions","organizations_url":"https://api.github.com/users/yannikbehr/orgs","repos_url":"https://api.github.com/users/yannikbehr/repos","events_url":"https://api.github.com/users/yannikbehr/events{/privacy}","received_events_url":"https://api.github.com/users/yannikbehr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yannikbehr/obspy","description":"ObsPy: A Python Toolbox for seismology/seismological observatories.","fork":true,"url":"https://api.github.com/repos/yannikbehr/obspy","forks_url":"https://api.github.com/repos/yannikbehr/obspy/forks","keys_url":"https://api.github.com/repos/yannikbehr/obspy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yannikbehr/obspy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yannikbehr/obspy/teams","hooks_url":"https://api.github.com/repos/yannikbehr/obspy/hooks","issue_events_url":"https://api.github.com/repos/yannikbehr/obspy/issues/events{/number}","events_url":"https://api.github.com/repos/yannikbehr/obspy/events","assignees_url":"https://api.github.com/repos/yannikbehr/obspy/assignees{/user}","branches_url":"https://api.github.com/repos/yannikbehr/obspy/branches{/branch}","tags_url":"https://api.github.com/repos/yannikbehr/obspy/tags","blobs_url":"https://api.github.com/repos/yannikbehr/obspy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yannikbehr/obspy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yannikbehr/obspy/git/refs{/sha}","trees_url":"https://api.github.com/repos/yannikbehr/obspy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yannikbehr/obspy/statuses/{sha}","languages_url":"https://api.github.com/repos/yannikbehr/obspy/languages","stargazers_url":"https://api.github.com/repos/yannikbehr/obspy/stargazers","contributors_url":"https://api.github.com/repos/yannikbehr/obspy/contributors","subscribers_url":"https://api.github.com/repos/yannikbehr/obspy/subscribers","subscription_url":"https://api.github.com/repos/yannikbehr/obspy/subscription","commits_url":"https://api.github.com/repos/yannikbehr/obspy/commits{/sha}","git_commits_url":"https://api.github.com/repos/yannikbehr/obspy/git/commits{/sha}","comments_url":"https://api.github.com/repos/yannikbehr/obspy/comments{/number}","issue_comment_url":"https://api.github.com/repos/yannikbehr/obspy/issues/comments{/number}","contents_url":"https://api.github.com/repos/yannikbehr/obspy/contents/{+path}","compare_url":"https://api.github.com/repos/yannikbehr/obspy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yannikbehr/obspy/merges","archive_url":"https://api.github.com/repos/yannikbehr/obspy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yannikbehr/obspy/downloads","issues_url":"https://api.github.com/repos/yannikbehr/obspy/issues{/number}","pulls_url":"https://api.github.com/repos/yannikbehr/obspy/pulls{/number}","milestones_url":"https://api.github.com/repos/yannikbehr/obspy/milestones{/number}","notifications_url":"https://api.github.com/repos/yannikbehr/obspy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yannikbehr/obspy/labels{/name}","releases_url":"https://api.github.com/repos/yannikbehr/obspy/releases{/id}","created_at":"2013-01-18T12:58:04Z","updated_at":"2015-02-04T11:24:11Z","pushed_at":"2015-10-02T08:21:17Z","git_url":"git://github.com/yannikbehr/obspy.git","ssh_url":"git@github.com:yannikbehr/obspy.git","clone_url":"https://github.com/yannikbehr/obspy.git","svn_url":"https://github.com/yannikbehr/obspy","homepage":"http://www.obspy.org","size":65346,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"obspy:master","ref":"master","sha":"1804da1156038af5c68f2392bfbe394defc2d530","user":{"login":"obspy","id":1701221,"avatar_url":"https://avatars.githubusercontent.com/u/1701221?v=3","gravatar_id":"","url":"https://api.github.com/users/obspy","html_url":"https://github.com/obspy","followers_url":"https://api.github.com/users/obspy/followers","following_url":"https://api.github.com/users/obspy/following{/other_user}","gists_url":"https://api.github.com/users/obspy/gists{/gist_id}","starred_url":"https://api.github.com/users/obspy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obspy/subscriptions","organizations_url":"https://api.github.com/users/obspy/orgs","repos_url":"https://api.github.com/users/obspy/repos","events_url":"https://api.github.com/users/obspy/events{/privacy}","received_events_url":"https://api.github.com/users/obspy/received_events","type":"Organization","site_admin":false},"repo":{"id":5731348,"name":"obspy","full_name":"obspy/obspy","owner":{"login":"obspy","id":1701221,"avatar_url":"https://avatars.githubusercontent.com/u/1701221?v=3","gravatar_id":"","url":"https://api.github.com/users/obspy","html_url":"https://github.com/obspy","followers_url":"https://api.github.com/users/obspy/followers","following_url":"https://api.github.com/users/obspy/following{/other_user}","gists_url":"https://api.github.com/users/obspy/gists{/gist_id}","starred_url":"https://api.github.com/users/obspy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obspy/subscriptions","organizations_url":"https://api.github.com/users/obspy/orgs","repos_url":"https://api.github.com/users/obspy/repos","events_url":"https://api.github.com/users/obspy/events{/privacy}","received_events_url":"https://api.github.com/users/obspy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/obspy/obspy","description":"ObsPy: A Python Toolbox for seismology/seismological observatories.","fork":false,"url":"https://api.github.com/repos/obspy/obspy","forks_url":"https://api.github.com/repos/obspy/obspy/forks","keys_url":"https://api.github.com/repos/obspy/obspy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/obspy/obspy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/obspy/obspy/teams","hooks_url":"https://api.github.com/repos/obspy/obspy/hooks","issue_events_url":"https://api.github.com/repos/obspy/obspy/issues/events{/number}","events_url":"https://api.github.com/repos/obspy/obspy/events","assignees_url":"https://api.github.com/repos/obspy/obspy/assignees{/user}","branches_url":"https://api.github.com/repos/obspy/obspy/branches{/branch}","tags_url":"https://api.github.com/repos/obspy/obspy/tags","blobs_url":"https://api.github.com/repos/obspy/obspy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/obspy/obspy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/obspy/obspy/git/refs{/sha}","trees_url":"https://api.github.com/repos/obspy/obspy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/obspy/obspy/statuses/{sha}","languages_url":"https://api.github.com/repos/obspy/obspy/languages","stargazers_url":"https://api.github.com/repos/obspy/obspy/stargazers","contributors_url":"https://api.github.com/repos/obspy/obspy/contributors","subscribers_url":"https://api.github.com/repos/obspy/obspy/subscribers","subscription_url":"https://api.github.com/repos/obspy/obspy/subscription","commits_url":"https://api.github.com/repos/obspy/obspy/commits{/sha}","git_commits_url":"https://api.github.com/repos/obspy/obspy/git/commits{/sha}","comments_url":"https://api.github.com/repos/obspy/obspy/comments{/number}","issue_comment_url":"https://api.github.com/repos/obspy/obspy/issues/comments{/number}","contents_url":"https://api.github.com/repos/obspy/obspy/contents/{+path}","compare_url":"https://api.github.com/repos/obspy/obspy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/obspy/obspy/merges","archive_url":"https://api.github.com/repos/obspy/obspy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/obspy/obspy/downloads","issues_url":"https://api.github.com/repos/obspy/obspy/issues{/number}","pulls_url":"https://api.github.com/repos/obspy/obspy/pulls{/number}","milestones_url":"https://api.github.com/repos/obspy/obspy/milestones{/number}","notifications_url":"https://api.github.com/repos/obspy/obspy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/obspy/obspy/labels{/name}","releases_url":"https://api.github.com/repos/obspy/obspy/releases{/id}","created_at":"2012-09-08T19:17:46Z","updated_at":"2015-09-26T21:41:17Z","pushed_at":"2015-10-05T10:50:36Z","git_url":"git://github.com/obspy/obspy.git","ssh_url":"git@github.com:obspy/obspy.git","clone_url":"https://github.com/obspy/obspy.git","svn_url":"https://github.com/obspy/obspy","homepage":"http://www.obspy.org","size":86795,"stargazers_count":151,"watchers_count":151,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":98,"forks":107,"open_issues":98,"watchers":151,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/obspy/obspy/pulls/1125"},"html":{"href":"https://github.com/obspy/obspy/pull/1125"},"issue":{"href":"https://api.github.com/repos/obspy/obspy/issues/1125"},"comments":{"href":"https://api.github.com/repos/obspy/obspy/issues/1125/comments"},"review_comments":{"href":"https://api.github.com/repos/obspy/obspy/pulls/1125/comments"},"review_comment":{"href":"https://api.github.com/repos/obspy/obspy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/obspy/obspy/pulls/1125/commits"},"statuses":{"href":"https://api.github.com/repos/obspy/obspy/statuses/c1fa4c89e45c3ed6048bac38a876ed21962e90fd"}}}}