{"action":"opened","number":1687,"pull_request":{"url":"https://api.github.com/repos/SciTools/iris/pulls/1687","id":36305212,"html_url":"https://github.com/SciTools/iris/pull/1687","diff_url":"https://github.com/SciTools/iris/pull/1687.diff","patch_url":"https://github.com/SciTools/iris/pull/1687.patch","issue_url":"https://api.github.com/repos/SciTools/iris/issues/1687","number":1687,"state":"open","locked":false,"title":"Add GRIB2 load support for GDT-50 (spherical harmonics).","user":{"login":"ajdawson","id":390602,"avatar_url":"https://avatars.githubusercontent.com/u/390602?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdawson","html_url":"https://github.com/ajdawson","followers_url":"https://api.github.com/users/ajdawson/followers","following_url":"https://api.github.com/users/ajdawson/following{/other_user}","gists_url":"https://api.github.com/users/ajdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdawson/subscriptions","organizations_url":"https://api.github.com/users/ajdawson/orgs","repos_url":"https://api.github.com/users/ajdawson/repos","events_url":"https://api.github.com/users/ajdawson/events{/privacy}","received_events_url":"https://api.github.com/users/ajdawson/received_events","type":"User","site_admin":false},"body":"This PR represents a preliminary attempt at loading spherical harmonics from GRIB2 files using Iris. I say preliminary because there is no CF specification for representing spherical harmonics. There will be specifics of this that require further discussion, in particular the question of what metadata beyond coordinates should the translation add to allow better understanding of the loaded coefficients (e.g. spectral resolution, coefficient normalisation).\r\n\r\nThe current implementation simply loads the coefficients as a 1D array, along with two auxiliary coordinates to describe the zonal and meridional wavenumber associated with each coefficient. I've also added attributes relating to the spectral resolution and truncation.\r\n\r\nMost of the model output I generate is initially in the form of spherical harmonics. While Iris may not have built-in functionality to actually do anything with them (yet), in my opinion the handling of time and other metadata makes this feature worth having even at the current time (and perhaps there are independent use cases that have appeared at the MO too?).\r\n","created_at":"2015-05-27T13:48:18Z","updated_at":"2015-05-27T13:48:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SciTools/iris/pulls/1687/commits","review_comments_url":"https://api.github.com/repos/SciTools/iris/pulls/1687/comments","review_comment_url":"https://api.github.com/repos/SciTools/iris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SciTools/iris/issues/1687/comments","statuses_url":"https://api.github.com/repos/SciTools/iris/statuses/bd54c5a879b91788b5f267c8b9865163e6f1a839","head":{"label":"ajdawson:grib2-gdt50","ref":"grib2-gdt50","sha":"bd54c5a879b91788b5f267c8b9865163e6f1a839","user":{"login":"ajdawson","id":390602,"avatar_url":"https://avatars.githubusercontent.com/u/390602?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdawson","html_url":"https://github.com/ajdawson","followers_url":"https://api.github.com/users/ajdawson/followers","following_url":"https://api.github.com/users/ajdawson/following{/other_user}","gists_url":"https://api.github.com/users/ajdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdawson/subscriptions","organizations_url":"https://api.github.com/users/ajdawson/orgs","repos_url":"https://api.github.com/users/ajdawson/repos","events_url":"https://api.github.com/users/ajdawson/events{/privacy}","received_events_url":"https://api.github.com/users/ajdawson/received_events","type":"User","site_admin":false},"repo":{"id":6631312,"name":"iris","full_name":"ajdawson/iris","owner":{"login":"ajdawson","id":390602,"avatar_url":"https://avatars.githubusercontent.com/u/390602?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdawson","html_url":"https://github.com/ajdawson","followers_url":"https://api.github.com/users/ajdawson/followers","following_url":"https://api.github.com/users/ajdawson/following{/other_user}","gists_url":"https://api.github.com/users/ajdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdawson/subscriptions","organizations_url":"https://api.github.com/users/ajdawson/orgs","repos_url":"https://api.github.com/users/ajdawson/repos","events_url":"https://api.github.com/users/ajdawson/events{/privacy}","received_events_url":"https://api.github.com/users/ajdawson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajdawson/iris","description":"A powerful, easy to use, and community-driven Python library for analysing and visualising meteorological and oceanographic data sets.","fork":true,"url":"https://api.github.com/repos/ajdawson/iris","forks_url":"https://api.github.com/repos/ajdawson/iris/forks","keys_url":"https://api.github.com/repos/ajdawson/iris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajdawson/iris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajdawson/iris/teams","hooks_url":"https://api.github.com/repos/ajdawson/iris/hooks","issue_events_url":"https://api.github.com/repos/ajdawson/iris/issues/events{/number}","events_url":"https://api.github.com/repos/ajdawson/iris/events","assignees_url":"https://api.github.com/repos/ajdawson/iris/assignees{/user}","branches_url":"https://api.github.com/repos/ajdawson/iris/branches{/branch}","tags_url":"https://api.github.com/repos/ajdawson/iris/tags","blobs_url":"https://api.github.com/repos/ajdawson/iris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajdawson/iris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajdawson/iris/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajdawson/iris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajdawson/iris/statuses/{sha}","languages_url":"https://api.github.com/repos/ajdawson/iris/languages","stargazers_url":"https://api.github.com/repos/ajdawson/iris/stargazers","contributors_url":"https://api.github.com/repos/ajdawson/iris/contributors","subscribers_url":"https://api.github.com/repos/ajdawson/iris/subscribers","subscription_url":"https://api.github.com/repos/ajdawson/iris/subscription","commits_url":"https://api.github.com/repos/ajdawson/iris/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajdawson/iris/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajdawson/iris/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajdawson/iris/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajdawson/iris/contents/{+path}","compare_url":"https://api.github.com/repos/ajdawson/iris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajdawson/iris/merges","archive_url":"https://api.github.com/repos/ajdawson/iris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajdawson/iris/downloads","issues_url":"https://api.github.com/repos/ajdawson/iris/issues{/number}","pulls_url":"https://api.github.com/repos/ajdawson/iris/pulls{/number}","milestones_url":"https://api.github.com/repos/ajdawson/iris/milestones{/number}","notifications_url":"https://api.github.com/repos/ajdawson/iris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajdawson/iris/labels{/name}","releases_url":"https://api.github.com/repos/ajdawson/iris/releases{/id}","created_at":"2012-11-10T19:17:52Z","updated_at":"2015-03-19T15:28:06Z","pushed_at":"2015-05-27T13:34:34Z","git_url":"git://github.com/ajdawson/iris.git","ssh_url":"git@github.com:ajdawson/iris.git","clone_url":"https://github.com/ajdawson/iris.git","svn_url":"https://github.com/ajdawson/iris","homepage":"http://scitools.org.uk/iris/","size":104447,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SciTools:master","ref":"master","sha":"412d14481e3e6b6a55ae561c3c123c612b331e86","user":{"login":"SciTools","id":1391487,"avatar_url":"https://avatars.githubusercontent.com/u/1391487?v=3","gravatar_id":"","url":"https://api.github.com/users/SciTools","html_url":"https://github.com/SciTools","followers_url":"https://api.github.com/users/SciTools/followers","following_url":"https://api.github.com/users/SciTools/following{/other_user}","gists_url":"https://api.github.com/users/SciTools/gists{/gist_id}","starred_url":"https://api.github.com/users/SciTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciTools/subscriptions","organizations_url":"https://api.github.com/users/SciTools/orgs","repos_url":"https://api.github.com/users/SciTools/repos","events_url":"https://api.github.com/users/SciTools/events{/privacy}","received_events_url":"https://api.github.com/users/SciTools/received_events","type":"Organization","site_admin":false},"repo":{"id":5312648,"name":"iris","full_name":"SciTools/iris","owner":{"login":"SciTools","id":1391487,"avatar_url":"https://avatars.githubusercontent.com/u/1391487?v=3","gravatar_id":"","url":"https://api.github.com/users/SciTools","html_url":"https://github.com/SciTools","followers_url":"https://api.github.com/users/SciTools/followers","following_url":"https://api.github.com/users/SciTools/following{/other_user}","gists_url":"https://api.github.com/users/SciTools/gists{/gist_id}","starred_url":"https://api.github.com/users/SciTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciTools/subscriptions","organizations_url":"https://api.github.com/users/SciTools/orgs","repos_url":"https://api.github.com/users/SciTools/repos","events_url":"https://api.github.com/users/SciTools/events{/privacy}","received_events_url":"https://api.github.com/users/SciTools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SciTools/iris","description":"A powerful, easy to use, and community-driven Python library for analysing and visualising meteorological and oceanographic data sets.","fork":false,"url":"https://api.github.com/repos/SciTools/iris","forks_url":"https://api.github.com/repos/SciTools/iris/forks","keys_url":"https://api.github.com/repos/SciTools/iris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SciTools/iris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SciTools/iris/teams","hooks_url":"https://api.github.com/repos/SciTools/iris/hooks","issue_events_url":"https://api.github.com/repos/SciTools/iris/issues/events{/number}","events_url":"https://api.github.com/repos/SciTools/iris/events","assignees_url":"https://api.github.com/repos/SciTools/iris/assignees{/user}","branches_url":"https://api.github.com/repos/SciTools/iris/branches{/branch}","tags_url":"https://api.github.com/repos/SciTools/iris/tags","blobs_url":"https://api.github.com/repos/SciTools/iris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SciTools/iris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SciTools/iris/git/refs{/sha}","trees_url":"https://api.github.com/repos/SciTools/iris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SciTools/iris/statuses/{sha}","languages_url":"https://api.github.com/repos/SciTools/iris/languages","stargazers_url":"https://api.github.com/repos/SciTools/iris/stargazers","contributors_url":"https://api.github.com/repos/SciTools/iris/contributors","subscribers_url":"https://api.github.com/repos/SciTools/iris/subscribers","subscription_url":"https://api.github.com/repos/SciTools/iris/subscription","commits_url":"https://api.github.com/repos/SciTools/iris/commits{/sha}","git_commits_url":"https://api.github.com/repos/SciTools/iris/git/commits{/sha}","comments_url":"https://api.github.com/repos/SciTools/iris/comments{/number}","issue_comment_url":"https://api.github.com/repos/SciTools/iris/issues/comments{/number}","contents_url":"https://api.github.com/repos/SciTools/iris/contents/{+path}","compare_url":"https://api.github.com/repos/SciTools/iris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SciTools/iris/merges","archive_url":"https://api.github.com/repos/SciTools/iris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SciTools/iris/downloads","issues_url":"https://api.github.com/repos/SciTools/iris/issues{/number}","pulls_url":"https://api.github.com/repos/SciTools/iris/pulls{/number}","milestones_url":"https://api.github.com/repos/SciTools/iris/milestones{/number}","notifications_url":"https://api.github.com/repos/SciTools/iris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SciTools/iris/labels{/name}","releases_url":"https://api.github.com/repos/SciTools/iris/releases{/id}","created_at":"2012-08-06T10:09:14Z","updated_at":"2015-05-21T14:53:58Z","pushed_at":"2015-05-27T12:56:26Z","git_url":"git://github.com/SciTools/iris.git","ssh_url":"git@github.com:SciTools/iris.git","clone_url":"https://github.com/SciTools/iris.git","svn_url":"https://github.com/SciTools/iris","homepage":"http://scitools.org.uk/iris/","size":146624,"stargazers_count":90,"watchers_count":90,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":163,"forks":72,"open_issues":163,"watchers":90,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1687"},"html":{"href":"https://github.com/SciTools/iris/pull/1687"},"issue":{"href":"https://api.github.com/repos/SciTools/iris/issues/1687"},"comments":{"href":"https://api.github.com/repos/SciTools/iris/issues/1687/comments"},"review_comments":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1687/comments"},"review_comment":{"href":"https://api.github.com/repos/SciTools/iris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1687/commits"},"statuses":{"href":"https://api.github.com/repos/SciTools/iris/statuses/bd54c5a879b91788b5f267c8b9865163e6f1a839"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":247,"deletions":6,"changed_files":4}}