issues: 181005061
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
181005061 | MDU6SXNzdWUxODEwMDUwNjE= | 1036 | convert xarray dataset to local timezone | 12929592 | closed | 0 | 2 | 2016-10-04T21:07:02Z | 2016-10-11T04:02:51Z | 2016-10-11T04:02:51Z | NONE | Can I convert an xarray dataset to a different timezone? I have tried using similar steps that I would use in pandas to convert from UTC to 'Australia/Sydney'. I have pasted below some of these steps, along with a small section of the dataset I am working with. Any feedback will be greatly appreciated. ds = xray.open_mfdataset('/DATA/WRF///*T_SFC.nc') import pytz <xray.Dataset> Dimensions: (latitude: 106, longitude: 193, time: 17520) Coordinates: - latitude (latitude) float32 -39.2 -39.1495 -39.099 -39.0486 -38.9981 ... - longitude (longitude) float32 140.8 140.848 140.896 140.944 140.992 ... - time (time) datetime64[ns] 2009-01-01 2009-01-01T01:00:00 ... Data variables: T_SFC (time, latitude, longitude) float64 13.83 13.86 13.89 13.92 ... Attributes: creationTime: 1431922712 creationTimeString: Sun May 17 21:18:32 PDT 2015 Conventions: COARDS |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1036/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |