issues: 217485308
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
217485308 | MDU6SXNzdWUyMTc0ODUzMDg= | 1334 | time dimension | 1478822 | closed | 0 | 9 | 2017-03-28T08:33:55Z | 2019-03-28T15:22:06Z | 2019-03-28T15:22:06Z | NONE | Hi, I'm new to xarray and would like to use it to process some data. For this task I need to access the time dimension and get the date in terms of year, month, and hour. I can do this if the time variable is a netcdf object but xarray does not return this object type. For example: import netcdf4 as nc idata = nc.Dataset(ifile,'r') time = idata.variables['time'] dtime = num2date(time[:],time.units) hour = time[0].hour How could access the time sub-variables in a similar manner? |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1334/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |