{"action":"created","comment":{"url":"https://api.github.com/repos/nguy/AWOT/pulls/comments/57477111","id":57477111,"diff_hunk":"@@ -120,44 +127,187 @@ def read_dropsonde_data(filePath, split_file=True):\n     data = dict()\r\n     data['metadata'] = header\r\n     data['temperature'] = _build_dict(T,\r\n-        'c', 'Temperature of ambient air', 'Temperature')\r\n+                                      'c', 'Temperature of ambient air',\r\n+                                      'Temperature')\r\n     data['dewpoint'] = _build_dict(TD,\r\n-        'c', 'Dewpoint temperature of ambient air', 'Dewpoint Temperature')\r\n+                                   'c', 'Dewpoint temperature of ambient air',\r\n+                                   'Dewpoint Temperature')\r\n     data['presssure'] = _build_dict(P, 'hPa',\r\n-        'Pressure of ambient air', 'Pressure')\r\n+                                    'Pressure of ambient air', 'Pressure')\r\n     data['relative_humidity'] = _build_dict(RH,\r\n-        '%', 'Relative Humidity of ambient air’, ‘Relative Humidity')\r\n+                                            '%', 'Relative Humidity of ambient air’,\r\n+                                            'Relative Humidity')\r\n     data['u_component'] = _build_dict(Uwind,\r\n-        'm/s', 'u component of wind', 'U component')\r\n+                                      'm/s', 'u component of wind',\r\n+                                      'U component')\r\n     data['v_component'] = _build_dict(Vwind,\r\n-        'm/s', 'v component of wind', 'V component')\r\n+                                      'm/s', 'v component of wind',\r\n+                                      'V component')\r\n     data['height'] = _build_dict(H,\r\n-        'm', 'Geometric Height in meters', 'Height')\r\n+                                 'm', 'Geometric Height in meters',\r\n+                                 'Height')\r\n     data['data_format'] = 'dropsonde'\r\n \r\n     return data\r\n \r\n \r\n-# splits a cls file for use in the programm(needs fixing)\r\n-def split_cls_file(filename):\r\n-\r\n-    splitString1 = 'Data Type:'\r\n-    splitString2 = 'Project ID:'\r\n-    splitString3 = '------'\r\n-\r\n-    f = open(filename,'r')\r\n-    newString = ''\r\n-    splitFileList = []\r\n-    f.readline()\r\n-    s =0\r\n-    x=0\r\n-    for line in f:\r\n-        if(splitString1 or splitString2) not in line:\r\n-            newString = newString + line\r\n-        else:\r\n-            splitFileList.append(newString)\r\n-            newString = ''\r\n-\r\n-    splitFileList.append(newString)\r\n+def find_headers(filename):\r\n+    '''\r\n+    Finds the location of the headers of each data instance inside the CLS File\r\n+    Inputs:\r\n+    file path\r\n+    #============\r\n+    output:\r\n+    #list of header locations and number of headers\r\n+    '''\r","path":"awot/io/read_sonde.py","position":98,"original_position":98,"commit_id":"9db204b197c52407b1bf564636835b08784919c9","original_commit_id":"9db204b197c52407b1bf564636835b08784919c9","user":{"login":"nguy","id":1863738,"avatar_url":"https://avatars.githubusercontent.com/u/1863738?v=3","gravatar_id":"","url":"https://api.github.com/users/nguy","html_url":"https://github.com/nguy","followers_url":"https://api.github.com/users/nguy/followers","following_url":"https://api.github.com/users/nguy/following{/other_user}","gists_url":"https://api.github.com/users/nguy/gists{/gist_id}","starred_url":"https://api.github.com/users/nguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguy/subscriptions","organizations_url":"https://api.github.com/users/nguy/orgs","repos_url":"https://api.github.com/users/nguy/repos","events_url":"https://api.github.com/users/nguy/events{/privacy}","received_events_url":"https://api.github.com/users/nguy/received_events","type":"User","site_admin":false},"body":"Update docstring to reflect changes in variables names. Can put the output under a note, use Parameters instead of Inputs as with rest of package. Trying to stay consistent.","created_at":"2016-03-25T18:53:43Z","updated_at":"2016-03-25T18:53:43Z","html_url":"https://github.com/nguy/AWOT/pull/31#discussion_r57477111","pull_request_url":"https://api.github.com/repos/nguy/AWOT/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/nguy/AWOT/pulls/comments/57477111"},"html":{"href":"https://github.com/nguy/AWOT/pull/31#discussion_r57477111"},"pull_request":{"href":"https://api.github.com/repos/nguy/AWOT/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/nguy/AWOT/pulls/31","id":61764668,"html_url":"https://github.com/nguy/AWOT/pull/31","diff_url":"https://github.com/nguy/AWOT/pull/31.diff","patch_url":"https://github.com/nguy/AWOT/pull/31.patch","issue_url":"https://api.github.com/repos/nguy/AWOT/issues/31","number":31,"state":"open","locked":false,"title":"Master","user":{"login":"adlyons","id":5350849,"avatar_url":"https://avatars.githubusercontent.com/u/5350849?v=3","gravatar_id":"","url":"https://api.github.com/users/adlyons","html_url":"https://github.com/adlyons","followers_url":"https://api.github.com/users/adlyons/followers","following_url":"https://api.github.com/users/adlyons/following{/other_user}","gists_url":"https://api.github.com/users/adlyons/gists{/gist_id}","starred_url":"https://api.github.com/users/adlyons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adlyons/subscriptions","organizations_url":"https://api.github.com/users/adlyons/orgs","repos_url":"https://api.github.com/users/adlyons/repos","events_url":"https://api.github.com/users/adlyons/events{/privacy}","received_events_url":"https://api.github.com/users/adlyons/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-04T20:13:07Z","updated_at":"2016-03-25T18:53:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bbcf0446be11cfd381252ad9cbd59773577fbeb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nguy/AWOT/pulls/31/commits","review_comments_url":"https://api.github.com/repos/nguy/AWOT/pulls/31/comments","review_comment_url":"https://api.github.com/repos/nguy/AWOT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nguy/AWOT/issues/31/comments","statuses_url":"https://api.github.com/repos/nguy/AWOT/statuses/9db204b197c52407b1bf564636835b08784919c9","head":{"label":"adlyons:master","ref":"master","sha":"9db204b197c52407b1bf564636835b08784919c9","user":{"login":"adlyons","id":5350849,"avatar_url":"https://avatars.githubusercontent.com/u/5350849?v=3","gravatar_id":"","url":"https://api.github.com/users/adlyons","html_url":"https://github.com/adlyons","followers_url":"https://api.github.com/users/adlyons/followers","following_url":"https://api.github.com/users/adlyons/following{/other_user}","gists_url":"https://api.github.com/users/adlyons/gists{/gist_id}","starred_url":"https://api.github.com/users/adlyons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adlyons/subscriptions","organizations_url":"https://api.github.com/users/adlyons/orgs","repos_url":"https://api.github.com/users/adlyons/repos","events_url":"https://api.github.com/users/adlyons/events{/privacy}","received_events_url":"https://api.github.com/users/adlyons/received_events","type":"User","site_admin":false},"repo":{"id":45444050,"name":"AWOT","full_name":"adlyons/AWOT","owner":{"login":"adlyons","id":5350849,"avatar_url":"https://avatars.githubusercontent.com/u/5350849?v=3","gravatar_id":"","url":"https://api.github.com/users/adlyons","html_url":"https://github.com/adlyons","followers_url":"https://api.github.com/users/adlyons/followers","following_url":"https://api.github.com/users/adlyons/following{/other_user}","gists_url":"https://api.github.com/users/adlyons/gists{/gist_id}","starred_url":"https://api.github.com/users/adlyons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adlyons/subscriptions","organizations_url":"https://api.github.com/users/adlyons/orgs","repos_url":"https://api.github.com/users/adlyons/repos","events_url":"https://api.github.com/users/adlyons/events{/privacy}","received_events_url":"https://api.github.com/users/adlyons/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adlyons/AWOT","description":"Airborne Weather Observations Toolkit - A python-based package","fork":true,"url":"https://api.github.com/repos/adlyons/AWOT","forks_url":"https://api.github.com/repos/adlyons/AWOT/forks","keys_url":"https://api.github.com/repos/adlyons/AWOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adlyons/AWOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adlyons/AWOT/teams","hooks_url":"https://api.github.com/repos/adlyons/AWOT/hooks","issue_events_url":"https://api.github.com/repos/adlyons/AWOT/issues/events{/number}","events_url":"https://api.github.com/repos/adlyons/AWOT/events","assignees_url":"https://api.github.com/repos/adlyons/AWOT/assignees{/user}","branches_url":"https://api.github.com/repos/adlyons/AWOT/branches{/branch}","tags_url":"https://api.github.com/repos/adlyons/AWOT/tags","blobs_url":"https://api.github.com/repos/adlyons/AWOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adlyons/AWOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adlyons/AWOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/adlyons/AWOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adlyons/AWOT/statuses/{sha}","languages_url":"https://api.github.com/repos/adlyons/AWOT/languages","stargazers_url":"https://api.github.com/repos/adlyons/AWOT/stargazers","contributors_url":"https://api.github.com/repos/adlyons/AWOT/contributors","subscribers_url":"https://api.github.com/repos/adlyons/AWOT/subscribers","subscription_url":"https://api.github.com/repos/adlyons/AWOT/subscription","commits_url":"https://api.github.com/repos/adlyons/AWOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/adlyons/AWOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/adlyons/AWOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/adlyons/AWOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/adlyons/AWOT/contents/{+path}","compare_url":"https://api.github.com/repos/adlyons/AWOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adlyons/AWOT/merges","archive_url":"https://api.github.com/repos/adlyons/AWOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adlyons/AWOT/downloads","issues_url":"https://api.github.com/repos/adlyons/AWOT/issues{/number}","pulls_url":"https://api.github.com/repos/adlyons/AWOT/pulls{/number}","milestones_url":"https://api.github.com/repos/adlyons/AWOT/milestones{/number}","notifications_url":"https://api.github.com/repos/adlyons/AWOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adlyons/AWOT/labels{/name}","releases_url":"https://api.github.com/repos/adlyons/AWOT/releases{/id}","deployments_url":"https://api.github.com/repos/adlyons/AWOT/deployments","created_at":"2015-11-03T05:31:27Z","updated_at":"2016-01-11T22:48:08Z","pushed_at":"2016-03-25T18:13:43Z","git_url":"git://github.com/adlyons/AWOT.git","ssh_url":"git@github.com:adlyons/AWOT.git","clone_url":"https://github.com/adlyons/AWOT.git","svn_url":"https://github.com/adlyons/AWOT","homepage":null,"size":8545,"stargazers_count":0,"watchers_count":0,"language":"FORTRAN","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":"nguy:master","ref":"master","sha":"093e1d10aecc225a4e8d980bd15f3df86dfd12c6","user":{"login":"nguy","id":1863738,"avatar_url":"https://avatars.githubusercontent.com/u/1863738?v=3","gravatar_id":"","url":"https://api.github.com/users/nguy","html_url":"https://github.com/nguy","followers_url":"https://api.github.com/users/nguy/followers","following_url":"https://api.github.com/users/nguy/following{/other_user}","gists_url":"https://api.github.com/users/nguy/gists{/gist_id}","starred_url":"https://api.github.com/users/nguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguy/subscriptions","organizations_url":"https://api.github.com/users/nguy/orgs","repos_url":"https://api.github.com/users/nguy/repos","events_url":"https://api.github.com/users/nguy/events{/privacy}","received_events_url":"https://api.github.com/users/nguy/received_events","type":"User","site_admin":false},"repo":{"id":23434440,"name":"AWOT","full_name":"nguy/AWOT","owner":{"login":"nguy","id":1863738,"avatar_url":"https://avatars.githubusercontent.com/u/1863738?v=3","gravatar_id":"","url":"https://api.github.com/users/nguy","html_url":"https://github.com/nguy","followers_url":"https://api.github.com/users/nguy/followers","following_url":"https://api.github.com/users/nguy/following{/other_user}","gists_url":"https://api.github.com/users/nguy/gists{/gist_id}","starred_url":"https://api.github.com/users/nguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguy/subscriptions","organizations_url":"https://api.github.com/users/nguy/orgs","repos_url":"https://api.github.com/users/nguy/repos","events_url":"https://api.github.com/users/nguy/events{/privacy}","received_events_url":"https://api.github.com/users/nguy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguy/AWOT","description":"Airborne Weather Observations Toolkit - A python-based package","fork":false,"url":"https://api.github.com/repos/nguy/AWOT","forks_url":"https://api.github.com/repos/nguy/AWOT/forks","keys_url":"https://api.github.com/repos/nguy/AWOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguy/AWOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguy/AWOT/teams","hooks_url":"https://api.github.com/repos/nguy/AWOT/hooks","issue_events_url":"https://api.github.com/repos/nguy/AWOT/issues/events{/number}","events_url":"https://api.github.com/repos/nguy/AWOT/events","assignees_url":"https://api.github.com/repos/nguy/AWOT/assignees{/user}","branches_url":"https://api.github.com/repos/nguy/AWOT/branches{/branch}","tags_url":"https://api.github.com/repos/nguy/AWOT/tags","blobs_url":"https://api.github.com/repos/nguy/AWOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguy/AWOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguy/AWOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguy/AWOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguy/AWOT/statuses/{sha}","languages_url":"https://api.github.com/repos/nguy/AWOT/languages","stargazers_url":"https://api.github.com/repos/nguy/AWOT/stargazers","contributors_url":"https://api.github.com/repos/nguy/AWOT/contributors","subscribers_url":"https://api.github.com/repos/nguy/AWOT/subscribers","subscription_url":"https://api.github.com/repos/nguy/AWOT/subscription","commits_url":"https://api.github.com/repos/nguy/AWOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguy/AWOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguy/AWOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguy/AWOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguy/AWOT/contents/{+path}","compare_url":"https://api.github.com/repos/nguy/AWOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguy/AWOT/merges","archive_url":"https://api.github.com/repos/nguy/AWOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguy/AWOT/downloads","issues_url":"https://api.github.com/repos/nguy/AWOT/issues{/number}","pulls_url":"https://api.github.com/repos/nguy/AWOT/pulls{/number}","milestones_url":"https://api.github.com/repos/nguy/AWOT/milestones{/number}","notifications_url":"https://api.github.com/repos/nguy/AWOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguy/AWOT/labels{/name}","releases_url":"https://api.github.com/repos/nguy/AWOT/releases{/id}","deployments_url":"https://api.github.com/repos/nguy/AWOT/deployments","created_at":"2014-08-28T16:08:56Z","updated_at":"2016-03-22T12:18:53Z","pushed_at":"2016-03-25T18:13:44Z","git_url":"git://github.com/nguy/AWOT.git","ssh_url":"git@github.com:nguy/AWOT.git","clone_url":"https://github.com/nguy/AWOT.git","svn_url":"https://github.com/nguy/AWOT","homepage":null,"size":8534,"stargazers_count":5,"watchers_count":5,"language":"FORTRAN","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nguy/AWOT/pulls/31"},"html":{"href":"https://github.com/nguy/AWOT/pull/31"},"issue":{"href":"https://api.github.com/repos/nguy/AWOT/issues/31"},"comments":{"href":"https://api.github.com/repos/nguy/AWOT/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/nguy/AWOT/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/nguy/AWOT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nguy/AWOT/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/nguy/AWOT/statuses/9db204b197c52407b1bf564636835b08784919c9"}}}}