{"action":"created","comment":{"url":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/comments/71567244","id":71567244,"diff_hunk":"@@ -14,6 +19,19 @@ \\subsection{读写SAC文件}\n 的波形放在一张图上进行对比，最后将滤波后的数据写到文件中。\n \\inputminted{python}{sacio/obspy-example.py}\n \n+% Obspy最新版本到1.0.1，穩定性比之前好很多\n+% 可直接讀取多種通用波形格式，包含直接讀miniseed檔案\n+% 讀取波形後要把資訊寫入SAC檔頭\n+% 可使用SACTrace.from_obspy_trace\n+% 再輸出成sac格式，sac檔頭處理部份詳細可看\n+% https://docs.obspy.org/packages/autogen/obspy.io.sac.sactrace.html\n+% 若要cut波形，讀取完波形，不管是stream或trace\n+% 都可使用trim(stream.trim or trace.trim)\n+% 個人認為特點是規格化時間讀取和輸出 (utcdatetime)\n+% https://docs.obspy.org/packages/autogen/obspy.core.utcdatetime.UTCDateTime.html\n+% 和規格化讀取地震目錄讀取和輸出(read_events）\n+% https://docs.obspy.org/master/packages/autogen/obspy.core.event.catalog.read_events.html\n+\n \\subsection{其他}\n ObsPy是一个相对完整的数据处理模块，SAC的读写只是其中的一小部分。个人\n 感觉，ObsPy在读写SAC文件时还存在如下几个问题：","path":"sacio/sacio-in-python.tex","position":30,"original_position":31,"commit_id":"300aea978d07178ce8f1e355aa891991e94c6424","original_commit_id":"300aea978d07178ce8f1e355aa891991e94c6424","user":{"login":"seisman","id":3974108,"avatar_url":"https://avatars.githubusercontent.com/u/3974108?v=3","gravatar_id":"","url":"https://api.github.com/users/seisman","html_url":"https://github.com/seisman","followers_url":"https://api.github.com/users/seisman/followers","following_url":"https://api.github.com/users/seisman/following{/other_user}","gists_url":"https://api.github.com/users/seisman/gists{/gist_id}","starred_url":"https://api.github.com/users/seisman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seisman/subscriptions","organizations_url":"https://api.github.com/users/seisman/orgs","repos_url":"https://api.github.com/users/seisman/repos","events_url":"https://api.github.com/users/seisman/events{/privacy}","received_events_url":"https://api.github.com/users/seisman/received_events","type":"User","site_admin":false},"body":"obspy 正式版发布之后我还没看过，不知道我说说的这两个问题是否依然存在？\r\n\r\n关于 cut 波形，SAC 中可以只读取数据中的一小段，而 obspy 中只能先把整个波形读入，然后在使用 trim 方法做 cut，在需要从很长的数据中截取一小段波形时效率会很低。这也是我一直以来不使用 obspy 的一个主要原因。你可以确认一下在新版的 obspy 中这一问题是否依然存在","created_at":"2016-07-20T17:15:28Z","updated_at":"2016-07-20T17:15:28Z","html_url":"https://github.com/seisman/SAC_Docs_zh/pull/101#discussion_r71567244","pull_request_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/comments/71567244"},"html":{"href":"https://github.com/seisman/SAC_Docs_zh/pull/101#discussion_r71567244"},"pull_request":{"href":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/101","id":78180788,"html_url":"https://github.com/seisman/SAC_Docs_zh/pull/101","diff_url":"https://github.com/seisman/SAC_Docs_zh/pull/101.diff","patch_url":"https://github.com/seisman/SAC_Docs_zh/pull/101.patch","issue_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/issues/101","number":101,"state":"open","locked":false,"title":"update obspy","user":{"login":"likueimo","id":11157543,"avatar_url":"https://avatars.githubusercontent.com/u/11157543?v=3","gravatar_id":"","url":"https://api.github.com/users/likueimo","html_url":"https://github.com/likueimo","followers_url":"https://api.github.com/users/likueimo/followers","following_url":"https://api.github.com/users/likueimo/following{/other_user}","gists_url":"https://api.github.com/users/likueimo/gists{/gist_id}","starred_url":"https://api.github.com/users/likueimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/likueimo/subscriptions","organizations_url":"https://api.github.com/users/likueimo/orgs","repos_url":"https://api.github.com/users/likueimo/repos","events_url":"https://api.github.com/users/likueimo/events{/privacy}","received_events_url":"https://api.github.com/users/likueimo/received_events","type":"User","site_admin":false},"body":"更新obspy\r\n並添加我個人一些小小心得\r\n我都是用 % 備註\r\n再給各位看內容要怎麼修正比較好","created_at":"2016-07-20T16:46:00Z","updated_at":"2016-07-20T17:15:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e917c18a5a80bae9e8a7eab058b98a16e0b00e7d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/101/commits","review_comments_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/101/comments","review_comment_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/issues/101/comments","statuses_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/statuses/300aea978d07178ce8f1e355aa891991e94c6424","head":{"label":"likueimo:master","ref":"master","sha":"300aea978d07178ce8f1e355aa891991e94c6424","user":{"login":"likueimo","id":11157543,"avatar_url":"https://avatars.githubusercontent.com/u/11157543?v=3","gravatar_id":"","url":"https://api.github.com/users/likueimo","html_url":"https://github.com/likueimo","followers_url":"https://api.github.com/users/likueimo/followers","following_url":"https://api.github.com/users/likueimo/following{/other_user}","gists_url":"https://api.github.com/users/likueimo/gists{/gist_id}","starred_url":"https://api.github.com/users/likueimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/likueimo/subscriptions","organizations_url":"https://api.github.com/users/likueimo/orgs","repos_url":"https://api.github.com/users/likueimo/repos","events_url":"https://api.github.com/users/likueimo/events{/privacy}","received_events_url":"https://api.github.com/users/likueimo/received_events","type":"User","site_admin":false},"repo":{"id":63742363,"name":"SAC_Docs_zh","full_name":"likueimo/SAC_Docs_zh","owner":{"login":"likueimo","id":11157543,"avatar_url":"https://avatars.githubusercontent.com/u/11157543?v=3","gravatar_id":"","url":"https://api.github.com/users/likueimo","html_url":"https://github.com/likueimo","followers_url":"https://api.github.com/users/likueimo/followers","following_url":"https://api.github.com/users/likueimo/following{/other_user}","gists_url":"https://api.github.com/users/likueimo/gists{/gist_id}","starred_url":"https://api.github.com/users/likueimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/likueimo/subscriptions","organizations_url":"https://api.github.com/users/likueimo/orgs","repos_url":"https://api.github.com/users/likueimo/repos","events_url":"https://api.github.com/users/likueimo/events{/privacy}","received_events_url":"https://api.github.com/users/likueimo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/likueimo/SAC_Docs_zh","description":"SAC参考手册中文版","fork":true,"url":"https://api.github.com/repos/likueimo/SAC_Docs_zh","forks_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/forks","keys_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/teams","hooks_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/hooks","issue_events_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/issues/events{/number}","events_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/events","assignees_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/assignees{/user}","branches_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/branches{/branch}","tags_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/tags","blobs_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/git/refs{/sha}","trees_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/statuses/{sha}","languages_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/languages","stargazers_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/stargazers","contributors_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/contributors","subscribers_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/subscribers","subscription_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/subscription","commits_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/commits{/sha}","git_commits_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/git/commits{/sha}","comments_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/comments{/number}","issue_comment_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/issues/comments{/number}","contents_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/contents/{+path}","compare_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/merges","archive_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/downloads","issues_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/issues{/number}","pulls_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/pulls{/number}","milestones_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/milestones{/number}","notifications_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/labels{/name}","releases_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/releases{/id}","deployments_url":"https://api.github.com/repos/likueimo/SAC_Docs_zh/deployments","created_at":"2016-07-20T02:09:43Z","updated_at":"2016-07-20T02:09:44Z","pushed_at":"2016-07-20T16:45:17Z","git_url":"git://github.com/likueimo/SAC_Docs_zh.git","ssh_url":"git@github.com:likueimo/SAC_Docs_zh.git","clone_url":"https://github.com/likueimo/SAC_Docs_zh.git","svn_url":"https://github.com/likueimo/SAC_Docs_zh","homepage":"http://seisman.info/sac-manual.html","size":5082,"stargazers_count":0,"watchers_count":0,"language":"TeX","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":"seisman:master","ref":"master","sha":"5573727a6a13879fa9ac30e13ad1a09660829a13","user":{"login":"seisman","id":3974108,"avatar_url":"https://avatars.githubusercontent.com/u/3974108?v=3","gravatar_id":"","url":"https://api.github.com/users/seisman","html_url":"https://github.com/seisman","followers_url":"https://api.github.com/users/seisman/followers","following_url":"https://api.github.com/users/seisman/following{/other_user}","gists_url":"https://api.github.com/users/seisman/gists{/gist_id}","starred_url":"https://api.github.com/users/seisman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seisman/subscriptions","organizations_url":"https://api.github.com/users/seisman/orgs","repos_url":"https://api.github.com/users/seisman/repos","events_url":"https://api.github.com/users/seisman/events{/privacy}","received_events_url":"https://api.github.com/users/seisman/received_events","type":"User","site_admin":false},"repo":{"id":35330002,"name":"SAC_Docs_zh","full_name":"seisman/SAC_Docs_zh","owner":{"login":"seisman","id":3974108,"avatar_url":"https://avatars.githubusercontent.com/u/3974108?v=3","gravatar_id":"","url":"https://api.github.com/users/seisman","html_url":"https://github.com/seisman","followers_url":"https://api.github.com/users/seisman/followers","following_url":"https://api.github.com/users/seisman/following{/other_user}","gists_url":"https://api.github.com/users/seisman/gists{/gist_id}","starred_url":"https://api.github.com/users/seisman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seisman/subscriptions","organizations_url":"https://api.github.com/users/seisman/orgs","repos_url":"https://api.github.com/users/seisman/repos","events_url":"https://api.github.com/users/seisman/events{/privacy}","received_events_url":"https://api.github.com/users/seisman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seisman/SAC_Docs_zh","description":"SAC参考手册中文版","fork":false,"url":"https://api.github.com/repos/seisman/SAC_Docs_zh","forks_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/forks","keys_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/teams","hooks_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/hooks","issue_events_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/issues/events{/number}","events_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/events","assignees_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/assignees{/user}","branches_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/branches{/branch}","tags_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/tags","blobs_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/git/refs{/sha}","trees_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/statuses/{sha}","languages_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/languages","stargazers_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/stargazers","contributors_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/contributors","subscribers_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/subscribers","subscription_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/subscription","commits_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/commits{/sha}","git_commits_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/git/commits{/sha}","comments_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/comments{/number}","issue_comment_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/issues/comments{/number}","contents_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/contents/{+path}","compare_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/merges","archive_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/downloads","issues_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/issues{/number}","pulls_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls{/number}","milestones_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/milestones{/number}","notifications_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/labels{/name}","releases_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/releases{/id}","deployments_url":"https://api.github.com/repos/seisman/SAC_Docs_zh/deployments","created_at":"2015-05-09T13:41:50Z","updated_at":"2016-07-14T02:46:41Z","pushed_at":"2016-07-20T16:46:00Z","git_url":"git://github.com/seisman/SAC_Docs_zh.git","ssh_url":"git@github.com:seisman/SAC_Docs_zh.git","clone_url":"https://github.com/seisman/SAC_Docs_zh.git","svn_url":"https://github.com/seisman/SAC_Docs_zh","homepage":"http://seisman.info/sac-manual.html","size":5082,"stargazers_count":5,"watchers_count":5,"language":"TeX","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":8,"forks":7,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/101"},"html":{"href":"https://github.com/seisman/SAC_Docs_zh/pull/101"},"issue":{"href":"https://api.github.com/repos/seisman/SAC_Docs_zh/issues/101"},"comments":{"href":"https://api.github.com/repos/seisman/SAC_Docs_zh/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seisman/SAC_Docs_zh/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/seisman/SAC_Docs_zh/statuses/300aea978d07178ce8f1e355aa891991e94c6424"}}}}
{"actor":{"display_login":"seisman"}}