{"action":"opened","issue":{"url":"https://api.github.com/repos/qjhart/dwr-calsimetaw/issues/1","repository_url":"https://api.github.com/repos/qjhart/dwr-calsimetaw","labels_url":"https://api.github.com/repos/qjhart/dwr-calsimetaw/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/qjhart/dwr-calsimetaw/issues/1/comments","events_url":"https://api.github.com/repos/qjhart/dwr-calsimetaw/issues/1/events","html_url":"https://github.com/qjhart/dwr-calsimetaw/issues/1","id":196188259,"number":1,"title":"Update the data for 2016","user":{"login":"qjhart","id":344953,"avatar_url":"https://avatars.githubusercontent.com/u/344953?v=3","gravatar_id":"","url":"https://api.github.com/users/qjhart","html_url":"https://github.com/qjhart","followers_url":"https://api.github.com/users/qjhart/followers","following_url":"https://api.github.com/users/qjhart/following{/other_user}","gists_url":"https://api.github.com/users/qjhart/gists{/gist_id}","starred_url":"https://api.github.com/users/qjhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qjhart/subscriptions","organizations_url":"https://api.github.com/users/qjhart/orgs","repos_url":"https://api.github.com/users/qjhart/repos","events_url":"https://api.github.com/users/qjhart/events{/privacy}","received_events_url":"https://api.github.com/users/qjhart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-17T01:40:38Z","updated_at":"2016-12-17T01:40:38Z","closed_at":null,"body":"### 2016-12-31 update\r\n\r\nWe had stable data from 20150731\r\n\r\n```{bash}\r\nfor d in `seq 212 365`; do\r\n  m=`date --date=\"2015-01-01 + $d days\" +%Y%m%d`;\r\n  g.mapset -c $m;\r\n  make -f daily.mk start_year=2015 end_year=2015 tmin tmax ppt;\r\ndone\r\n```\r\n\r\nAnd we had stable data for 2016 up to 2016-05-31 (151)\r\n\r\n```{bash}\r\nfor d in `seq 0 151`; do\r\n  m=`date --date=\"2016-01-01 + $d days\" +%Y%m%d`;\r\n  echo g.mapset -c $m;\r\n  make -f daily.mk start_year=2016 end_year=2016 tmin tmax ppt;\r\ndone\r\n```\r\n\r\nAnd then in prism-provisional\r\n\r\n```{bash}\r\nfor d in `seq 151 364`; do\r\n  m=`date --date=\"2016-01-01 + $d days\" +%Y%m%d`;\r\n  g.mapset -c $m;\r\n  make -f daily.mk start_year=2016 end_year=2016 tmin tmax ppt;\r\ndone\r\n```\r\n\r\nSo, we replace the data post 2015-06-30 with our new data.\r\n\r\n```{bash}\r\nrm 2015-0[6789]?? 2015[1]???;\r\n\r\nfor d in `seq 181 364`; do\r\n date=`date --date=\"2015-01-01 + $d days\" +%Y%m%d`;\r\n g.mapset -c $date; g.region rast=state@4km;\r\n for r in tmin tmax ppt; do\r\n   r.proj input=$r location=prism-stable;\r\n done;\r\ndone\r\n\r\n# Now 2016\r\nfor d in `seq 0 151`; do\r\n date=`date --date=\"2016-01-01 + $d days\" +%Y%m%d`;\r\n g.mapset -c $date; g.region rast=state@4km;\r\n for r in tmin tmax ppt; do\r\n   r.proj input=$r location=prism-stable;\r\n done;\r\ndone\r\n```\r\n\r\nNow get our ETo values\r\n\r\n```{bash}\r\nfor d in `seq 181 364`; do\r\n date=`date --date=\"2015-01-01 + $d days\" +%Y%m%d`;\r\n g.mapset $date; g.region rast=state@4km;\r\n make -f daily.mk ETo\r\ndone\r\n```\r\n"}}
{"actor":{"display_login":"qjhart"}}