{"action":"created","issue":{"url":"https://api.github.com/repos/Ouranosinc/xclim/issues/40","repository_url":"https://api.github.com/repos/Ouranosinc/xclim","labels_url":"https://api.github.com/repos/Ouranosinc/xclim/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/Ouranosinc/xclim/issues/40/comments","events_url":"https://api.github.com/repos/Ouranosinc/xclim/issues/40/events","html_url":"https://github.com/Ouranosinc/xclim/issues/40","id":365445083,"node_id":"MDU6SXNzdWUzNjU0NDUwODM=","number":40,"title":"DataArray attributes","user":{"login":"tlogan2000","id":22454970,"node_id":"MDQ6VXNlcjIyNDU0OTcw","avatar_url":"https://avatars2.githubusercontent.com/u/22454970?v=4","gravatar_id":"","url":"https://api.github.com/users/tlogan2000","html_url":"https://github.com/tlogan2000","followers_url":"https://api.github.com/users/tlogan2000/followers","following_url":"https://api.github.com/users/tlogan2000/following{/other_user}","gists_url":"https://api.github.com/users/tlogan2000/gists{/gist_id}","starred_url":"https://api.github.com/users/tlogan2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlogan2000/subscriptions","organizations_url":"https://api.github.com/users/tlogan2000/orgs","repos_url":"https://api.github.com/users/tlogan2000/repos","events_url":"https://api.github.com/users/tlogan2000/events{/privacy}","received_events_url":"https://api.github.com/users/tlogan2000/received_events","type":"User","site_admin":false},"labels":[{"id":1048048442,"node_id":"MDU6TGFiZWwxMDQ4MDQ4NDQy","url":"https://api.github.com/repos/Ouranosinc/xclim/labels/Information","name":"Information","color":"e59350","default":false},{"id":1045394243,"node_id":"MDU6TGFiZWwxMDQ1Mzk0MjQz","url":"https://api.github.com/repos/Ouranosinc/xclim/labels/standards%20/%20conventions","name":"standards / conventions","color":"6a04ef","default":false}],"state":"open","locked":false,"assignee":{"login":"huard","id":81219,"node_id":"MDQ6VXNlcjgxMjE5","avatar_url":"https://avatars1.githubusercontent.com/u/81219?v=4","gravatar_id":"","url":"https://api.github.com/users/huard","html_url":"https://github.com/huard","followers_url":"https://api.github.com/users/huard/followers","following_url":"https://api.github.com/users/huard/following{/other_user}","gists_url":"https://api.github.com/users/huard/gists{/gist_id}","starred_url":"https://api.github.com/users/huard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huard/subscriptions","organizations_url":"https://api.github.com/users/huard/orgs","repos_url":"https://api.github.com/users/huard/repos","events_url":"https://api.github.com/users/huard/events{/privacy}","received_events_url":"https://api.github.com/users/huard/received_events","type":"User","site_admin":false},"assignees":[{"login":"huard","id":81219,"node_id":"MDQ6VXNlcjgxMjE5","avatar_url":"https://avatars1.githubusercontent.com/u/81219?v=4","gravatar_id":"","url":"https://api.github.com/users/huard","html_url":"https://github.com/huard","followers_url":"https://api.github.com/users/huard/followers","following_url":"https://api.github.com/users/huard/following{/other_user}","gists_url":"https://api.github.com/users/huard/gists{/gist_id}","starred_url":"https://api.github.com/users/huard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huard/subscriptions","organizations_url":"https://api.github.com/users/huard/orgs","repos_url":"https://api.github.com/users/huard/repos","events_url":"https://api.github.com/users/huard/events{/privacy}","received_events_url":"https://api.github.com/users/huard/received_events","type":"User","site_admin":false},{"login":"Balinus","id":3630311,"node_id":"MDQ6VXNlcjM2MzAzMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/3630311?v=4","gravatar_id":"","url":"https://api.github.com/users/Balinus","html_url":"https://github.com/Balinus","followers_url":"https://api.github.com/users/Balinus/followers","following_url":"https://api.github.com/users/Balinus/following{/other_user}","gists_url":"https://api.github.com/users/Balinus/gists{/gist_id}","starred_url":"https://api.github.com/users/Balinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Balinus/subscriptions","organizations_url":"https://api.github.com/users/Balinus/orgs","repos_url":"https://api.github.com/users/Balinus/repos","events_url":"https://api.github.com/users/Balinus/events{/privacy}","received_events_url":"https://api.github.com/users/Balinus/received_events","type":"User","site_admin":false},{"login":"Zeitsperre","id":10819524,"node_id":"MDQ6VXNlcjEwODE5NTI0","avatar_url":"https://avatars3.githubusercontent.com/u/10819524?v=4","gravatar_id":"","url":"https://api.github.com/users/Zeitsperre","html_url":"https://github.com/Zeitsperre","followers_url":"https://api.github.com/users/Zeitsperre/followers","following_url":"https://api.github.com/users/Zeitsperre/following{/other_user}","gists_url":"https://api.github.com/users/Zeitsperre/gists{/gist_id}","starred_url":"https://api.github.com/users/Zeitsperre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zeitsperre/subscriptions","organizations_url":"https://api.github.com/users/Zeitsperre/orgs","repos_url":"https://api.github.com/users/Zeitsperre/repos","events_url":"https://api.github.com/users/Zeitsperre/events{/privacy}","received_events_url":"https://api.github.com/users/Zeitsperre/received_events","type":"User","site_admin":false},{"login":"sbiner","id":16655388,"node_id":"MDQ6VXNlcjE2NjU1Mzg4","avatar_url":"https://avatars1.githubusercontent.com/u/16655388?v=4","gravatar_id":"","url":"https://api.github.com/users/sbiner","html_url":"https://github.com/sbiner","followers_url":"https://api.github.com/users/sbiner/followers","following_url":"https://api.github.com/users/sbiner/following{/other_user}","gists_url":"https://api.github.com/users/sbiner/gists{/gist_id}","starred_url":"https://api.github.com/users/sbiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbiner/subscriptions","organizations_url":"https://api.github.com/users/sbiner/orgs","repos_url":"https://api.github.com/users/sbiner/repos","events_url":"https://api.github.com/users/sbiner/events{/privacy}","received_events_url":"https://api.github.com/users/sbiner/received_events","type":"User","site_admin":false},{"login":"tlogan2000","id":22454970,"node_id":"MDQ6VXNlcjIyNDU0OTcw","avatar_url":"https://avatars2.githubusercontent.com/u/22454970?v=4","gravatar_id":"","url":"https://api.github.com/users/tlogan2000","html_url":"https://github.com/tlogan2000","followers_url":"https://api.github.com/users/tlogan2000/followers","following_url":"https://api.github.com/users/tlogan2000/following{/other_user}","gists_url":"https://api.github.com/users/tlogan2000/gists{/gist_id}","starred_url":"https://api.github.com/users/tlogan2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlogan2000/subscriptions","organizations_url":"https://api.github.com/users/tlogan2000/orgs","repos_url":"https://api.github.com/users/tlogan2000/repos","events_url":"https://api.github.com/users/tlogan2000/events{/privacy}","received_events_url":"https://api.github.com/users/tlogan2000/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-10-01T12:48:11Z","updated_at":"2018-10-04T13:45:01Z","closed_at":null,"author_association":"COLLABORATOR","body":"### Description\r\nWhen coding index functions using the daily_downsampler make sure to use 'keep_attrs=True' or to create appropriate attrs (minimally suggest : units, long_name, standard_name) as an ordered dictionary\r\n\r\nExample:\r\nfrom xclim.utils import daily_downsampler as dds\r\ngrouper = dds(da, freq=freq)\r\noutput = grouper.max(dim='time',keep_attrs=True)\r\n\r\nIn cases where the index calculation results in a change of units (or both units and name attrs) they should be modified (as an ordered dictonary) before returning the dataarray.  \r\n\r\nE.g. Calculation of growing season length from temperature data would change all attributes (units, long_name, standard_name)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Ouranosinc/xclim/issues/comments/427024340","html_url":"https://github.com/Ouranosinc/xclim/issues/40#issuecomment-427024340","issue_url":"https://api.github.com/repos/Ouranosinc/xclim/issues/40","id":427024340,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzAyNDM0MA==","user":{"login":"sbiner","id":16655388,"node_id":"MDQ6VXNlcjE2NjU1Mzg4","avatar_url":"https://avatars1.githubusercontent.com/u/16655388?v=4","gravatar_id":"","url":"https://api.github.com/users/sbiner","html_url":"https://github.com/sbiner","followers_url":"https://api.github.com/users/sbiner/followers","following_url":"https://api.github.com/users/sbiner/following{/other_user}","gists_url":"https://api.github.com/users/sbiner/gists{/gist_id}","starred_url":"https://api.github.com/users/sbiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbiner/subscriptions","organizations_url":"https://api.github.com/users/sbiner/orgs","repos_url":"https://api.github.com/users/sbiner/repos","events_url":"https://api.github.com/users/sbiner/events{/privacy}","received_events_url":"https://api.github.com/users/sbiner/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T13:45:01Z","updated_at":"2018-10-04T13:45:01Z","author_association":"CONTRIBUTOR","body":"Ok c'est beau, Travis a répondu à ma question.\r\n"}}
{"actor":{"display_login":"sbiner"}}