{"action":"created","comment":{"url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/comments/214990789","pull_request_review_id":152158904,"id":214990789,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDk5MDc4OQ==","diff_hunk":"@@ -5,13 +5,75 @@ library(readr)\n library(dplyr)\n library(ggplot2)\n library(ggrepel)\n+library(lubridate)\n+library(tidyr)\n+\n+# Function to replace S/N with descriptive label\n+read_wxdat <- function(file) {\n+  subfile <- read_csv(\"../inventory_data/wstation_info.csv\")\n+  wdat <- file %>% \n+    read_csv(skip=1) %>%\n+    gather(label, Value, -1:-2) %>% \n+    separate(label, sep = \"SEN S/N: \", into = c(\"firstpart\", \"Sensor_SN\")) %>%\n+    separate(firstpart, sep = \",\", into = c(\"Sensor_Group\", \"info\")) %>%\n+    select(- info)\n+  wdat$Timestamp <- mdy_hms(wdat$`Date Time, GMT-04:00`)\n+  wdat$Sensor_SN <- as.integer(gsub(\")\", \"\", wdat$Sensor_SN))\n+ \n+  wdat <- left_join(wdat, subfile, by = \"Sensor_SN\") \n+  wdat <- separate(wdat, Sensor_Label, sep = \"_\", into = c(\"info1\", \"info2\", \"Sensor_Depth\"))\n+  wdat <- select(wdat, -`Date Time, GMT-04:00`, -info1, -info2)\n \n-read_weather_data <- function(path) {\n-  files <<- list.files(path, pattern = \".csv\", full.names = TRUE)\n-  list <- list()\n-  for (i in files) {\n-    list[[i]] <- read_csv(i)\n-  }\n }\n \n-c <- read_weather_data(\"../weather_data/\")\n+cat(\"Reading weather data...\")\n+wx_LSLE <- read_wxdat(\"../weather_data/LSLE_weather_20180809.csv\")\n+wx_MSLE <- read_wxdat(\"../weather_data/MSLE_weather_20180809.csv\")\n+wx_HSLE <- read_wxdat(\"../weather_data/HSLE_weather_20180806.csv\")","path":"R_scripts/weatherdat.R","position":35,"original_position":35,"commit_id":"21f8900b40a9e028bcfa9e605692b4afa0ba795d","original_commit_id":"21f8900b40a9e028bcfa9e605692b4afa0ba795d","user":{"login":"bpbond","id":1956468,"node_id":"MDQ6VXNlcjE5NTY0Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/1956468?v=4","gravatar_id":"","url":"https://api.github.com/users/bpbond","html_url":"https://github.com/bpbond","followers_url":"https://api.github.com/users/bpbond/followers","following_url":"https://api.github.com/users/bpbond/following{/other_user}","gists_url":"https://api.github.com/users/bpbond/gists{/gist_id}","starred_url":"https://api.github.com/users/bpbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpbond/subscriptions","organizations_url":"https://api.github.com/users/bpbond/orgs","repos_url":"https://api.github.com/users/bpbond/repos","events_url":"https://api.github.com/users/bpbond/events{/privacy}","received_events_url":"https://api.github.com/users/bpbond/received_events","type":"User","site_admin":false},"body":"Do you want these to be fixed filenames? What about future downloads?","created_at":"2018-09-04T16:54:33Z","updated_at":"2018-09-04T16:55:07Z","html_url":"https://github.com/PNNL-PREMIS/PREMIS-ghg/pull/52#discussion_r214990789","pull_request_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/52","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/comments/214990789"},"html":{"href":"https://github.com/PNNL-PREMIS/PREMIS-ghg/pull/52#discussion_r214990789"},"pull_request":{"href":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/52","id":213040617,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzMDQwNjE3","html_url":"https://github.com/PNNL-PREMIS/PREMIS-ghg/pull/52","diff_url":"https://github.com/PNNL-PREMIS/PREMIS-ghg/pull/52.diff","patch_url":"https://github.com/PNNL-PREMIS/PREMIS-ghg/pull/52.patch","issue_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/issues/52","number":52,"state":"open","locked":false,"title":"Weather data script as of 9/4","user":{"login":"stephpenn1","id":20341158,"node_id":"MDQ6VXNlcjIwMzQxMTU4","avatar_url":"https://avatars0.githubusercontent.com/u/20341158?v=4","gravatar_id":"","url":"https://api.github.com/users/stephpenn1","html_url":"https://github.com/stephpenn1","followers_url":"https://api.github.com/users/stephpenn1/followers","following_url":"https://api.github.com/users/stephpenn1/following{/other_user}","gists_url":"https://api.github.com/users/stephpenn1/gists{/gist_id}","starred_url":"https://api.github.com/users/stephpenn1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephpenn1/subscriptions","organizations_url":"https://api.github.com/users/stephpenn1/orgs","repos_url":"https://api.github.com/users/stephpenn1/repos","events_url":"https://api.github.com/users/stephpenn1/events{/privacy}","received_events_url":"https://api.github.com/users/stephpenn1/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-04T16:50:36Z","updated_at":"2018-09-04T16:55:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5068e930b4847c26c288dd7c30a8f57cc28a024c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/52/commits","review_comments_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/52/comments","review_comment_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/issues/52/comments","statuses_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/statuses/21f8900b40a9e028bcfa9e605692b4afa0ba795d","head":{"label":"PNNL-PREMIS:weather-dat","ref":"weather-dat","sha":"21f8900b40a9e028bcfa9e605692b4afa0ba795d","user":{"login":"PNNL-PREMIS","id":36765208,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzY1MjA4","avatar_url":"https://avatars0.githubusercontent.com/u/36765208?v=4","gravatar_id":"","url":"https://api.github.com/users/PNNL-PREMIS","html_url":"https://github.com/PNNL-PREMIS","followers_url":"https://api.github.com/users/PNNL-PREMIS/followers","following_url":"https://api.github.com/users/PNNL-PREMIS/following{/other_user}","gists_url":"https://api.github.com/users/PNNL-PREMIS/gists{/gist_id}","starred_url":"https://api.github.com/users/PNNL-PREMIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PNNL-PREMIS/subscriptions","organizations_url":"https://api.github.com/users/PNNL-PREMIS/orgs","repos_url":"https://api.github.com/users/PNNL-PREMIS/repos","events_url":"https://api.github.com/users/PNNL-PREMIS/events{/privacy}","received_events_url":"https://api.github.com/users/PNNL-PREMIS/received_events","type":"Organization","site_admin":false},"repo":{"id":122622203,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI2MjIyMDM=","name":"PREMIS-ghg","full_name":"PNNL-PREMIS/PREMIS-ghg","owner":{"login":"PNNL-PREMIS","id":36765208,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzY1MjA4","avatar_url":"https://avatars0.githubusercontent.com/u/36765208?v=4","gravatar_id":"","url":"https://api.github.com/users/PNNL-PREMIS","html_url":"https://github.com/PNNL-PREMIS","followers_url":"https://api.github.com/users/PNNL-PREMIS/followers","following_url":"https://api.github.com/users/PNNL-PREMIS/following{/other_user}","gists_url":"https://api.github.com/users/PNNL-PREMIS/gists{/gist_id}","starred_url":"https://api.github.com/users/PNNL-PREMIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PNNL-PREMIS/subscriptions","organizations_url":"https://api.github.com/users/PNNL-PREMIS/orgs","repos_url":"https://api.github.com/users/PNNL-PREMIS/repos","events_url":"https://api.github.com/users/PNNL-PREMIS/events{/privacy}","received_events_url":"https://api.github.com/users/PNNL-PREMIS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PNNL-PREMIS/PREMIS-ghg","description":"Soil GHG experiment","fork":false,"url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg","forks_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/forks","keys_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/teams","hooks_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/hooks","issue_events_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/issues/events{/number}","events_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/events","assignees_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/assignees{/user}","branches_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/branches{/branch}","tags_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/tags","blobs_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/git/refs{/sha}","trees_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/statuses/{sha}","languages_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/languages","stargazers_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/stargazers","contributors_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/contributors","subscribers_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/subscribers","subscription_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/subscription","commits_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/commits{/sha}","git_commits_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/git/commits{/sha}","comments_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/comments{/number}","issue_comment_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/issues/comments{/number}","contents_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/contents/{+path}","compare_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/merges","archive_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/downloads","issues_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/issues{/number}","pulls_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls{/number}","milestones_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/milestones{/number}","notifications_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/labels{/name}","releases_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/releases{/id}","deployments_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/deployments","created_at":"2018-02-23T13:05:06Z","updated_at":"2018-08-30T16:25:28Z","pushed_at":"2018-09-04T16:50:36Z","git_url":"git://github.com/PNNL-PREMIS/PREMIS-ghg.git","ssh_url":"git@github.com:PNNL-PREMIS/PREMIS-ghg.git","clone_url":"https://github.com/PNNL-PREMIS/PREMIS-ghg.git","svn_url":"https://github.com/PNNL-PREMIS/PREMIS-ghg","homepage":null,"size":14247,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"PNNL-PREMIS:master","ref":"master","sha":"88ac14dcfc2d534009e96f03813dfa3c4af9b1e8","user":{"login":"PNNL-PREMIS","id":36765208,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzY1MjA4","avatar_url":"https://avatars0.githubusercontent.com/u/36765208?v=4","gravatar_id":"","url":"https://api.github.com/users/PNNL-PREMIS","html_url":"https://github.com/PNNL-PREMIS","followers_url":"https://api.github.com/users/PNNL-PREMIS/followers","following_url":"https://api.github.com/users/PNNL-PREMIS/following{/other_user}","gists_url":"https://api.github.com/users/PNNL-PREMIS/gists{/gist_id}","starred_url":"https://api.github.com/users/PNNL-PREMIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PNNL-PREMIS/subscriptions","organizations_url":"https://api.github.com/users/PNNL-PREMIS/orgs","repos_url":"https://api.github.com/users/PNNL-PREMIS/repos","events_url":"https://api.github.com/users/PNNL-PREMIS/events{/privacy}","received_events_url":"https://api.github.com/users/PNNL-PREMIS/received_events","type":"Organization","site_admin":false},"repo":{"id":122622203,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI2MjIyMDM=","name":"PREMIS-ghg","full_name":"PNNL-PREMIS/PREMIS-ghg","owner":{"login":"PNNL-PREMIS","id":36765208,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzY1MjA4","avatar_url":"https://avatars0.githubusercontent.com/u/36765208?v=4","gravatar_id":"","url":"https://api.github.com/users/PNNL-PREMIS","html_url":"https://github.com/PNNL-PREMIS","followers_url":"https://api.github.com/users/PNNL-PREMIS/followers","following_url":"https://api.github.com/users/PNNL-PREMIS/following{/other_user}","gists_url":"https://api.github.com/users/PNNL-PREMIS/gists{/gist_id}","starred_url":"https://api.github.com/users/PNNL-PREMIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PNNL-PREMIS/subscriptions","organizations_url":"https://api.github.com/users/PNNL-PREMIS/orgs","repos_url":"https://api.github.com/users/PNNL-PREMIS/repos","events_url":"https://api.github.com/users/PNNL-PREMIS/events{/privacy}","received_events_url":"https://api.github.com/users/PNNL-PREMIS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PNNL-PREMIS/PREMIS-ghg","description":"Soil GHG experiment","fork":false,"url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg","forks_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/forks","keys_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/teams","hooks_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/hooks","issue_events_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/issues/events{/number}","events_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/events","assignees_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/assignees{/user}","branches_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/branches{/branch}","tags_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/tags","blobs_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/git/refs{/sha}","trees_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/statuses/{sha}","languages_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/languages","stargazers_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/stargazers","contributors_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/contributors","subscribers_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/subscribers","subscription_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/subscription","commits_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/commits{/sha}","git_commits_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/git/commits{/sha}","comments_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/comments{/number}","issue_comment_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/issues/comments{/number}","contents_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/contents/{+path}","compare_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/merges","archive_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/downloads","issues_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/issues{/number}","pulls_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls{/number}","milestones_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/milestones{/number}","notifications_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/labels{/name}","releases_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/releases{/id}","deployments_url":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/deployments","created_at":"2018-02-23T13:05:06Z","updated_at":"2018-08-30T16:25:28Z","pushed_at":"2018-09-04T16:50:36Z","git_url":"git://github.com/PNNL-PREMIS/PREMIS-ghg.git","ssh_url":"git@github.com:PNNL-PREMIS/PREMIS-ghg.git","clone_url":"https://github.com/PNNL-PREMIS/PREMIS-ghg.git","svn_url":"https://github.com/PNNL-PREMIS/PREMIS-ghg","homepage":null,"size":14247,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/52"},"html":{"href":"https://github.com/PNNL-PREMIS/PREMIS-ghg/pull/52"},"issue":{"href":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/issues/52"},"comments":{"href":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/PNNL-PREMIS/PREMIS-ghg/statuses/21f8900b40a9e028bcfa9e605692b4afa0ba795d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"bpbond"}}