{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/comments/90066517","pull_request_review_id":10591646,"id":90066517,"diff_hunk":"@@ -0,0 +1,549 @@\n+/*****************************************************************************\n+FILE: create_landsat_angle_bands\n+\n+PURPOSE: Creates the Landsat 4-7 solar and view/satellite per-pixel angles for\n+the specified Landsat bands (4 - representative band).  Both the zenith and\n+azimuth angles are created for each angle type for each Landsat band.\n+\n+PROJECT:  Land Satellites Data System Science Research and Development (LSRD)\n+at the USGS EROS\n+\n+LICENSE TYPE:  NASA Open Source Agreement Version 1.3\n+\n+NOTES:\n+*****************************************************************************/\n+#include <getopt.h>\n+#include <stdlib.h>\n+#include <stdio.h>\n+#include <string.h>\n+#include <time.h>\n+\n+#include \"error_handler.h\"\n+#include \"envi_header.h\"\n+#include \"parse_metadata.h\"\n+#include \"write_metadata.h\"\n+#include \"landsat_angles.h\"\n+\n+/* Define the fill value and the scaling factors */\n+#define ANGLE_BAND_SCALE_FACT 0.01\n+\n+/* Define the solar/sensor angle band indices */\n+typedef enum\n+{\n+    SOLAR_ZEN = 0,\n+    SOLAR_AZ,\n+    SENSOR_ZEN,\n+    SENSOR_AZ,\n+    NANGLE_BANDS\n+} Angle_band_t;\n+\n+/******************************************************************************\n+MODULE: usage\n+\n+PURPOSE: Prints the usage information for this application.\n+\n+RETURN VALUE:\n+Type = None\n+\n+NOTES:\n+******************************************************************************/\n+void usage ()\n+{\n+    printf (\"create_angle_bands creates the Landsat solar and view \"\n+            \"(satellite) per-pixel angles for band 4.  Both the zenith and \"\n+            \"azimuth angles are created for each angle.  Values are written \"","path":"raw_binary/tools/create_landsat_angle_bands.c","position":54,"original_position":54,"commit_id":"d038b8ead7664d995020d298f072d8c74c081626","original_commit_id":"d038b8ead7664d995020d298f072d8c74c081626","user":{"login":"gschmidt-usgs","id":12549375,"avatar_url":"https://avatars.githubusercontent.com/u/12549375?v=3","gravatar_id":"","url":"https://api.github.com/users/gschmidt-usgs","html_url":"https://github.com/gschmidt-usgs","followers_url":"https://api.github.com/users/gschmidt-usgs/followers","following_url":"https://api.github.com/users/gschmidt-usgs/following{/other_user}","gists_url":"https://api.github.com/users/gschmidt-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/gschmidt-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gschmidt-usgs/subscriptions","organizations_url":"https://api.github.com/users/gschmidt-usgs/orgs","repos_url":"https://api.github.com/users/gschmidt-usgs/repos","events_url":"https://api.github.com/users/gschmidt-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/gschmidt-usgs/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2016-11-29T17:56:43Z","updated_at":"2016-11-29T17:56:44Z","html_url":"https://github.com/USGS-EROS/espa-product-formatter/pull/35#discussion_r90066517","pull_request_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/comments/90066517"},"html":{"href":"https://github.com/USGS-EROS/espa-product-formatter/pull/35#discussion_r90066517"},"pull_request":{"href":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/35","id":95552097,"html_url":"https://github.com/USGS-EROS/espa-product-formatter/pull/35","diff_url":"https://github.com/USGS-EROS/espa-product-formatter/pull/35.diff","patch_url":"https://github.com/USGS-EROS/espa-product-formatter/pull/35.patch","issue_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/issues/35","number":35,"state":"open","locked":false,"title":"Dev v1.10.0","user":{"login":"gschmidt-usgs","id":12549375,"avatar_url":"https://avatars.githubusercontent.com/u/12549375?v=3","gravatar_id":"","url":"https://api.github.com/users/gschmidt-usgs","html_url":"https://github.com/gschmidt-usgs","followers_url":"https://api.github.com/users/gschmidt-usgs/followers","following_url":"https://api.github.com/users/gschmidt-usgs/following{/other_user}","gists_url":"https://api.github.com/users/gschmidt-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/gschmidt-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gschmidt-usgs/subscriptions","organizations_url":"https://api.github.com/users/gschmidt-usgs/orgs","repos_url":"https://api.github.com/users/gschmidt-usgs/repos","events_url":"https://api.github.com/users/gschmidt-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/gschmidt-usgs/received_events","type":"User","site_admin":false},"body":"Ready for peer review.","created_at":"2016-11-28T18:28:32Z","updated_at":"2016-11-29T17:56:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12bfc102be340c068461a9e30deabaf8fc2073a3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/35/commits","review_comments_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/35/comments","review_comment_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/issues/35/comments","statuses_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/statuses/d038b8ead7664d995020d298f072d8c74c081626","head":{"label":"USGS-EROS:dev_v1.10.0","ref":"dev_v1.10.0","sha":"d038b8ead7664d995020d298f072d8c74c081626","user":{"login":"USGS-EROS","id":12549192,"avatar_url":"https://avatars.githubusercontent.com/u/12549192?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-EROS","html_url":"https://github.com/USGS-EROS","followers_url":"https://api.github.com/users/USGS-EROS/followers","following_url":"https://api.github.com/users/USGS-EROS/following{/other_user}","gists_url":"https://api.github.com/users/USGS-EROS/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-EROS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-EROS/subscriptions","organizations_url":"https://api.github.com/users/USGS-EROS/orgs","repos_url":"https://api.github.com/users/USGS-EROS/repos","events_url":"https://api.github.com/users/USGS-EROS/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-EROS/received_events","type":"Organization","site_admin":false},"repo":{"id":36518318,"name":"espa-product-formatter","full_name":"USGS-EROS/espa-product-formatter","owner":{"login":"USGS-EROS","id":12549192,"avatar_url":"https://avatars.githubusercontent.com/u/12549192?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-EROS","html_url":"https://github.com/USGS-EROS","followers_url":"https://api.github.com/users/USGS-EROS/followers","following_url":"https://api.github.com/users/USGS-EROS/following{/other_user}","gists_url":"https://api.github.com/users/USGS-EROS/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-EROS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-EROS/subscriptions","organizations_url":"https://api.github.com/users/USGS-EROS/orgs","repos_url":"https://api.github.com/users/USGS-EROS/repos","events_url":"https://api.github.com/users/USGS-EROS/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-EROS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-EROS/espa-product-formatter","description":"ESPA module for product formatting","fork":false,"url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter","forks_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/forks","keys_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/teams","hooks_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/hooks","issue_events_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/events","assignees_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/tags","blobs_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/languages","stargazers_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/stargazers","contributors_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/contributors","subscribers_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/subscribers","subscription_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/subscription","commits_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/merges","archive_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/downloads","issues_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/labels{/name}","releases_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/releases{/id}","deployments_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/deployments","created_at":"2015-05-29T17:15:13Z","updated_at":"2016-06-23T21:34:02Z","pushed_at":"2016-11-28T18:28:32Z","git_url":"git://github.com/USGS-EROS/espa-product-formatter.git","ssh_url":"git@github.com:USGS-EROS/espa-product-formatter.git","clone_url":"https://github.com/USGS-EROS/espa-product-formatter.git","svn_url":"https://github.com/USGS-EROS/espa-product-formatter","homepage":null,"size":1148,"stargazers_count":5,"watchers_count":5,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":8,"forks":13,"open_issues":8,"watchers":5,"default_branch":"master"}},"base":{"label":"USGS-EROS:master","ref":"master","sha":"29fd924dc72da5473a8aa09d1c73964ca068b35b","user":{"login":"USGS-EROS","id":12549192,"avatar_url":"https://avatars.githubusercontent.com/u/12549192?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-EROS","html_url":"https://github.com/USGS-EROS","followers_url":"https://api.github.com/users/USGS-EROS/followers","following_url":"https://api.github.com/users/USGS-EROS/following{/other_user}","gists_url":"https://api.github.com/users/USGS-EROS/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-EROS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-EROS/subscriptions","organizations_url":"https://api.github.com/users/USGS-EROS/orgs","repos_url":"https://api.github.com/users/USGS-EROS/repos","events_url":"https://api.github.com/users/USGS-EROS/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-EROS/received_events","type":"Organization","site_admin":false},"repo":{"id":36518318,"name":"espa-product-formatter","full_name":"USGS-EROS/espa-product-formatter","owner":{"login":"USGS-EROS","id":12549192,"avatar_url":"https://avatars.githubusercontent.com/u/12549192?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-EROS","html_url":"https://github.com/USGS-EROS","followers_url":"https://api.github.com/users/USGS-EROS/followers","following_url":"https://api.github.com/users/USGS-EROS/following{/other_user}","gists_url":"https://api.github.com/users/USGS-EROS/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-EROS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-EROS/subscriptions","organizations_url":"https://api.github.com/users/USGS-EROS/orgs","repos_url":"https://api.github.com/users/USGS-EROS/repos","events_url":"https://api.github.com/users/USGS-EROS/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-EROS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-EROS/espa-product-formatter","description":"ESPA module for product formatting","fork":false,"url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter","forks_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/forks","keys_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/teams","hooks_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/hooks","issue_events_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/events","assignees_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/tags","blobs_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/languages","stargazers_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/stargazers","contributors_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/contributors","subscribers_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/subscribers","subscription_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/subscription","commits_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/merges","archive_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/downloads","issues_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/labels{/name}","releases_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/releases{/id}","deployments_url":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/deployments","created_at":"2015-05-29T17:15:13Z","updated_at":"2016-06-23T21:34:02Z","pushed_at":"2016-11-28T18:28:32Z","git_url":"git://github.com/USGS-EROS/espa-product-formatter.git","ssh_url":"git@github.com:USGS-EROS/espa-product-formatter.git","clone_url":"https://github.com/USGS-EROS/espa-product-formatter.git","svn_url":"https://github.com/USGS-EROS/espa-product-formatter","homepage":null,"size":1148,"stargazers_count":5,"watchers_count":5,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":8,"forks":13,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/35"},"html":{"href":"https://github.com/USGS-EROS/espa-product-formatter/pull/35"},"issue":{"href":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/issues/35"},"comments":{"href":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-EROS/espa-product-formatter/statuses/d038b8ead7664d995020d298f072d8c74c081626"}}}}
{"actor":{"display_login":"gschmidt-usgs"}}